Solved

class not found error

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Setting strict transport security header in header not working 1 126
eclipse shortcuts 9 70
eclipse console opening separately 2 39
jsp error 6 48
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 …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
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.

730 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