Reputation: 1976
I installed tomcat7-standalone and downloaded tomcat7-source and found a wired problem:
The class org.apache.jasper.JspC
(tomcat7-source) imports org.apache.tools.ant.AntClassLoader
that i cant find in plain installation of tomcat7-standalone.
IMO this code must throw a CNFE! Right?
if (jspcLoader instanceof AntClassLoader) {
classPath += File.pathSeparator
+ ((AntClassLoader) jspcLoader).getClasspath();
}
Could that be that tomcat-developers hopes that noone uses their code? Is this ok?
Upvotes: 1
Views: 109
Reputation: 2416
Yes, it should, but the JspC class is not a part of the Tomcat runtime - it is the command-line tool used to precompile the JSPs, and it can be used as an Ant task or even as part of Gradle build.
Upvotes: 1