tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter L <punchy....@gmail.com>
Subject Recursive Tagfile and JSP Precompilation
Date Thu, 01 Dec 2005 06:12:19 GMT
Hello,
I'm trying to precompile JSP's for a JBoss(4.0.1) / Tomcat(5.0) server
and everything is cool except I get a ClassNotFoundException when a
Recursive Tagfile is encountered....

[jasper2] SEVERE: ERROR-the file
'\WEB-INF\pages\templates\resolveResultsDialog.jsp' generated the
following general exception:
[jasper2] java.lang.ClassNotFoundException:
org.apache.taglibs.standard.tlv.JstlCoreTLV
[jasper2]     at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
[jasper2]     at java.security.AccessController.doPrivileged(Native Method)
[jasper2]     at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
[jasper2]     at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
[jasper2]     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
[jasper2]     at
org.apache.jasper.compiler.TagLibraryInfoImpl.createValidator(TagLibraryInf=
oImpl.java:645)
[jasper2]     at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j=
ava:246)
[jasper2]     at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.jav=
a:162)
   <omitted for brevity>

If I comment out the actual line of recursion inside the tag file I
can generate, compile, deploy and use all the servlets just fine
(except for the missing functionality).

I understand we use a jstl.jar and a standard.jar that are a little
suspect.  But given that there are no other similar jars available
during the process then it should be fine (That and I upgraded them to
1.1.2 temporarily and got the same result).

Questions:
- Why does dynamic compilation work?  What is Tomcat doing differently?
- Is there a Jasper configuration inside Tomcat I can inspect? (I
couldn't find it in server.xml)

Bonus Questions:
- Is there an easy way to precompile jsp's (for error checking and
initial speed) and retain runtime customizability?
- Will this rash ever go away? </kidding>

Thank you in advance for your consideration / help,
Pete

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message