ant-user mailing list archives

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

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/${module.name}"/>
    <mkdir dir="${jspc.temp.dir}/jsp"/>
    <!-- <unjar src="${mywarfile}" dest="${jspc.temp.dir}"/> -->

    <jspc destdir="${jspc.temp.dir}/jsp" 
srcdir="${dist.home}/${project.name}/${module.name}/www" verbose="9"
        compiler="jasper41">
        <classpath>
            <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 -->
            <path 
location="${dist.home}/${project.name}/utils/masqutils.jar"/>
            <!-- We are adding handler-client.jar as it is required if 
jikes is the jsp compiler used -->
            <path 
location="${dist.home}/${project.name}/handler/handler-client.jar"/>
        </classpath>
    </jspc>

</target>

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(JspC.java:628)
  [jasperc]     at org.apache.jasper.JspC.execute(JspC.java:759)
  [jasperc]     at org.apache.jasper.JspC.main(JspC.java:823)

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.

Thanks,

L

-- 
<Laurent Duperval> laurent.duperval@microcell.ca

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





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message