File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes J2ee.jar in WEB-INF/lib or not ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "J2ee.jar in WEB-INF/lib or not ?" Watch "J2ee.jar in WEB-INF/lib or not ?" New topic

J2ee.jar in WEB-INF/lib or not ?

M Galevsky

Joined: Mar 05, 2008
Posts: 10
Hi all,

When I deploy my webapp on Tomcat v5.5.25, I can read this info:

I have read that it is caused by Servlet implementation duplication in both TOMCAT_HOME\common\lib\servlet-api.jar and WEB-INF\libj2ee.jar. And that I should remove j2ee.jar lib.

Good, but if I remove it, several classes cannot be resolved, namely:

- javax.ejb.*
- javax.transformation.*
- javax.jms.*

My problem is that I failed to find an implementating jar of these classes, so that j2ee.jar still remains required for the build stage.

Any advice ? How you guys deal with that issue ?

Many thanks for your support,

M Galevsky

Joined: Mar 05, 2008
Posts: 10
I just found the solution in topic

Tomcat is NOT an EJB container. Let's continue to link with J2ee.jar if I want to use Tomcat, or migrate to JBoss...

[ September 25, 2008: Message edited by: M Galevsky ]
I agree. Here's the link:
subject: J2ee.jar in WEB-INF/lib or not ?
It's not a secret anymore!