Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kashif Memon
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34410
346
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kashif Memon
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic