S
swift
Hi,
I'm trying to precompile the JSPs in my application using the JspC
class in Jboss. Following is the ANT script that I'm using to compile
the JSPs -
<target name="webapp_precompilation">
<echo>executing webapp_precompilation...</echo>
<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath refid="classpath"/>
<classpath id="jspc.classpath" >
<pathelement location="${java.home}/lib/tools.jar"/>
<fileset dir="${jboss.deploy.dir}/jbossweb-tomcat50.sar"
includes="*.jar"/>
</classpath>
<classpath id="webapp classses">
<fileset dir="${build}" includes="*.jar"/>
</classpath>
</taskdef>
<mkdir dir="${build}/WEB-INF/src"/>
<jasper2
compile="false"
validateXml="false"
package="com.apache.jsps"
uriroot="${webresources}"
webXmlFragment="${build}/WEB-INF/src/generated_web.xml"
outputDir="${build}/WEB-INF/src"/>
</target>
As soon as I execute this target, I get the following warning in
Windows -
[jasper2] - Unknown element (info) in attribute
BUILD SUCCESSFUL
and the following error while executing in Linux -
BUILD FAILED
build.xml:399: The following error occurred while executing this line:
build.xml:262: java.lang.NoSuchFieldError: functions
I'm using jboss-3.2.6 and ant-1.6.2 currently. I'd appreciate any tips
on what to investigate or
how I might track this down and resolve it.
I'm trying to precompile the JSPs in my application using the JspC
class in Jboss. Following is the ANT script that I'm using to compile
the JSPs -
<target name="webapp_precompilation">
<echo>executing webapp_precompilation...</echo>
<taskdef classname="org.apache.jasper.JspC" name="jasper2" >
<classpath refid="classpath"/>
<classpath id="jspc.classpath" >
<pathelement location="${java.home}/lib/tools.jar"/>
<fileset dir="${jboss.deploy.dir}/jbossweb-tomcat50.sar"
includes="*.jar"/>
</classpath>
<classpath id="webapp classses">
<fileset dir="${build}" includes="*.jar"/>
</classpath>
</taskdef>
<mkdir dir="${build}/WEB-INF/src"/>
<jasper2
compile="false"
validateXml="false"
package="com.apache.jsps"
uriroot="${webresources}"
webXmlFragment="${build}/WEB-INF/src/generated_web.xml"
outputDir="${build}/WEB-INF/src"/>
</target>
As soon as I execute this target, I get the following warning in
Windows -
[jasper2] - Unknown element (info) in attribute
BUILD SUCCESSFUL
and the following error while executing in Linux -
BUILD FAILED
build.xml:399: The following error occurred while executing this line:
build.xml:262: java.lang.NoSuchFieldError: functions
I'm using jboss-3.2.6 and ant-1.6.2 currently. I'd appreciate any tips
on what to investigate or
how I might track this down and resolve it.