Here´s my build file, i think that its ok. And if I did wrong, <jspc> output should give a error message not a stacktrace.
<?xml version="1.0"?> <!--/////////////////////////////////////////////////////////--> <project name="osctrl" basedir="/tmp" default="dist"> <property name="src" value="/desenv"/> <property name="pannet_home" value="/desenv/pannet"/> <property name="src" value="${pannet_home}/src/servlets"/> <property name="tomcat" value="/usr/local/ApacheGroup/tomcat-4.1.24"/> <property name="bin-jsp" value="classes-jsp"/> <property name="java-lib" value="${src}/pannet/java-lib"/> <!--Montando bilbiotecas basicas para que os fontes sejam compilados:--> <path id="base-path"> <!--Bibliotecas para funcoes do Servlets:--> <pathelement path="${java-lib}/ojdbc14.jar"/> <pathelement path="${java-lib}/crimson.jar"/> <pathelement path="${java-lib}/activation.jar"/> <pathelement path="${java-lib}/jcServlet.jar"/> <pathelement path="${java-lib}/jndi.jar"/> <pathelement path="${java-lib}/jstyle.jar"/> <pathelement path="${java-lib}/mail.jar"/> <pathelement path="${java-lib}/oreilly.jar"/> <pathelement path="${java-lib}/com.zip"/> <pathelement path="${java-lib}/shell_term.jar"/> <pathelement path="${java-lib}/servlet.jar"/> <pathelement path="${java-lib}/jaxp.jar"/> <pathelement path="${java-lib}/jdbc2_0-stdext.jar"/> <pathelement path="${java-lib}/jasper-compiler.jar"/> <pathelement path="${java-lib}/jasper-runtime.jar"/> <pathelement location="${src}/pannet/src/servlets/base/classes"/> <pathelement location="${src}/osctrl_lib/classes"/> <pathelement location="\usr\local\jakarta\apache-ant-1.5.4\lib\ant.jar"/> <pathelement location="\usr\local\jakarta\apache-ant-1.5.4\lib\optional.jar"/> <pathelement location="\usr\local\jakarta\apache-ant-1.5.4\lib\xercesImpl.jar"/> <pathelement location="\usr\local\jakarta\apache-ant-1.5.4\lib\xml-apis.jar"/> </path> <target name="compilar-jsp" description="Compilando paginas JSP"> <mkdir dir="${bin-jsp}"/> <jspc srcdir="${src}/osctrl/src/jsp" destdir="${bin-jsp}" package="org.apache.jsp"> <classpath refid="base-path"/> <include name="*.jsp"/> </jspc> </target> <target name="dist" depends="compilar-jsp"> <war warfile="osctrl-app.war" webxml="${src}/osctrl/src/web.xml"> <!-- Arquivos do raiz: --> <fileset dir="${src}/osctrl/src/html"/> <fileset dir="${src}/osctrl/src/jsp"> <exclude name="cadastro"/> <exclude name="util"/> </fileset> <!-- Bibliotecas utilizadas: --> <lib dir="${tomcat}/shared/lib"> <exclude name="*.zip"/> </lib> <classes dir="${src}/osctrl/classes"/> <zipfileset dir="${src}/osctrl/src/taglib" prefix="WEB-INF"/> <zipfileset dir="${src}/osctrl/src/jsp" prefix="jsp"/> <zipfileset dir="${src}/osctrl/src/html" prefix="html"/> <zipfileset dir="${src}/osctrl/src/img" prefix="img"/> <zipfileset dir="${src}/osctrl/src/css" prefix="css"/> <zipfileset dir="${src}/osctrl/src/js" prefix="js"/> <zipfileset dir="${pannet_home}/html/js" prefix="js"/> <!-- Arquivos globais: --> <zipfileset dir="${src}/pannet/src/servlets/panfinance/jsp" prefix="jsp"/> </war> </target> </project> <!--/////////////////////////////////////////////////////////--> > ---------- > De: Antoine Lévy-Lambert[SMTP:[EMAIL PROTECTED] > Responder: Ant Developers List > Enviada: segunda-feira, 17 de novembro de 2003 11:17 > Para: Ant Developers List > Assunto: AW: problems with <jspc> tag - ant-1.6beta2 > > Hi Edson, > this stack trace shows an error occuring in a package which is not part of > ant, rather of tomcat. > Can you also show your build file ? Can it be that one of the parameters > which you are giving in the <jspc/> task is wrong ? > Or maybe there is a distinct <jasperc/> task (not sure). > > Antoine > > -----Ursprüngliche Nachricht----- > Von: Edson Alves Pereira [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 17. November 2003 15:57 > An: 'Jakarta-ant-Developers' > Betreff: problems with <jspc> tag - ant-1.6beta2 > > > Hello folks, i having some problems with jspc tag. I trying to solve > or to known with is wrong here, but in my terminal i got this exception: > > [jspc] Compiling 3 source filesD:\tmp\classes-jsp\org\apache\jsp > [jasperc] java.lang.ArrayIndexOutOfBoundsException: 9 > [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) > [jasperc] Exception in thread "main" > > And when I try to find these lines in JspC.java they are completely > different, for instance, JspC.java has a limit of 658 lines and we can see > above line 823, i ensure that i really using the version and binaries > compiled right. > Could someone point me the clues? > > Regards, > Edson > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >