473,388 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Problems with Ant, strange effects

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
1 3011
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Rogue9 | last post by:
Hi, I´m trying to retrieve an item from a list using a reference called ´draw´' (which is an integer from 1 to 792 in a while loop) using:- draw = 1 while 1: if draw == 792: break b1 =...
6
by: Florian Wilhelm | last post by:
I have some easy questions, but I cant figure them out: I want to read exactly one char from stdin, there should be no need to hit enter. import sys print "Input: (y/N) ", input =...
4
by: Peter Rooney | last post by:
Hi, I have a form that allows you to do search, for each record found it populates the form fields with the data from the database and creates page sets for next and previous, now for the...
4
by: hall | last post by:
Hi. I've come across someting strange. I was trying to make a for-loop execute repetadly until the function called inside it does not return true during the entire loop (see program below). ...
13
by: Neil Zanella | last post by:
Hello, I wonder whether anyone has ever come across the following g++ compiler error message. I don't recall ever seeing it before. I solved my problem but I am still not sure about what this...
0
by: Tim Mulholland | last post by:
I have written some code that causes mouseover effects on a picture box. The code works fine most of the time and creates some really nice effects. HOWEVER, If i try, i can get the effects to...
3
by: Tim Mulholland | last post by:
i posted this a while ago and never got a response, but i'm still having problems, so i thought i'd see if anyone had any sudden realizations this time Thanks in advance! Tim I have...
4
by: Everett Muniz | last post by:
System: Windows 2000 SP4 ..NET Frameworks Installed: 1.0, 1.1 SP1 ..NET Framework In Question: 1.1 SP1 Web Server: IIS 5 Process Model User: machine Development Environment: VS.NET 2003...
0
by: Simon Tamman {Uchiha Jax} | last post by:
I had a problem with a datagrid a little while ago. '0' is not a valid value for 'value'. 'value' should be between 'minimum' and 'maximum' Strange problem that occured all the time, no...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.