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!

How to run servlet inside jar file

843840Oct 4 2002 — edited Oct 5 2002
Hi
I have a problem on running a servlet class which resides in a jar file.
At first, it runs if it is located in the root directory of jar file, but if I put in inside a sub directory, I wasn't able to run it. It seems that the servlet class was not found.
Here's the contents of my jar file:(eg. application.jar)

META-INF/
META-INF/MANIFEST.MF
Business/
Business/Business.class
TransferManager/
TransferManager/Default.class
TransferManager/Application.class
DAL/
DAL/XMLDocument.class
DAL/ParameterCollection.class
DAL/ConnectionReaper.class
DAL/JDCConnectionPool.class
DAL/JDCConnection.class
DAL/JDCConnectionDriver.class
DAL/DataAccess.class
Presentation/
Presentation/IPresentation.class
Presentation/XslTransform.class

When I deploy this jar in tomcat4.0 and try to run the Default.class
in the TransferManager package, the server can not locate the class.
But if I put it in the root directory of the jar it works.
Is there any additional setting in tomcat for this? Anyone can give
me an idea for this?
Thanks in advance...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2002
Added on Oct 4 2002
1 comment
187 views