By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Problems with Ant, strange effects

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
np*@npl.de (Thomas Findeisen) wrote in message news:<a4**************************@posting.google. com>...
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


Just a wild guess, but in your config file you might want to change this:

<fileset dir="D:\Installations\Borland\JBuilder6\jakarta-tomcat-4.0.1\common\lib">
<include name="**/*.*" />
^

to this:
<fileset dir="D:\Installations\Borland\JBuilder6\jakarta-tomcat-4.0.1\common\lib">
<include name="**/*.jar" />
^^^
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.