Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ClassnotfoundError on Class.forName

Status
Not open for further replies.

curiousLearner2010

Programmer
Feb 9, 2010
2
US
I have deployed a web application in weblogic 8.1 But on server startup i am seeing this error.
Error is thrown for this line in code
TestUtilities.java
--------------------
Class.forName(url);

value 'com.mine.test.GetTransBt' is passed correctly in url.


java.lang.ClassNotFoundException: com.mine.test.GetTransBt
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:199)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at com.test.utilities.TestUtilities(TestUtilities.java:154

Calling class(com.test.utilities.TestUtilities) and called class(com.mine.test.GetTransBt) are in same jar file,different package...why it is not loading ..please help
 
How is the jar included in the classpath? How is the class being invoked?

Cheers,
Dian
 
this issue got resolved after cleaned clache and
i restarted servers.

i have a question on unix classpath..
---------------------------------------
/apps/systest3/lib/cdpm.jar::/apps//systest3/lib/soap.jar:

Here the classpath declaration has multilple columns:):)
is it a syntax error? Or would it work the expected way?

thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top