Solved

class not found error

Posted on 2007-12-04
2
1,084 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
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 500 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Handling json in url param 1 43
count7 challenge 12 70
allStar challenge 1 43
maven example error 3 36
-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 …
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now