tomcat isn't using Jikes for compiling jsps
Hay there, Because of the outOfMemory errors I get while compiling the (large number of) jsp's I like to use Jikes to compile them. In conf/web.xml I try to configure Tomcat to use Jikes as followed: jsp org.apache.jasper.servlet.JspServlet logVerbosityLevel WARNING compiler jikes fork true 3 And on top in bin/catalina.sh I added: CATALINA_OPTS="-Dbuild.compiler.emacs=true". Furter I have set -Xms and -Xmx for the java compiler, but I don't think I have to do this when I want to use Jikes When I now start Tomcat and go through the jsp's I'm still getting the outOfMemory errors after a while. When I'm thinking about this it lookes like Tomcat Isn't using Jikes at all to compile the jsp's Is there a way to check if Tomcat is using Jikes??? And did I do something wrong with my configuration in Tomcat??? Is it necesary to set the fork parameter when I want to use Jikes??? Any help is preciated Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: precompile jsp
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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- Hans Steinraht Artofakt Internet Solutions Binnenkadijk 120 1018 ZH Amsterdam The Netherlands [EMAIL PROTECTED] Phone: +3120 638 4667 Mobile: +316 45 202 302 Fax: +3120 638 4667 www.artofakt.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: precompile jsp
Doing it this way your using ants jspc task giving the classes a packagename "org.apache" I have checked tomcats work directory and see that tomcat compiles the jsp in a package "org.apache.jsp". Thats why I like to use tomcats jspc task (org.apache.jasper.JspC), to avoid that there are differences in the way tomcat compiles or when I do it myself. Anyhow thanks for the answer, I try to play with it and see what happends Hans On Mon, Dec 15, 2003 at 09:35:46AM -0300, Edson Alves Pereira wrote: > 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: > > > depends="copiarArquivosEstaticos"> > destdir ="${webapp}" > verbose ="9" > package > ="org.apache" > webxml > ="${webapp}/WEB-INF/jsp.xml" > classpathref="base-path"> > > > > debug="${use.debug}" > classpathref="base-path" > destdir="${webapp}/bin"/> > > basedir="${webapp}/bin"/> > > > > > > > > > -- > > 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] > > -- Hans Steinraht Artofakt Internet Solutions Binnenkadijk 120 1018 ZH Amsterdam The Netherlands [EMAIL PROTECTED] Phone: +3120 638 4667 Mobile: +316 45 202 302 Fax: +3120 638 4667 www.artofakt.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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]
setting opts to avoid OutOfMemory errors
Maybe someone can help me out with some questions I have to avoid the OutOfMemory errors that I have from time to time The computer where Tomcat, version 4.1.24, is running is a linux machine wit 500M memory and j2sdk1.4.1. I have read in this newsgroup that the solutions to avoid OutOfMemory errors is to set the initial size of the memory allocation pool Xms to a value and also the max size Xmx. In this I have to questions: 1. what are the best values? 2. happends when I set the values to high? I have tried running tomcat with JAVA_OPTS="-Xms64m -Xmx256m", but the problem still occurs, so can I set Xmx to 500m, but what is than happening with the memory left (maybe there isn't) for tha other applications on thie machine. I hope someone can clear things a bit up for me, Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setting opts to avoid OutOfMemory errors
Maybe someone can help me out with some questions I have to avoid the OutOfMemory errors that I have from time to time The computer where Tomcat, version 4.1.24, is running is a linux machine wit 500M memory and j2sdk1.4.1. I have read in this newsgroup that the solutions to avoid OutOfMemory errors is to set the initial size of the memory allocation pool Xms to a value and also the max size Xmx. In this I have to questions: 1. what are the best values? 2. happends when I set the values to high? I have tried running tomcat with JAVA_OPTS="-Xms64m -Xmx256m", but the problem still occurs, so can I set Xmx to 500m, but what is than happening with the memory left (maybe there isn't) for tha other applications on thie machine. I hope someone can clear things a bit up for me, Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutOfMemoryError on Tomcat-4.1.24
hi, I'm installed Tomcat-4.1.24 on a Linux Debian pc with j2sdk1.4.1. On that there is an application running that causes Tomcat stoppping from time to time. The error I get is: Dec 2, 2003 1:44:33 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError It's not predictable when it happens, sometimes 3 weeks all seems to go right and than in 2 days Tomcat stops. Can any one point me to a direction where I have to look for. thanks in advance Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OutOfMemoryError on Tomcat-4.1.24
hi, I'm installed Tomcat-4.1.24 on a Linux Debian pc with j2sdk1.4.1. On that there is an application running that causes Tomcat stoppping from time to time. The error I get is: Dec 2, 2003 1:44:33 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception executing [EMAIL PROTECTED], terminating thread java.lang.OutOfMemoryError It's not predictable when it happens, sometimes 3 weeks all seems to go right and than in 2 days Tomcat stops. Can any one point me to a direction where I have to look for. thanks in advance Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]