Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Tomcat and javaee.jar

Thread view: 
badgerduke@gmail.com - 25 Apr 2007 16:39 GMT
Hello:

In a web app, I need to have javaee.jar (from JavaEE5u2) on my
classpath.  Tomcat will not allow me to deploy when javaee.jar is in /
WEB-INF/lib because it contains javax.servlet.Servlet.class (violation
of the servlet spec 2.3 9.7.2  - even though 2.3 is not being used).
How do include javaee on my classpath while not clashing with Tomcat's
javax.servlet library?  Thanx.

Duke
Lew - 26 Apr 2007 00:15 GMT
> Hello:
>
[quoted text clipped - 4 lines]
> How do include javaee on my classpath while not clashing with Tomcat's
> javax.servlet library?  Thanx.

Please do not multipost.

Cross-post if you must reach multiple groups.

My inclination is to say, "Don't."  If you need a particular JEE JAR, why not
use the application server that has it?

Signature

Lew

Arne Vajhøj - 28 Apr 2007 02:59 GMT
> In a web app, I need to have javaee.jar (from JavaEE5u2) on my
> classpath.  Tomcat will not allow me to deploy when javaee.jar is in /
> WEB-INF/lib because it contains javax.servlet.Servlet.class (violation
> of the servlet spec 2.3 9.7.2  - even though 2.3 is not being used).
> How do include javaee on my classpath while not clashing with Tomcat's
> javax.servlet library?  Thanx.

The parts of JEE supported by Tomcat are already in classpath for
Tomcat.

You just compile against javaee.jar and then deploy to Tomcat. Tomcat
then find the classes in its own classpath.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.