I've ran into something like this error a few times. On MacOS X. Its a really obscure little boo-boo that I don't really quite know exactly how it happens, but I suspect it mainly has something to do with the placement of the JAR files for the XML parser. Try making sure that you don't have any JAR files other than what's absolutely essential for Tomcat's operation in the common lib folder. Instead, keep all JAR files that the webapp needs in the WEB-INF file.

Also make sure theres no collisions between the XML parser in the 1.4.1 JDK jar directory and the Tomcat ones. Basically just try adding and removing JAR files till it works.

Not much help, and it may be way off base here, but I know I've had problems that sound eeriely similar to this and this is what I did to fix it. Although I never spent the time to really track down the exact cause.

YMMV,

-tim

On Thursday, November 7, 2002, at 10:20 PM, [EMAIL PROTECTED] wrote:

I have the same problem.  I had a JSP with JSTL working fine on
Tomcat 4.1.12 running on W2000 and MacOSX. I moved the webapp to
the same version of Tomcat on a Linux and it bombed...

All three environments had different JVMs:

Win200 -> JDK 1.4.0
MacOSX -> JDK 1.3.1
LINUX -> JDK 1.4.1

I've quatrupled checked the Linux installation and it seems fine.
I can the run some of the standard Tomcat examples and compile JSP code
so my path seems to be set correctly. Any ideas?

Thanks!
-FB

On Thursday, November 7, 2002, at 07:50  AM, Kevin Cobb wrote:

Hi all. I am new to the list and new to JSP/Custom Tags/JSTL, although I
have worked with another App Server (Dynamo) for a few years now. Just
trying to figure out how Tomcat/JSTL/Struts etc works.

I am using Tomcat 4.1.12 and the jakarta 1.0 JSTL.

I have simple custom tag that works fine - no page errors. However, when I
try and introduce one of the JSTL custom tags (c:if), I get this error. --->
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator


I had this working at one point and then broke it somehow. Obviously, I
can't figure out how. Here is the code . . .

WEB.XML (snippet)
<taglib>
<taglib-uri>
c
</taglib-uri>
<taglib-location>
/WEB-INF/tld/c.tld
</taglib-location>
</taglib>

test JSp page
<%@ taglib prefix="test" uri="test" %>
<%@ taglib prefix="c" uri="c" %> <-- this causes the error

<html>
<head><title>Test Page for WI-DOC</title></head>
<body>

<test:testtag/>
<br/><br/>

</body>
</html>

--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail: <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@;jakarta.apache.org>

Reply via email to