I tried to use ant for compiling my Jsp-Sides to servlets, it runs for
some jsps and stops after a while with the following error (output
slightly scrolled to the right side):
[...]
\JBossVersion\>ant -buildfile=jspcompiled.xml
X bad jar connector.licence.txt
X bad jar jaas.licence.txt
X bad jar jdbc2_0-stdext.licence.txt
X bad jar jta.licence.txt
X bad jar nls_charset12.zip
ror:org.apache.jasper.JasperException: Error compiling
\jsps\bw\view.jsp
at org.apache.jasper.JspC.processFile(JspC.java:596)
at org.apache.jasper.JspC.execute(JspC.java:801)
at org.apache.jasper.JspC.main(JspC.java:823)
va Result: 9
A look into the directory shows me the file has 0 Bytes. Ten or more
files were createdt correctly. If I run it twice it will go some files
further, stopping at the next one. After starting it for three or four
times the whole work is done (without changing anything in between).
Does anyone has a hint or similar effects? I updated ant from version
1.5.1 to 1.5.4 but nothing changed.
My config file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<project name="JSP-Compiler" default="all" basedir=".">
<property environment="env"/>
<property name="build.dir" value="${basedir}" />
<property name="build.jspc.java.dir"
location="${build.dir}/build/jspc/java" />
<property name="build.jspc.classes.dir"
location="${build.dir}/build/jspc/classes" />
<property name="jasper.dir"
location="${env.JBOSS_HOME}/server/default/deploy/jbossweb-tomcat.sar"
/>
<property name="war.expanded.dir" value="${basedir}" />
<property name="jboss.home" value="${env.JBOSS_HOME}" />
<path id="jasper.classpath">
<fileset dir="${jasper.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="D:\Installations\Borland\JBuilder6\jakarta-tomcat-4.0.1\common\lib">
<include name="**/*.*" />
</fileset>
<fileset dir="D:\Installations\Ant\lib">
<include name="**/*.jar" />
</fileset>
<fileset dir="${jboss.home}/client">
<include name="**/*.jar"/>
</fileset>
<fileset dir="../libs">
<include name="**/*.jar"/>
</fileset>
<pathelement location="${basedir}/WEB-INF/classes"/>
<fileset dir="${basedir}/WEB-INF/lib">
<include name="**/*.jar"/>
</fileset>
<!-- So that we can get jndi.properties for InitialContext -->
<pathelement location="../jndi"/>
</path>
<target name="test" >
<mkdir dir="${build.jspc.classes.dir}" />
<mkdir dir="${build.jspc.java.dir}" />
<echo> I am in the test task </echo>
<jspc srcdir="${basedir}/jsps" destdir="${build.jspc.java.dir}"
compiler="jasper41"
failonerror="false" >
<include name="**/*.jsp" />
<classpath refid="jasper.classpath"/>
</jspc>
</target>
<target name="all" depends="test">
<echo> I am in the all task </echo>
<javac debug="${build.debug}" includeAntRuntime="false"
srcdir="${build.jspc.java.dir}"
destdir="${build.jspc.classes.dir}" >
<classpath>
<path location="${war.expanded.dir}/WEB-INF/classes" />
<fileset dir="${war.expanded.dir}/WEB-INF/lib" >
<include name="**/*.jar" />
</fileset>
<path refid="jasper.classpath" />
</classpath>
</javac>
</target>
</project>
Any hint would be great, even small ones...
kind regards, Thomas Findeisen