permaculture playing cards*
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 Android Security Essentials Live Lessons this week in the Android 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
Author

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

M Galevsky
Greenhorn

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,

Galevsky.
M Galevsky
Greenhorn

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

http://www.coderanch.com/t/317033/EJB-JEE/java/javax-ejb-EJBObject-cannot-resolved

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

Gal'
[ September 25, 2008: Message edited by: M Galevsky ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: J2ee.jar in WEB-INF/lib or not ?
 
Similar Threads
Websphere and JSP using Beans
RAD 7, LingakeError
package javax.servlet.jsp.tagext does not exist
ClassCastException: org.apache.struts.action.ActionServlet cannot be cast to javax.servlet.Servlet
Why NestedServletException?