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
Solved

class not found error

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

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 …
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
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.

856 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