Sorry Martin, but bad advice. In recent versions of tomcat, jsp-api is provided in the /lib directory of tomcat. If you have your own in your webapp (or in the jave environment for that manner), please remove it as it will cause many a wonderous error.

Also tomcat does not work with j2ee as j2ee comes with it's own copy of a servlet container and the two will clash with each other. Replace your Java EE environment with the java sdk or java jre environments to use tomcat.

The bottom line is jars in tomcat can only exist once along any classloader branch. If it's in the JVM, it can be in tomcat's /lib or the webapp's /WEB-INF/lib directories. If it's in tomcat's /lib, it can't exist in the webapp.

Come back with a complete stack trace including any root causes of your problem once those are fixed.

--David

Martin Gainty wrote:
Abel
put jsp-api.jar in /WEB-INF/lib
M-
----- Original Message -----
From: "AbelMacAdam" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, December 24, 2007 6:58 AM
Subject: NoClassDefFoundError: TagExtraInfo missing?


Hi,

I'm trying to bootstrap my knowledge on Struts. As I tried an example I
got
the following error:
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

Searching on this error I got the impression I needed j2ee.jar. I
downloaded
and installed the Java EE 5 SDK from Sun. In Eclipse (Europa) I
I added a 'J2EE' library to my Libraries in my 'Java Build Path'. This
library contains the following jar files:
javaee.jar (and that jar file includes a
javax/servlet/jsp/tagext/TagExtraInfo.class!)
j2ee.jar
j2ee-svc.jar

After rebooting Tomcat (6.0) in Eclipse I still got that error. What do I
need to do the remove this error and continue with the example?

TIA,
Abel

FWIW - Environment:
Apache 2.2.6
Java 1.6.0_03
Java EE 5
Struts 1.3.8
Tomcat 6.0
Windows XP
--
View this message in context:
http://www.nabble.com/NoClassDefFoundError%3A-TagExtraInfo-missing--tp144870
34p14487034.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to