Hello:
I am attempting to upgrade from Tomcat 4.0.6 to 5.0.26 (embedded in JBoss 3.2.5). However, following the upgrade, I can no longer seem to precompile my JSPs as I did before. The following build.xml extract worked fine in 4.0.6:
<jspc srcdir="${srcDir}" destdir="${jspDir}" package="${pkgName}" verbose="2" compilerclasspath="${env.CATALINA_HOME}/jasper-compiler.jar"> <include name="**/*.jsp" /> <classpath> <pathelement path="${env.CATALINA_HOME}/servlet-api.jar"/> <pathelement path="${env.CATALINA_HOME}/commons-logging.jar"/> <pathelement path="${env.CATALINA_HOME}/jasper-compiler.jar"/> <pathelement path="${env.CATALINA_HOME}/jasper-runtime.jar"/> <pathelement path="${env.XERCES_HOME}/xmlParserAPIs.jar"/> <pathelement path="${env.XERCES_HOME}/xercesImpl.jar"/> <pathelement path="${srcDir}/WEB-INF/lib/taglibs.jar"/> </classpath> </jspc>
Follwing the 5.0.26 upgrade, this now produces errors such as the following:
[jasperc] org.apache.jasper.JasperException: Unrecognized option: -v2. Use -help for help.
I have also unsuccessfuly tried the apparently new, Tomcat 5 recommended way of precompiling as follows:
<taskdef classname="org.apache.jasper.JspC" name="jasper2"> <classpath> <pathelement path="${env.JAVA_HOME}/lib/tools.jar"/> <fileset dir="${env.CATALINA_HOME}"> <include name="*.jar"/> </fileset> <fileset dir="${env.CATALINA_HOME}/"> <include name="servlet*.jar"/> </fileset> <fileset dir="${env.CATALINA_HOME}/"> <include name="commons*.jar"/> </fileset> <pathelement path="${srcDir}/WEB-INF/lib/taglibs.jar"/> </classpath> </taskdef>
<jasper2 validateXml="false" uriroot="${srcDir}" webXmlFramgment="${srcDir}/WEB-INF/generated_web.xml" outputDir="${jspDir}"/>
This produces the following error
java.lang.IncompatibleClassChangeError: Implementing class
What am I missing and/or not doing in the new version? What does this error mean in this context and how can I get more information about it (for example what class is being changed in an incompatible manner)? This is a stock Tomcat 5.0.26/JBoss 3.2.5 installation. I'd appreciate any and all tips on what to investigate or how I might track this down and resolve it.
Thanks!
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected: tomcat-user-unsubs...@jakarta.apache.org] For additional commands, e-mail: [email protected: tomcat-user...@jakarta.apache.org]
|