This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30068
    
149

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.


[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
 
Similar Threads
jar file not accessible in war file
Jars that can be included in /shared/app
Mock Exam Doubts
question about tld
Using CachedRowSet