Olá Pedro!

     It seems this has something to do with the version of Jasper shipped
with Tomcat 1.8.14. You might want to take a look at "Ant's jspc task -
doesn't work on Tomcat 4.1.18":
http://www.mail-archive.com/ant-user@jakarta.apache.org/msg22973.html. Boa
sorte colega!

Arménio Pinto


-----Original Message-----
From: Pedro Salazar [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 27 de Janeiro de 2003 11:04
To: [EMAIL PROTECTED]
Subject: jspc errors...


Greetings,

I'm trying to compile my jsp files but I'm blocked in jspc task! When I
run my target (jsp-compile) I got the exception below my ant task:

<jspc
        verbose="9"
        package="PT.ptinovacao.ngincare.jsp"
        srcdir="${src.web.dir}"
        destdir="${build.jsp.dir}"
        classpath="${build.server.dir}:${lib.classpath}"
        >
        <include name="**/*.jsp" />
</jspc>

exception:
"
jsp-compile:
     [jspc] Compiling 17 source
files/home/psalazar/work/proj/ngincare_ws/v2.1/web/build/jsp/PT/ptinovacao/n
gincare/jsp
  [jasperc] Exception in thread "main"
java.lang.ArrayIndexOutOfBoundsException: 23
  [jasperc]     at org.apache.jasper.JspC.locateUriRoot(JspC.java:616)
  [jasperc]     at org.apache.jasper.JspC.execute(JspC.java:747)
  [jasperc]     at org.apache.jasper.JspC.main(JspC.java:810)
BUILD FAILED
"

But, if I add a "uriroot" attribute pointing to ".", I got another
exception! It goes a little further in processing: it generates in my
${build.jsp.dir} directory [destdir attribute], a tree structure equals
the ${src.web.dir} [srcdir attribute], with a styles_jsp.java well
generated and the error_jsp.java empty causing this exception:
"
jsp-compile:
     [jspc] Compiling 17 source
files/home/psalazar/work/proj/ngincare_ws/v2.1/web/build/jsp/PT/ptinovacao/n
gincare/jsp
  [jasperc] 2003-01-27 10:51:33 - ERROR-the file
'/src/main/web/errorpage.jsp' generated the following general exception:
org.apache.jasper.JasperException: /src/main/web/errorpage.jsp(6,0) File
"/styles.jsp" not found
  [jasperc] error:/src/main/web/errorpage.jsp(6,0) File "/styles.jsp"
not found
BUILD FAILED
"

What is wrong here? I'm confused with the tree directory generated in my
build directory equals my path to my sources jsp files... Is it the
right behavior? 

I use ant-1.5.1 (compiled on October 2 2002), SUN's jdk1.4.1, tomcat
1.4.18 (jasper files) and a linux box.

thanks,
Pedro Salazar.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to