Hi,
We recently switched from JBoss 4.0.4 to JBoss 4.2.2 (I know, this is a big jump). We used
to have an ant task that pre-compiled all our JSP.
That stopped working under 4.2.2 with the following message:
| jspc:
| [echo] Compiling JSPs...
|
| BUILD FAILED
| C:\projects\seerdms\build.xml:649: org.apache.jasper.JasperException: Unable to
initialize TldLocationsCache: XML parsing error on file /WEB-INF/tld/struts-html.tld
|
Here is the ant task we are using:
| <target name="jspc">
| <echo message="Compiling JSPs..." />
|
| <taskdef classname="org.apache.jasper.JspC"
name="jasper2">
| <classpath>
| <pathelement location="${java.home}/../lib/tools.jar"
/>
| <pathelement
location="${deploy.dir}/jboss-web.deployer/jbossweb.jar" />
| <pathelement
location="${deploy.dir}/../../../lib/jboss-common.jar" />
| <pathelement location="${lib.dir}/eclipse/javaee.jar"
/>
|
| <path refid="cp.jasper2" />
| </classpath>
| </taskdef>
|
| <jasper2 compile="false" validateXml="false"
uriroot="${build.war.files.dir}"
webXmlFragment="${registry.build.dir}/generated_web.xml"
package="${package.web}" outputDir="${registry.build.dir}/jsp-src"
/>
|
| <javac srcdir="${registry.build.dir}/jsp-src"
destdir="${registry.build.dir}/classes"
listfiles="${compile.listfiles}" failonerror="${compile.failonerror}"
debug="${compile.debug}" debuglevel="${compile.debuglevel}"
optimize="${compile.optimize}"
deprecation="${compile.deprecation}">
| <classpath>
| <fileset refid="fileset.jasper2" />
| <path refid="cp.lib" />
| </classpath>
| </javac>
|
| </target>
|
I am not totally familiar with the TLD files, but here are the beginning of the
struts-html.tld file that is not successfully parsed:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
| <taglib>
| <tlibversion>1.0</tlibversion>
| <jspversion>1.1</jspversion>
| <shortname>html</shortname>
| <
uri>http://jakarta.apache.org/struts/tags-html</uri>
| <tag>
| <name>base</name>
| ...
|
Thank you!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146362#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...