Solved

class not found error

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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

696 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