Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Tomcat and javaee.jar

Reply
Thread Tools

Tomcat and javaee.jar

 
 
badgerduke@gmail.com
Guest
Posts: n/a
 
      04-25-2007
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

 
Reply With Quote
 
 
 
 
Lew
Guest
Posts: n/a
 
      04-25-2007
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> 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.


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?

--
Lew
 
Reply With Quote
 
 
 
 
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
Guest
Posts: n/a
 
      04-28-2007
(E-Mail Removed) wrote:
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tomcat bin/catalina.sh stop and tomcat is still running gavino Java 0 10-29-2006 12:06 AM
Difference between Apache Tomcat and Jakrata Tomcat twins Java 1 11-25-2005 05:57 PM
Which JVM to use for Tomcat 5.0.28 and Tomcat 5.5.4? Katerina McLean Java 1 12-10-2004 10:55 PM
Apache Tomcat 4.1.24: problem with Tomcat Administration link Christos Gravvanis Java 0 07-07-2004 05:21 PM
[TOMCAT] Tomcat crashes %=zerointeractive.it% Java 1 01-22-2004 12:08 PM



Advertisments