mod_jk Could not find a worker error
Hi All I have installed tomcat5.5 with apache2.2 on a debian box following the guide at http://www.howtoforge.com/apache2_tomcat5_mod_jk I have followed this guide relatively strictly, the only things i have changed are the jdk version used (JDK 6 update 2) and the mod_jk installation method (i used apt-get install libapache-mod-jk) However when i try to test the installation i get a 500 internal server error. There is this line in the mod_jk.log [Thu Aug 23 21:53:56 2007] [6726:42688] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=ajp13 And another thing i have noticed is that when i enter "which java" on the command line, nothing is returned (it should be my java path /usr/lib/jdk apparently. javac doesnt work either) Just wondering if anybody knows what could be wrong with the installation? Any help greatly appreciated Cheers Will
Re: Tomcat5.5 Ubuntu startup error
Thanks for all your help, i have finally got the server running on localhost:8080. I pointed the JAVA_HOME at the sun jdk instead of the default ubuntu jvm However i am now having a problem integrating it with apache2 mod_jk It wont read .jsp files, the browser genrates this error: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. And the server logs say this -> [Sat Jun 09 20:06:34 2007] [17814:5824] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (955): Tomcat has forced a connection close for socket 17 [Sat Jun 09 20:06:34 2007] [17814:5824] [error] ajp_get_reply::jk_ajp_common.c (1531): Tomcat is down or refused connection. No response has been sent to the client (yet) [Sat Jun 09 20:06:34 2007] [17814:5824] [info] ajp_service::jk_ajp_common.c (1751): Receiving from tomcat failed, recoverable operation attempt=0 [Sat Jun 09 20:06:34 2007] [17814:5824] [info] ajp_service::jk_ajp_common.c (1783): Sending request to tomcat failed, recoverable operation attempt=1 [Sat Jun 09 20:07:04 2007] [17814:5824] [info] ajp_connection_tcp_get_message::jk_ajp_common.c (955): Tomcat has forced a connection close for socket 17 [Sat Jun 09 20:07:04 2007] [17814:5824] [error] ajp_get_reply::jk_ajp_common.c (1531): Tomcat is down or refused connection. No response has been sent to the client (yet) [Sat Jun 09 20:07:04 2007] [17814:5824] [info] ajp_service::jk_ajp_common.c (1751): Receiving from tomcat failed, recoverable operation attempt=1 [Sat Jun 09 20:07:04 2007] [17814:5824] [info] ajp_service::jk_ajp_common.c (1783): Sending request to tomcat failed, recoverable operation attempt=2 [Sat Jun 09 20:07:04 2007] [17814:5824] [error] ajp_service::jk_ajp_common.c (1794): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=worker1 failed [Sat Jun 09 20:07:04 2007] [17814:5824] [info] jk_handler::mod_jk.c (1978): Service error=0 for worker=worker1 Does anybody know what is going wrong with this? Cheers Will On 6/8/07, Matthew Whittaker-Williams <[EMAIL PROTECTED]> wrote: On Friday 08 June 2007 15:16, Leonel wrote: > On 6/7/07, Will Parkinson <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I am having a few problems with tomcat 5.5 on ubuntu feisty > > > > When i start the tomcat service, its outputs that its started ok, but > > when i view the status (/etc/init.d/tomcat5.5 status) it says the service > > is not running. > > > > This is in the /var/log/tomcat5.5/catalina.out logfile > > > > libgcj: unknown option: -Xmx128M > > 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create Java VM > > 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit with a return > > value of 1 > > > > > > Does anybody know how to fix this problem? Or does anybody know where to > > find the libgcj file so i can fix it myself? > > > > Cheers > > > > Will > > enable multiverse and install sun-java6-jdk Where did you place these options? and did you set it in JAVA_OPTS or CATALINA_OPTS? Here is my line which works fine: /etc/default/tomcat/tomcat-5.5 JAVA_OPTS="-Xmx4g -Xms2g -XX:NewSize=1g -XX:MaxPermSize=512m -XX:SurvivorRatio=4 -XX: +UseParallelGC -XX:+AggressiveHeap -Djava.awt.headless=true" Kind regards Matthew ----- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Will Parkinson MediaArchitecs / BusinessPartner Ph: (07) 3846 2873 Mob: 0433 143 272 0424 433 816
Re: Tomcat5.5 Ubuntu startup error
Hi Zdenek I have JDK 6.0 installed (from this url http://java.sun.com/javase/downloads/index.jsp) Cheers Will On 6/8/07, Zdeněk Vráblík <[EMAIL PROTECTED]> wrote: Hi Will, what java JDK do you have installed? It looks you don't have installed SUN JDK 5 or higher. Regards, Zdenek On 6/8/07, Will Parkinson <[EMAIL PROTECTED]> wrote: > > Hi Rene, > > Thanks for the help, i removed the line i tried the -Xmx=128m alteration > to > the JAVA_OPTS line and nothing changes. I also tried removing the > -Xmx128M > option all together and what i got was this: > > #/etc/init.d/tomcat5.5 status > * Tomcat servlet engine is not running, but pid file exists. > > And in the log file > 08/06/2007 15:45:32 7528 jsvc.exec error: Service killed by signal 6 > > So im am still a bit stuck > > Will > > > > On 6/8/07, Rene Guenther <[EMAIL PROTECTED]> wrote: > > > > Probably the options setting should be -Xmx=128m. I am not > > sure, but you should check the enviroment variables: > > > > CATALINA_OPTS > > JAVA_OPTS > > > > and the startup scripts in %CATALINA_HOME%\bin > > > > René > > > > On Fri, 8 Jun 2007 14:14:05 +1000 > > "Will Parkinson" <[EMAIL PROTECTED]> wrote: > > > Hi All, > > > > > > I am having a few problems with tomcat 5.5 on ubuntu > > >feisty > > > > > > When i start the tomcat service, its outputs that its > > >started ok, but when i > > > view the status (/etc/init.d/tomcat5.5 status) it says > > >the service is not > > > running. > > > > > > This is in the /var/log/tomcat5.5/catalina.out logfile > > > > > > libgcj: unknown option: -Xmx128M > > > 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create > > >Java VM > > > 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit > > >with a return value > > > of 1 > > > > > > > > > Does anybody know how to fix this problem? Or does > > >anybody know where to > > > find the libgcj file so i can fix it myself? > > > > > > Cheers > > > > > > Will > > > > > > - > > To start a new topic, e-mail: users@tomcat.apache.org > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Will Parkinson > MediaArchitecs / BusinessPartner > Ph: (07) 3846 2873 > Mob: 0433 143 272 > 0424 433 816 > -- Will Parkinson MediaArchitecs / BusinessPartner Ph: (07) 3846 2873 Mob: 0433 143 272 0424 433 816
Re: Tomcat5.5 Ubuntu startup error
Hi Rene, Thanks for the help, i removed the line i tried the -Xmx=128m alteration to the JAVA_OPTS line and nothing changes. I also tried removing the -Xmx128M option all together and what i got was this: #/etc/init.d/tomcat5.5 status * Tomcat servlet engine is not running, but pid file exists. And in the log file 08/06/2007 15:45:32 7528 jsvc.exec error: Service killed by signal 6 So im am still a bit stuck Will On 6/8/07, Rene Guenther <[EMAIL PROTECTED]> wrote: Probably the options setting should be -Xmx=128m. I am not sure, but you should check the enviroment variables: CATALINA_OPTS JAVA_OPTS and the startup scripts in %CATALINA_HOME%\bin René On Fri, 8 Jun 2007 14:14:05 +1000 "Will Parkinson" <[EMAIL PROTECTED]> wrote: > Hi All, > > I am having a few problems with tomcat 5.5 on ubuntu >feisty > > When i start the tomcat service, its outputs that its >started ok, but when i > view the status (/etc/init.d/tomcat5.5 status) it says >the service is not > running. > > This is in the /var/log/tomcat5.5/catalina.out logfile > > libgcj: unknown option: -Xmx128M > 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create >Java VM > 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit >with a return value > of 1 > > > Does anybody know how to fix this problem? Or does >anybody know where to > find the libgcj file so i can fix it myself? > > Cheers > > Will - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Will Parkinson MediaArchitecs / BusinessPartner Ph: (07) 3846 2873 Mob: 0433 143 272 0424 433 816
Tomcat5.5 Ubuntu startup error
Hi All, I am having a few problems with tomcat 5.5 on ubuntu feisty When i start the tomcat service, its outputs that its started ok, but when i view the status (/etc/init.d/tomcat5.5 status) it says the service is not running. This is in the /var/log/tomcat5.5/catalina.out logfile libgcj: unknown option: -Xmx128M 08/06/2007 14:04:55 5890 jsvc.exec error: Cannot create Java VM 08/06/2007 14:04:55 5889 jsvc.exec error: Service exit with a return value of 1 Does anybody know how to fix this problem? Or does anybody know where to find the libgcj file so i can fix it myself? Cheers Will