|
From: Shay H. <kel...@gm...> - 2006-12-04 21:27:32
|
I am new to the Wrapper, but have it mostly working with Tomcat 6.0.2. I
really only have one issue with the wrapper.app.parameter.X definitions. If
I have:
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=org.apache.catalina.startup.Bootstrap
wrapper.app.parameter.2=1
wrapper.app.parameter.3=start
wrapper.app.parameter.4=org.apache.catalina.startup.Bootstrap
wrapper.app.parameter.5=true
wrapper.app.parameter.6=1
wrapper.app.parameter.7=stop
then the wrapper doesn't call 'start' correctly. I get a usage output from
Tomcat. If I leave off everything past .4, it starts fine; ie
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=org.apache.catalina.startup.Bootstrap
wrapper.app.parameter.2=1
wrapper.app.parameter.3=start
This works, however, I have no idea the consequences of not providing the
stop parameters. I run it as console and a CTRL-C seems to clean everything
up fine, but I haven't tried daemon yet with a TERM signal.
I have output set to DEBUG and here is some of the output:
------------------------------------------------------------------------------------------------------------------------
DEBUG | wrapper | 2006/12/04 14:21:52 | Start Application.
DEBUG | wrapperp | 2006/12/04 14:21:52 | send a packet START : start
INFO | jvm 1 | 2006/12/04 14:21:53 | Received a packet LOW_LOG_LEVEL :
1
INFO | jvm 1 | 2006/12/04 14:21:53 | Wrapper Manager: LowLogLevel from
Wrapper is 1
INFO | jvm 1 | 2006/12/04 14:21:53 | Received a packet PING_TIMEOUT :
30
INFO | jvm 1 | 2006/12/04 14:21:53 | PingTimeout from Wrapper is 30000
INFO | jvm 1 | 2006/12/04 14:21:53 | Received a packet PROPERTIES :
(Property Values)
INFO | jvm 1 | 2006/12/04 14:21:53 | Received a packet START : start
INFO | jvm 1 | 2006/12/04 14:21:53 | calling WrapperListener.start()
INFO | jvm 1 | 2006/12/04 14:21:53 | Waiting for
WrapperListener.startrunner thread to complete.
INFO | jvm 1 | 2006/12/04 14:21:53 | WrapperListener.start runner
thread started.
INFO | jvm 1 | 2006/12/04 14:21:53 | WrapperSimpleApp: start(args) Will
wait up to 2 seconds for the main method to complete.
INFO | jvm 1 | 2006/12/04 14:21:53 | WrapperSimpleApp: invoking main
method
INFO | jvm 1 | 2006/12/04 14:21:53 | usage: java
org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] {
start | stop }
INFO | jvm 1 | 2006/12/04 14:21:53 | Dec 4, 2006 2:21:53 PM
org.apache.catalina.startup.Catalina stopServer
INFO | jvm 1 | 2006/12/04 14:21:53 | SEVERE: Catalina.stop:
INFO | jvm 1 | 2006/12/04 14:21:53 | java.net.ConnectException:
Connection refused
INFO | jvm 1 | 2006/12/04 14:21:53 | at
java.net.PlainSocketImpl.socketConnect(Native Method)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
INFO | jvm 1 | 2006/12/04 14:21:53 | at java.net.Socket.connect(
Socket.java:519)
INFO | jvm 1 | 2006/12/04 14:21:53 | at java.net.Socket.connect(
Socket.java:469)
INFO | jvm 1 | 2006/12/04 14:21:53 | at java.net.Socket.<init>(
Socket.java:366)
INFO | jvm 1 | 2006/12/04 14:21:53 | at java.net.Socket.<init>(
Socket.java:179)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
java.lang.reflect.Method.invoke(Method.java:585)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
java.lang.reflect.Method.invoke(Method.java:585)
INFO | jvm 1 | 2006/12/04 14:21:53 | at
org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
INFO | jvm 1 | 2006/12/04 14:21:53 | at java.lang.Thread.run(
Thread.java:595)
INFO | jvm 1 | 2006/12/04 14:21:53 | Wrapper Manager: ShutdownHook
started
INFO | jvm 1 | 2006/12/04 14:21:53 | WrapperManager.stop(0) called by
thread: Wrapper-Shutdown-Hook
INFO | jvm 1 | 2006/12/04 14:21:53 | Send a packet STOP : 0
INFO | jvm 1 | 2006/12/04 14:21:53 | Startup runner thread stopped.
DEBUG | wrapperp | 2006/12/04 14:21:53 | read a packet STOP : 0
DEBUG | wrapper | 2006/12/04 14:21:53 | JVM requested a shutdown. (0)
DEBUG | wrapper | 2006/12/04 14:21:53 | wrapperStopProcess(0) called.
DEBUG | wrapper | 2006/12/04 14:21:53 | Sending stop signal to JVM
-----------------------------------------------------------------------------------------------------------------------------------
It seems the line:
INFO | jvm 1 | 2006/12/04 14:21:53 | usage: java
org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] {
start | stop }
indicates that startup.Catalina received incorrect parameters and sent back
a usage string. This only happens if I leave in parameters 4,5,6 and 7.
After some research it seems the "Connection refused" is because the Tomcat
server never started in the first place.
Anyone have any idea how to get this working?
Thanks.
Shay
|