You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Hans Steinraht <ha...@artofakt.com> on 2003/12/14 18:03:34 UTC

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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: precompile jsp

Posted by Hans Steinraht <ha...@artofakt.com>.
That was it,
I had the same har in my classpath, removed it ant jspc is running smoothly
now.

Thanks for (all) the Help I got,
Hans




On Wed, Dec 17, 2003 at 03:51:56PM +0100, Reinhard Moosauer wrote:
> Hi Hans,
> 
> your problem is a version conflict.
> ant simply uses the wrong version of org.apache.jasper.JspC.
> 
> I had a version of "j2ee-1.3.jar" in my classpath, which contains JspC also.
> I removed it and the problem was gone.
> 
> regards,
> 
> Reinhard
> 
> 
> Am Sonntag, 14. Dezember 2003 18:03 schrieb Hans Steinraht:
> > 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: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 

-- 
--------------------  
Hans Steinraht
Artofakt Internet Solutions
Binnenkadijk 120 
1018 ZH Amsterdam
The Netherlands
hans@artofakt.com 
Phone:   +3120 638 4667    
Mobile:  +316 45 202 302
Fax:     +3120 638 4667
www.artofakt.com





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


Re: precompile jsp

Posted by Reinhard Moosauer <rm...@moosauer.de>.
Hi Hans,

your problem is a version conflict.
ant simply uses the wrong version of org.apache.jasper.JspC.

I had a version of "j2ee-1.3.jar" in my classpath, which contains JspC also.
I removed it and the problem was gone.

regards,

Reinhard


Am Sonntag, 14. Dezember 2003 18:03 schrieb Hans Steinraht:
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


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