Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tomcat6 does not load class files from WEB-INF/lib/myjarfile.jar WHY???

801417Aug 29 2010 — edited Sep 5 2010
I have placed my jar file in c:\tomcat6\webapps\my-application\WEB-INF\lib\myjarfile.jar

But, after restarting tomcat6, when i try to import the class file contained in the myjarfile.jar in a servlet, it says
ProcessFileUpload.java:4: package test.test1 does not exist
import test.test1.*;
^
It clearly tomcat's class loading problem.

As i unzipped my jar and placed the packagefolder structure to
c:\tomcat6\webapps\my-application\WEB-INF\classes\test
and it works perfectly.

Anyone knows its workaround? please suggest if any configuration changes is required in tomcat or so.

Thanks.
---Sujoy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2010
Added on Aug 29 2010
6 comments
1,733 views