?
Solved

class not found error

Posted on 2007-12-04
2
Medium Priority
?
1,091 Views
Last Modified: 2013-12-10
I am getting class not found error :

java.lang.ClassNotFoundException: com.ilx.mis.cms.service.UProfileImpl
      at java.lang.Class.forName(Ljava.lang.String;ZLjava.lang.ClassLoader;)Ljava.lang.Class;(Unknown Source)
      at java.lang.Class.forName(Ljava.lang.String;I)Ljava.lang.Class;(Unknown Source)
      at com.ilx.mis.cms.service.ServiceListenerBean.loadClass(ServiceListenerBean.java:105)
      at com.ilx.mis.cms.service.ServiceListenerBean.onMessage(ServiceListenerBean.java:71)

line number 105 has :
 Class cClass = Class.forName(className);

my application is running on weblogic 8.1. i have a service.jar file which contains this particular class. do i need to keep it somewhr so that server can find it?

please help me resolve this error.

thanks
0
Comment
Question by:gpw7368
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Expert Comment

by:ECollin
ID: 20410295
Hi,

add your jar file in the weblogic server's classpath (setEnv.cmd)

Emmanuel
0
 
LVL 11

Accepted Solution

by:
sompol_kiatkamolchai earned 1500 total points
ID: 20511558
Hi,

If this jar is used only in your web application, put it in WEB-INF/lib
If this jar is used only your application, put it in APP-INF/lib
If this jar is used across many applications deployed on the server, put it in classpath of setDomainEnv.sh or put it in bea/weblogic81/server/lib

It's up to your consideration.

Hope this help
Sompol
0

Featured Post

ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question