You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike <dr...@platinum-dragon.com> on 2003/12/04 09:39:56 UTC
Tomcat 5.0.16 as a service
OK, OK. I know 5.x is SUPPOSED to have this easy to use service installer, but it's not working for me. The installation program doesn't even try to create the service (at least I can't find any evidence of it), so I'm trying to create my own using the tomcat.exe program, but when I go to start it I get this evil "The Apache Tomcat (Live) service on Local Computer started and then stopped. Some services...". No log files of any type are created. If I run startup.bat from a command line, it starts up and runs fine, but I need the service.
I'm using:
tomcat //IS//ApacheTomcatLive
--DisplayName "Apache Tomcat (Live)"
--Description "Apache Tomcat 5.0.16 - Live Instance"
--ImagePath "c:\www\live\tomcat\5.0.16\bin\bootstrap.jar"
--StartupClass org.apache.catalina.startup.Bootstrap;main;start
--ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop
--Java auto
There's no linefeeds obviously, and I've even tried adding tools.jar to the ImagePath argument as well.
Does anybody see what I'm doing wrong?
Thanks,
Mike
SEVERE: Error in action code
Posted by Reynir Þór Hübner <re...@hugsmidjan.is>.
Hi,
Was browsing through some logfiles and found this, is this something I
should worrie about ?
SEVERE: Error in action code
java.net.SocketException: Connection reset
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at
org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:407)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:599)
at
org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:372)
at org.apache.coyote.Response.action(Response.java:222)
at org.apache.coyote.Response.finish(Response.java:343)
at
org.apache.coyote.tomcat4.OutputBuffer.close(OutputBuffer.java:326)
at
org.apache.coyote.tomcat4.CoyoteResponse.finishResponse(CoyoteResponse.j
ava:500)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:224)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
562)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:534)
Thanx
-reynir
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Tomcat 5.0.16 as a service
Posted by Mladen Turk <mt...@apache.org>.
> -----Original Message-----
> From: Mike
>
> OK, OK. I know 5.x is SUPPOSED to have this easy to use
> service installer, but it's not working for me.
>
> I'm using:
>
> tomcat //IS//ApacheTomcatLive
> --DisplayName "Apache Tomcat (Live)"
> --Description "Apache Tomcat 5.0.16 - Live Instance"
> --ImagePath "c:\www\live\tomcat\5.0.16\bin\bootstrap.jar"
> --StartupClass org.apache.catalina.startup.Bootstrap;main;start
> --ShutdownClass org.apache.catalina.startup.Bootstrap;main;stop
> --Java auto
>
Add the --Install c:\www\live\tomcat\5.0.16\bin\tomcat.exe
and use --Java java (not --Java auto).
If using --Java auto (inproc jvm.dll) you will need
--StartupClass org.apache.catalina.startup.BootstrapService;main;start
Also add
--JavaOptions -Xrs
(so that redirected java.exe doesn't die on first logoff).
MT.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org