• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

ClassNotFoundException

 
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic