ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurent Duperval <>
Subject Problemn with Jasper and jspc task
Date Fri, 21 Nov 2003 16:27:34 GMT

I'm trying to use the jspc task to validate my JSP files (not precompile 
them, just make sure that they will compile). I deploy on Weblogic 8.1. 
My target is defined as follows:

<target name="jspcA" if="mywarfile" depends="dist">
    <property name="jspc.temp.dir" value="${temp.dir}/jspc/${}"/>
    <mkdir dir="${jspc.temp.dir}/jsp"/>
    <!-- <unjar src="${mywarfile}" dest="${jspc.temp.dir}"/> -->

    <jspc destdir="${jspc.temp.dir}/jsp" 
srcdir="${dist.home}/${}/${}/www" verbose="9"
            <path refid="commoncp"/>
            <path location="${weblogic.lib}/weblogic.jar"/>
            <path location="${ant.home}/lib/jasper-compiler.jar"/>
            <path location="${ant.home}/lib/jasper-runtime.jar"/>
            <path location="${ant.home}/lib/servlet.jar"/>
            <!-- We are adding rt.jar as it is required if jikes is the 
jsp compiler used -->
            <path location="${java.home}/lib/rt.jar"/>
            <!-- We are adding masqUtils.jar as it is required if jikes 
is the jsp compiler used -->
            <!-- We are adding handler-client.jar as it is required if 
jikes is the jsp compiler used -->


And when I run the task, I get this:

  [jasperc] Exception in thread "main" 
java.lang.ArrayIndexOutOfBoundsException: 28
  [jasperc]     at org.apache.jasper.JspC.locateUriRoot(
  [jasperc]     at org.apache.jasper.JspC.execute(
  [jasperc]     at org.apache.jasper.JspC.main(

I saw a message about such a problem on the user list and another 
mention in the tomcat list, but nothing that helps meunderstand what the 
problem is and what steps to take to fix it.

It seems as though Jasper is problematic with Ant. Should I try using 
the Weblogic compiler instead? Or jikes? I'm running Ant 1.5.4 and I'm 
trying to use Jasper from Tomcat 4.1.29.



<Laurent Duperval>

If you are what you eat, then I'm fast, cheap and easy.
            --- Anon

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message