There are a big problem with JspC antīs tag, its error messages.
Someone must analyse JspC code and improve all messages within. But i hope
that this exemple would help you:

        <!--///////////////////////////////////////////////////////-->
        <target name="compilePaginasJSP"
                                        depends="copiarArquivosEstaticos">
                <jspc   srcdir                  ="${webapp}/jsp"
                                        destdir                 ="${webapp}"
                                        verbose                 ="9"
                                        package
="org.apache"
                                        webxml
="${webapp}/WEB-INF/jsp.xml"
                                        classpathref="base-path">
                        <webapp basedir="${webapp}"/>
                </jspc>
                
                <javac  srcdir="${webapp}/jsp"
                                                debug="${use.debug}"
                                                classpathref="base-path"
                                                destdir="${webapp}/bin"/>
                                                
                <jar destfile="${webapp}/WEB-INF/lib/libjsp.jar"
                                 basedir="${webapp}/bin"/>

                <delete dir="${webapp}/jsp"/>
                <delete dir="${webapp}/bin"/>
        </target>
        <!--///////////////////////////////////////////////////////-->


> ----------
> De:   Hans Steinraht[SMTP:[EMAIL PROTECTED]
> Responder:    Tomcat Users List
> Enviada:      domingo, 14 de dezembro de 2003 14:03
> Para:         [EMAIL PROTECTED]
> Assunto:      precompile jsp
> 
> hi all,
> 
> just a question, I'm trying to precompile my jsp with the ant build 
> script from the apache site ( jasper-howto).
> I don.t now what is going wrong but when I execute it with:
>     ant -Dtomcat.home=/opt/jakarta-tomcat-4.1.24  
>             -Dwebapp.path=/opt/jakarta-tomcat-4.1.24/webapps/mywebapp
> the message I receive is:
>     jspc:
>     No public no-arg constructor in class org.apache.jasper.JspC
>     BUILD FAILED
>     file:/jspc/build.xml:11: No public no-arg constructor in class 
> org.apache.jasper.JspC
> 
> Ant idea what I'm doing wrong?
> 
> Maybe interesting, I get the same error when I try to precompile with 
> the script from:
>     http://cvs.apache.org/~fhanik/precompile.html
> 
> Any help is apreciated
> Hans
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to