You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Will Parkinson <wi...@gmail.com> on 2007/06/08 06:14:05 UTC

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

Re: Tomcat5.5 Ubuntu startup error

Posted by Kristian Rink <kr...@zimmer428.net>.
Will;

["Will Parkinson" <wi...@gmail.com> @ Fri, 8 Jun 2007 16:35:45 +1000]

> Hi Zdenek
> 
> I have JDK 6.0 installed (from this url
> http://java.sun.com/javase/downloads/index.jsp)
>

Ubuntu comes preinstalled with GNU classpath and friends so no matter
whether or not you install an "additional" JDK, the preinstalled "GNU
Java" always will be first to be found. An easy solution to fix this
(at least this is how I do it by now, on several machines) is to set
JAVA_HOME and PATH to something like this:

export JAVA_HOME=/opt/java
export PATH=$JAVA_HOME/bin:$PATH

Prepending the $JAVA_HOME/bin to $PATH helps here because, by then, the
java(c) commands provided by the JDK are to be found first (and used,
by then - otherwise the "GNU Java" that comes with Ubuntu will be used
no matter which JDK you do have installed).

As an alternative, of course, you might want to install the sun-java
stuff from Ubuntu multiverse... ;)

Cheers,
Kristian

-- 
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu@jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat5.5 Ubuntu startup error

Posted by Will Parkinson <wi...@gmail.com>.
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 <zd...@vrablik.org> 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 <wi...@gmail.com> 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 <in...@innflow.com> 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" <wi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> > > For additional commands, e-mail: users-help@tomcat.apache.org
> > >
> > >
> >
> >
> > --
> > 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

Posted by Zdeněk Vráblík <zd...@vrablik.org>.
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 <wi...@gmail.com> 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 <in...@innflow.com> 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" <wi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
>
>
> --
> Will Parkinson
> MediaArchitecs / BusinessPartner
> Ph: (07) 3846 2873
> Mob: 0433 143 272
>         0424 433 816
>

Re: Tomcat5.5 Ubuntu startup error

Posted by Will Parkinson <wi...@gmail.com>.
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 <in...@innflow.com> 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" <wi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Will Parkinson
MediaArchitecs / BusinessPartner
Ph: (07) 3846 2873
Mob: 0433 143 272
        0424 433 816

Re: Tomcat5.5 Ubuntu startup error

Posted by Rene Guenther <in...@innflow.com>.
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" <wi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat5.5 Ubuntu startup error

Posted by Will Parkinson <wi...@gmail.com>.
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 <ma...@quanza.net> wrote:
>
> On Friday 08 June 2007 15:16, Leonel wrote:
> > On 6/7/07, Will Parkinson <wi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Will Parkinson
MediaArchitecs / BusinessPartner
Ph: (07) 3846 2873
Mob: 0433 143 272
        0424 433 816

Re: Tomcat5.5 Ubuntu startup error

Posted by Matthew Whittaker-Williams <ma...@quanza.net>.
On Friday 08 June 2007 15:16, Leonel wrote:
> On 6/7/07, Will Parkinson <wi...@gmail.com> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat5.5 Ubuntu startup error

Posted by Leonel <ln...@gmail.com>.
On 6/7/07, Will Parkinson <wi...@gmail.com> 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

-- 
Leonel

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat5.5 Ubuntu startup error

Posted by Hakan Koseoglu <ha...@gmail.com>.
Will Parkinson said the following on 06/08/2007 05:14 AM:
> Hi All,
> 
> I am having a few problems with tomcat 5.5 on ubuntu feisty
Your system is set to use GNU Java. Youse the update-alternatives 
command to change the Java version to the Sun JREs.

Cheers,
Hakan

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org