This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes utility jar is unable to find .jar placed in WEB-INF\lib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "utility jar is unable to find .jar placed in WEB-INF\lib" Watch "utility jar is unable to find .jar placed in WEB-INF\lib" New topic
Author

utility jar is unable to find .jar placed in WEB-INF\lib

Kashif Memon
Ranch Hand

Joined: Jul 12, 2003
Posts: 35
Hi All,

I have placed a jar at root of EAR which is using jars placed in WEB-INF\lib when I access the application I am having exception java.lang.ClassNotFoundException for the jar placed in WEB-INF\lib. Can you please help what I am missing? I am using Websphere application server 6.1 for deployment.

Thanks,

Kashif
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31797
    
192

Kashif,
This is a classloader problem. Usually only the web project refers to jars in the web project. It would be better to move the dependency to the ear. The web project can refer to jars in the ear without problems.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Kashif Memon
Ranch Hand

Joined: Jul 12, 2003
Posts: 35
Hi Jeanne,

You are right, it was the problem of ClassLoader I just changed class loading policy on application and it worked.

Thanks for your help!

Regards,

Kashif
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: utility jar is unable to find .jar placed in WEB-INF\lib