aspose file tools*
The moose likes BEA/Weblogic and the fly likes ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "ClassNotFoundException" Watch "ClassNotFoundException" New topic
Author

ClassNotFoundException

Veena Pointi
Ranch Hand

Joined: Jun 20, 2002
Posts: 442
Class.forName("weblogic.webservice.WebService");

The above statement doesn't throw ClassNotFoundException even when this class "weblogic.webservice.WebService" doesn't exists in weblogic.jar.I am setting weblogic.jar file in the classpath.If I takeout weblogic.jar from classpath it throws the exception.Am I doing something wrong in syntax above?

Thanks
Veena


SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
If you look at the manifest file inside weblogic.jar (in META-INF) directory it specified a Class-path that includes webservices.jar from the same lib directory that weblogic.jar is in. I think that jar, webservices.jar or possibly another jar specified in manifest classpath, should have the class you are talking about in it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ClassNotFoundException