|
From: ejml <eli...@gm...> - 2009-03-17 09:41:52
|
Hello Folks!, I'm trying to use Java Service Wrapper to implement my java project like windows service. My Project is made with Spring using Jetty. In other words, I use spring to startup jetty. This setup in eclipse work fine but I try to configure my application with Java Service Wrapper I get the next: DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for the service. DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as Service STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper Community Edition 3.3.3 STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2009/03/17 09:40:35 | http://wrapper.tanukisoftware.org STATUS | wrapper | 2009/03/17 09:40:35 | DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port 32000. DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: wrapper.ping.interval=5, wrapper.ping.interval.logged=1, wrapper.ping.timeout=30 STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... DEBUG | wrapper | 2009/03/17 09:40:35 | command: "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 com.gvs.AXConnectorServer.AXConnectorServiceWin32 DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@11b86e7 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: Initializing... INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM #1 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Running a 32-bit JVM. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Registering shutdown hook INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using wrapper INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load native library. One or more attempts may fail if platform specific libraries do not exist. This is NORMAL and is only a problem if they all fail. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Unable to load native library: wrapper-windows-x86-32.dll Cause: no wrapper-windows-x86-32 in java.library.path INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Loaded native library: wrapper.dll INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Calling native initialization method. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Initializing WrapperManager native library. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java Executable: C:\WINNT\system32\java.exe INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows version: 5.0.2195 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java Version : 1.6.0_11-b03 Java HotSpot(TM) Client VM INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Name : Windows 2000 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Arch : x86 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, args[]) called by thread: main INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Startup runner thread started. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Control event monitor thread started. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Communications runner thread started. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Failed attempt to bind using local port 31000 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Opened Socket from 31001 to 32000 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a packet KEY : fREO9IxlyMDSknzk INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from 127.0.0.1 on port 31001 DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : fREO9IxlyMDSknzk DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: fREO9IxlyMDSknzk DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT : 30 DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : (Property Values) DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a packet PING_TIMEOUT : 30 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: PingTimeout from Wrapper is 30000 INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a packet PROPERTIES : (Property Values) INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a packet START : start INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: calling WrapperListener.start() INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: WrapperListener.start runner thread started. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: returned from WrapperListener.start() INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: WrapperListener.start() returned an exit code of 0. INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: WrapperManager.stop(0) called by thread: WrapperListener_start_runner INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a packet STOP : 0 DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. (0) DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) called. DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Received a packet STOP : INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Thread, WrapperListener_start_runner, handling the shutdown process. INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: shutdownJVM(0) Thread:WrapperListener_start_runner INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait for 0 shutdown locs to be released. INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send a packet STOPPED : 0 DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was stopped. INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Closing socket. DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code (closed?). INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: calling System.exit(0) INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Server daemon shut down DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped This log say us something. Thanks in advance!!. -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22554782.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Leif M. <lei...@ta...> - 2009-03-17 10:12:48
|
Elias, >From the java command line, it looks like you are making use of Integration Method #3 for your application. Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class something that you created? It appears to be working pretty much correctly. The problem is that your WrapperListener.start implementation is returning an exit code of 0. This is telling the Wrapper that the JVM should exit with exit code 0. If the application is meant to continue running then the WrapperListener.start method should be returning null. See the Java docs for the WrapperListener class for more information: http://wrapper.tanukisoftware.org/doc/english/javadocs.html This is also described on the following page: http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html Cheers, Leif On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> wrote: > > Hello Folks!, > > I'm trying to use Java Service Wrapper to implement my java project like > windows service. My Project is made with Spring using Jetty. In other words, > I use spring to startup jetty. This setup in eclipse work fine but I try to > configure my application with Java Service Wrapper I get the next: > > DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for the > service. > DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. > STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as Service > STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper Community > Edition 3.3.3 > STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 Tanuki > Software, Ltd. All Rights Reserved. > STATUS | wrapper | 2009/03/17 09:40:35 | > http://wrapper.tanukisoftware.org > STATUS | wrapper | 2009/03/17 09:40:35 | > DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. > DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port 32000. > DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: > wrapper.ping.interval=5, wrapper.ping.interval.logged=1, > wrapper.ping.timeout=30 > STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... > DEBUG | wrapper | 2009/03/17 09:40:35 | command: > "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" > -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > com.gvs.AXConnectorServer.AXConnectorServiceWin32 > DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > WrapperManager class initialized by thread: main Using classloader: > sun.misc.Launcher$AppClassLoader@11b86e7 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: Initializing... > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM #1 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Running a > 32-bit JVM. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Registering > shutdown hook > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using > wrapper > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load native > library. One or more attempts may fail if platform specific libraries do > not exist. This is NORMAL and is only a problem if they all fail. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Unable to > load native library: wrapper-windows-x86-32.dll Cause: no > wrapper-windows-x86-32 in java.library.path > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Loaded > native library: wrapper.dll > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Calling > native initialization method. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Initializing > WrapperManager native library. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java Executable: > C:\WINNT\system32\java.exe > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows version: > 5.0.2195 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java Version > : 1.6.0_11-b03 Java HotSpot(TM) Client VM > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java VM > Vendor : Sun Microsystems Inc. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Name > : Windows 2000 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Arch > : x86 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, > args[]) called by thread: main > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Startup > runner thread started. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Control > event monitor thread started. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Communications runner thread started. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open socket > to wrapper...Wrapper-Connection > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Failed > attempt to bind using local port 31000 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Opened > Socket from 31001 to 32000 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a > packet KEY : fREO9IxlyMDSknzk > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) > DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from 127.0.0.1 > on port 31001 > DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : > fREO9IxlyMDSknzk > DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: fREO9IxlyMDSknzk > DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL : 1 > DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT : 30 > DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : > (Property Values) > DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. > DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a > packet LOW_LOG_LEVEL : 1 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: LowLogLevel > from Wrapper is 1 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a > packet PING_TIMEOUT : 30 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: PingTimeout > from Wrapper is 30000 > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a > packet PROPERTIES : (Property Values) > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received a > packet START : start > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: calling > WrapperListener.start() > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > WrapperListener.start runner thread started. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: returned > from WrapperListener.start() > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > WrapperListener.start() returned an exit code of 0. > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > WrapperManager.stop(0) called by thread: WrapperListener_start_runner > INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a > packet STOP : 0 > DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 > DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. (0) > DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) called. > DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM > DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL > INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Received a > packet STOP : > INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Thread, > WrapperListener_start_runner, handling the shutdown process. > INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: > shutdownJVM(0) Thread:WrapperListener_start_runner > INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait for 0 > shutdown locs to be released. > INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send a > packet STOPPED : 0 > DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 > DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was stopped. > INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Closing > socket. > DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code (closed?). > INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: calling > System.exit(0) > INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Server > daemon shut down > DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a code of > 0, leaving the wrapper exit code set to 0. > DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. > STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped > > This log say us something. > > Thanks in advance!!. |
|
From: ejml <eli...@gm...> - 2009-03-17 10:40:29
|
Thanks Leif by your response. Yes, I'm making use of Method 3 and your had reason. I had my variable initialized to 0. I have corrected this issue, but it doesn't works yet. My log says this: DEBUG | wrapper | 2009/03/17 11:38:41 | Allocating a console for the service. DEBUG | wrapper | 2009/03/17 11:38:41 | Found console window. STATUS | wrapper | 2009/03/17 11:38:41 | --> Wrapper Started as Service STATUS | wrapper | 2009/03/17 11:38:41 | Java Service Wrapper Community Edition 3.3.3 STATUS | wrapper | 2009/03/17 11:38:41 | Copyright (C) 1999-2009 Tanuki Software, Ltd. All Rights Reserved. STATUS | wrapper | 2009/03/17 11:38:41 | http://wrapper.tanukisoftware.org STATUS | wrapper | 2009/03/17 11:38:41 | DEBUG | wrapper | 2009/03/17 11:38:41 | Using tick timer. DEBUG | wrapperp | 2009/03/17 11:38:41 | server listening on port 32000. DEBUG | wrapper | 2009/03/17 11:38:41 | Ping settings: wrapper.ping.interval=5, wrapper.ping.interval.logged=1, wrapper.ping.timeout=30 STATUS | wrapper | 2009/03/17 11:38:41 | Launching a JVM... DEBUG | wrapper | 2009/03/17 11:38:41 | command: "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" -Dwrapper.key="YaKrFRBk8gEnOuzE" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=3516 -Dwrapper.version="3.3.3" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 com.gaviotasimbac.AXConnectorServer.AXConnectorServiceWin32 DEBUG | wrapper | 2009/03/17 11:38:41 | JVM started (PID=4892) INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@11b86e7 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager: Initializing... INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: JVM #1 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Running a 32-bit JVM. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Registering shutdown hook INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Using wrapper INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Load native library. One or more attempts may fail if platform specific libraries do not exist. This is NORMAL and is only a problem if they all fail. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Unable to load native library: wrapper-windows-x86-32.dll Cause: no wrapper-windows-x86-32 in java.library.path INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Loaded native library: wrapper.dll INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Calling native initialization method. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Initializing WrapperManager native library. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Java Executable: C:\WINNT\system32\java.exe INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Windows version: 5.0.2195 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java Version : 1.6.0_11-b03 Java HotSpot(TM) Client VM INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Name : Windows 2000 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Arch : x86 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Control event monitor thread started. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: WrapperManager.start(com.gaviotasimbac.AXConnectorServer.AXConnectorServiceWin32@201f9, args[]) called by thread: main INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup runner thread started. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Communications runner thread started. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Opened Socket from 31000 to 32000 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a packet KEY : YaKrFRBk8gEnOuzE INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) DEBUG | wrapperp | 2009/03/17 11:38:42 | accepted a socket from 127.0.0.1 on port 31000 DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet KEY : YaKrFRBk8gEnOuzE DEBUG | wrapper | 2009/03/17 11:38:42 | Got key from JVM: YaKrFRBk8gEnOuzE DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PING_TIMEOUT : 30 DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PROPERTIES : (Property Values) DEBUG | wrapper | 2009/03/17 11:38:42 | Start Application. DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet START : start INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a packet PING_TIMEOUT : 30 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: PingTimeout from Wrapper is 30000 INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a packet PROPERTIES : (Property Values) INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a packet START : start INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: calling WrapperListener.start() INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: WrapperListener.start runner thread started. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: returned from WrapperListener.start() INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a packet STARTED : INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: WrapperListener.start runner thread stopped. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup runner thread stopped. INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: ShutdownHook started INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a packet STOP : 0 DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STARTED : DEBUG | wrapper | 2009/03/17 11:38:42 | JVM signalled that it was started. DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STOP : 0 DEBUG | wrapper | 2009/03/17 11:38:42 | JVM requested a shutdown. (0) DEBUG | wrapper | 2009/03/17 11:38:42 | wrapperStopProcess(0) called. DEBUG | wrapper | 2009/03/17 11:38:42 | Sending stop signal to JVM DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet STOP : NULL INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a packet STOP : INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Thread, Wrapper-Shutdown-Hook, handling the shutdown process. INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: calling listener.stop() INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: returned from listener.stop() -> 0 INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: shutdownJVM(0) Thread:Wrapper-Shutdown-Hook INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: wait for 0 shutdown locs to be released. INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Send a packet STOPPED : 0 DEBUG | wrapperp | 2009/03/17 11:38:43 | read a packet STOPPED : 0 DEBUG | wrapper | 2009/03/17 11:38:43 | JVM signalled that it was stopped. INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Closing socket. DEBUG | wrapperp | 2009/03/17 11:38:43 | socket read no code (closed?). DEBUG | wrapperp | 2009/03/17 11:38:43 | socket not open, so packet not sent SERVICE_CONTROL_CODE : 4 DEBUG | wrapper | 2009/03/17 11:38:43 | SERVICE_CONTROL_INTERROGATE INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: Server daemon shut down INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: ShutdownHook complete DEBUG | wrapper | 2009/03/17 11:38:44 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. DEBUG | wrapper | 2009/03/17 11:38:44 | JVM exited normally. STATUS | wrapper | 2009/03/17 11:38:44 | <-- Wrapper Stopped Very thanks by your help. Greetings!!. Leif Mortenson-3 wrote: > > Elias, >>From the java command line, it looks like you are making use of > Integration Method #3 for your application. > Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class > something that you created? It appears to be working pretty much > correctly. > The problem is that your WrapperListener.start implementation is > returning an exit code of 0. This is telling the Wrapper that the JVM > should exit with exit code 0. If the application is meant to continue > running then the WrapperListener.start method should be returning > null. > > See the Java docs for the WrapperListener class for more information: > http://wrapper.tanukisoftware.org/doc/english/javadocs.html > > This is also described on the following page: > http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html > > Cheers, > Leif > > On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> wrote: >> >> Hello Folks!, >> >> I'm trying to use Java Service Wrapper to implement my java project like >> windows service. My Project is made with Spring using Jetty. In other >> words, >> I use spring to startup jetty. This setup in eclipse work fine but I try >> to >> configure my application with Java Service Wrapper I get the next: >> >> DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for the >> service. >> DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. >> STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as Service >> STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper Community >> Edition 3.3.3 >> STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 >> Tanuki >> Software, Ltd. All Rights Reserved. >> STATUS | wrapper | 2009/03/17 09:40:35 | >> http://wrapper.tanukisoftware.org >> STATUS | wrapper | 2009/03/17 09:40:35 | >> DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. >> DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port 32000. >> DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: >> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >> wrapper.ping.timeout=30 >> STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... >> DEBUG | wrapper | 2009/03/17 09:40:35 | command: >> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> WrapperManager class initialized by thread: main Using classloader: >> sun.misc.Launcher$AppClassLoader@11b86e7 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: Initializing... >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM #1 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Running a >> 32-bit JVM. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> Registering >> shutdown hook >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using >> wrapper >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load >> native >> library. One or more attempts may fail if platform specific libraries do >> not exist. This is NORMAL and is only a problem if they all fail. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Unable >> to >> load native library: wrapper-windows-x86-32.dll Cause: no >> wrapper-windows-x86-32 in java.library.path >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Loaded >> native library: wrapper.dll >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Calling >> native initialization method. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Initializing >> WrapperManager native library. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java >> Executable: >> C:\WINNT\system32\java.exe >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows >> version: >> 5.0.2195 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java >> Version >> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java VM >> Vendor : Sun Microsystems Inc. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Name >> : Windows 2000 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Arch >> : x86 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >> args[]) called by thread: main >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Startup >> runner thread started. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Control >> event monitor thread started. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> Communications runner thread started. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open >> socket >> to wrapper...Wrapper-Connection >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Failed >> attempt to bind using local port 31000 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Opened >> Socket from 31001 to 32000 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >> packet KEY : fREO9IxlyMDSknzk >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) >> DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from >> 127.0.0.1 >> on port 31001 >> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : >> fREO9IxlyMDSknzk >> DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: >> fREO9IxlyMDSknzk >> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL : 1 >> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT : 30 >> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : >> (Property Values) >> DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. >> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >> a >> packet LOW_LOG_LEVEL : 1 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> LowLogLevel >> from Wrapper is 1 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >> a >> packet PING_TIMEOUT : 30 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> PingTimeout >> from Wrapper is 30000 >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >> a >> packet PROPERTIES : (Property Values) >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >> a >> packet START : start >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: calling >> WrapperListener.start() >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> WrapperListener.start runner thread started. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: returned >> from WrapperListener.start() >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> WrapperListener.start() returned an exit code of 0. >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >> WrapperManager.stop(0) called by thread: WrapperListener_start_runner >> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >> packet STOP : 0 >> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 >> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. (0) >> DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) called. >> DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM >> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL >> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Received >> a >> packet STOP : >> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Thread, >> WrapperListener_start_runner, handling the shutdown process. >> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >> shutdownJVM(0) Thread:WrapperListener_start_runner >> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait for >> 0 >> shutdown locs to be released. >> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send a >> packet STOPPED : 0 >> DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 >> DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was >> stopped. >> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Closing >> socket. >> DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code (closed?). >> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: calling >> System.exit(0) >> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Server >> daemon shut down >> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a code >> of >> 0, leaving the wrapper exit code set to 0. >> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. >> STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped >> >> This log say us something. >> >> Thanks in advance!!. > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22556425.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Leif M. <lei...@ta...> - 2009-03-17 11:41:07
|
Elias, Ok. Now the problem is that when your WrapperListener.start method returns, there are not any non-daemon threads running. Because of this, the JVM, not the Wrapper is initiating its own shutdown. The Wrapper's shutdown is initiated when its own Shutdown Hook is started by the JVM. Please make sure that you have started at least one non-daemon thread. Java will shutdown when run without the Wrapper as well if the main method completes and there are no non-daemon threads running. Let me know if this doesn't make sense. Cheers, Leif On Tue, Mar 17, 2009 at 7:42 PM, ejml <eli...@gm...> wrote: > > Thanks Leif by your response. > Yes, I'm making use of Method 3 and your had reason. I had my variable > initialized to 0. I have corrected this issue, but it doesn't works yet. My > log says this: > > DEBUG | wrapper | 2009/03/17 11:38:41 | Allocating a console for the > service. > DEBUG | wrapper | 2009/03/17 11:38:41 | Found console window. > STATUS | wrapper | 2009/03/17 11:38:41 | --> Wrapper Started as Service > STATUS | wrapper | 2009/03/17 11:38:41 | Java Service Wrapper Community > Edition 3.3.3 > STATUS | wrapper | 2009/03/17 11:38:41 | Copyright (C) 1999-2009 Tanuki > Software, Ltd. All Rights Reserved. > STATUS | wrapper | 2009/03/17 11:38:41 | > http://wrapper.tanukisoftware.org > STATUS | wrapper | 2009/03/17 11:38:41 | > DEBUG | wrapper | 2009/03/17 11:38:41 | Using tick timer. > DEBUG | wrapperp | 2009/03/17 11:38:41 | server listening on port 32000. > DEBUG | wrapper | 2009/03/17 11:38:41 | Ping settings: > wrapper.ping.interval=5, wrapper.ping.interval.logged=1, > wrapper.ping.timeout=30 > STATUS | wrapper | 2009/03/17 11:38:41 | Launching a JVM... > DEBUG | wrapper | 2009/03/17 11:38:41 | command: > "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" > -Dwrapper.key="YaKrFRBk8gEnOuzE" -Dwrapper.port=32000 > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > -Dwrapper.debug="TRUE" -Dwrapper.pid=3516 -Dwrapper.version="3.3.3" > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > com.gvs.AXConnectorServer.AXConnectorServiceWin32 > DEBUG | wrapper | 2009/03/17 11:38:41 | JVM started (PID=4892) > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > WrapperManager class initialized by thread: main Using classloader: > sun.misc.Launcher$AppClassLoader@11b86e7 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager: Initializing... > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: JVM #1 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Running a > 32-bit JVM. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Registering > shutdown hook > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Using > wrapper > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Load native > library. One or more attempts may fail if platform specific libraries do > not exist. This is NORMAL and is only a problem if they all fail. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Unable to > load native library: wrapper-windows-x86-32.dll Cause: no > wrapper-windows-x86-32 in java.library.path > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Loaded > native library: wrapper.dll > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Calling > native initialization method. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Initializing > WrapperManager native library. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Java Executable: > C:\WINNT\system32\java.exe > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Windows version: > 5.0.2195 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java Version > : 1.6.0_11-b03 Java HotSpot(TM) Client VM > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java VM > Vendor : Sun Microsystems Inc. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Name > : Windows 2000 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Arch > : x86 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Control > event monitor thread started. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, > args[]) called by thread: main > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup > runner thread started. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Communications runner thread started. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Open socket > to wrapper...Wrapper-Connection > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Opened > Socket from 31000 to 32000 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > packet KEY : YaKrFRBk8gEnOuzE > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) > DEBUG | wrapperp | 2009/03/17 11:38:42 | accepted a socket from 127.0.0.1 > on port 31000 > DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet KEY : > YaKrFRBk8gEnOuzE > DEBUG | wrapper | 2009/03/17 11:38:42 | Got key from JVM: YaKrFRBk8gEnOuzE > DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet LOW_LOG_LEVEL : 1 > DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PING_TIMEOUT : 30 > DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PROPERTIES : > (Property Values) > DEBUG | wrapper | 2009/03/17 11:38:42 | Start Application. > DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet START : start > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a > packet LOW_LOG_LEVEL : 1 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: LowLogLevel > from Wrapper is 1 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a > packet PING_TIMEOUT : 30 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: PingTimeout > from Wrapper is 30000 > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a > packet PROPERTIES : (Property Values) > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a > packet START : start > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: calling > WrapperListener.start() > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > WrapperListener.start runner thread started. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: returned > from WrapperListener.start() > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > packet STARTED : > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > WrapperListener.start runner thread stopped. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup > runner thread stopped. > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: ShutdownHook > started > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > packet STOP : 0 > DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STARTED : > DEBUG | wrapper | 2009/03/17 11:38:42 | JVM signalled that it was started. > DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STOP : 0 > DEBUG | wrapper | 2009/03/17 11:38:42 | JVM requested a shutdown. (0) > DEBUG | wrapper | 2009/03/17 11:38:42 | wrapperStopProcess(0) called. > DEBUG | wrapper | 2009/03/17 11:38:42 | Sending stop signal to JVM > DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet STOP : NULL > INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received a > packet STOP : > INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Thread, > Wrapper-Shutdown-Hook, handling the shutdown process. > INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: calling > listener.stop() > INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: returned > from listener.stop() -> 0 > INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: > shutdownJVM(0) Thread:Wrapper-Shutdown-Hook > INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: wait for 0 > shutdown locs to be released. > INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Send a > packet STOPPED : 0 > DEBUG | wrapperp | 2009/03/17 11:38:43 | read a packet STOPPED : 0 > DEBUG | wrapper | 2009/03/17 11:38:43 | JVM signalled that it was stopped. > INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Closing > socket. > DEBUG | wrapperp | 2009/03/17 11:38:43 | socket read no code (closed?). > DEBUG | wrapperp | 2009/03/17 11:38:43 | socket not open, so packet not > sent SERVICE_CONTROL_CODE : 4 > DEBUG | wrapper | 2009/03/17 11:38:43 | SERVICE_CONTROL_INTERROGATE > INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: Server > daemon shut down > INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: ShutdownHook > complete > DEBUG | wrapper | 2009/03/17 11:38:44 | JVM process exited with a code of > 0, leaving the wrapper exit code set to 0. > DEBUG | wrapper | 2009/03/17 11:38:44 | JVM exited normally. > STATUS | wrapper | 2009/03/17 11:38:44 | <-- Wrapper Stopped > > Very thanks by your help. > > Greetings!!. > > > > > > Leif Mortenson-3 wrote: >> >> Elias, >>>From the java command line, it looks like you are making use of >> Integration Method #3 for your application. >> Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class >> something that you created? It appears to be working pretty much >> correctly. >> The problem is that your WrapperListener.start implementation is >> returning an exit code of 0. This is telling the Wrapper that the JVM >> should exit with exit code 0. If the application is meant to continue >> running then the WrapperListener.start method should be returning >> null. >> >> See the Java docs for the WrapperListener class for more information: >> http://wrapper.tanukisoftware.org/doc/english/javadocs.html >> >> This is also described on the following page: >> http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html >> >> Cheers, >> Leif >> >> On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> wrote: >>> >>> Hello Folks!, >>> >>> I'm trying to use Java Service Wrapper to implement my java project like >>> windows service. My Project is made with Spring using Jetty. In other >>> words, >>> I use spring to startup jetty. This setup in eclipse work fine but I try >>> to >>> configure my application with Java Service Wrapper I get the next: >>> >>> DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for the >>> service. >>> DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. >>> STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as Service >>> STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper Community >>> Edition 3.3.3 >>> STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 >>> Tanuki >>> Software, Ltd. All Rights Reserved. >>> STATUS | wrapper | 2009/03/17 09:40:35 | >>> http://wrapper.tanukisoftware.org >>> STATUS | wrapper | 2009/03/17 09:40:35 | >>> DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port 32000. >>> DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: >>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >>> wrapper.ping.timeout=30 >>> STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... >>> DEBUG | wrapper | 2009/03/17 09:40:35 | command: >>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> WrapperManager class initialized by thread: main Using classloader: >>> sun.misc.Launcher$AppClassLoader@11b86e7 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: Initializing... >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM #1 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Running a >>> 32-bit JVM. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> Registering >>> shutdown hook >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using >>> wrapper >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load >>> native >>> library. One or more attempts may fail if platform specific libraries do >>> not exist. This is NORMAL and is only a problem if they all fail. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Unable >>> to >>> load native library: wrapper-windows-x86-32.dll Cause: no >>> wrapper-windows-x86-32 in java.library.path >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Loaded >>> native library: wrapper.dll >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Calling >>> native initialization method. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Initializing >>> WrapperManager native library. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java >>> Executable: >>> C:\WINNT\system32\java.exe >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows >>> version: >>> 5.0.2195 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java >>> Version >>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java VM >>> Vendor : Sun Microsystems Inc. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Name >>> : Windows 2000 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Arch >>> : x86 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >>> args[]) called by thread: main >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Startup >>> runner thread started. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Control >>> event monitor thread started. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> Communications runner thread started. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open >>> socket >>> to wrapper...Wrapper-Connection >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Failed >>> attempt to bind using local port 31000 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Opened >>> Socket from 31001 to 32000 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >>> packet KEY : fREO9IxlyMDSknzk >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from >>> 127.0.0.1 >>> on port 31001 >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : >>> fREO9IxlyMDSknzk >>> DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: >>> fREO9IxlyMDSknzk >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL : 1 >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT : 30 >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : >>> (Property Values) >>> DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >>> a >>> packet LOW_LOG_LEVEL : 1 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> LowLogLevel >>> from Wrapper is 1 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >>> a >>> packet PING_TIMEOUT : 30 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> PingTimeout >>> from Wrapper is 30000 >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >>> a >>> packet PROPERTIES : (Property Values) >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Received >>> a >>> packet START : start >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: calling >>> WrapperListener.start() >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> WrapperListener.start runner thread started. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: returned >>> from WrapperListener.start() >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> WrapperListener.start() returned an exit code of 0. >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>> WrapperManager.stop(0) called by thread: WrapperListener_start_runner >>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >>> packet STOP : 0 >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 >>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. (0) >>> DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) called. >>> DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM >>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL >>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Received >>> a >>> packet STOP : >>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Thread, >>> WrapperListener_start_runner, handling the shutdown process. >>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>> shutdownJVM(0) Thread:WrapperListener_start_runner >>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait for >>> 0 >>> shutdown locs to be released. >>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send a >>> packet STOPPED : 0 >>> DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 >>> DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was >>> stopped. >>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Closing >>> socket. >>> DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code (closed?). >>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: calling >>> System.exit(0) >>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Server >>> daemon shut down >>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a code >>> of >>> 0, leaving the wrapper exit code set to 0. >>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. >>> STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped >>> >>> This log say us something. >>> >>> Thanks in advance!!. |
|
From: ejml <eli...@gm...> - 2009-03-17 12:02:28
|
Hello again Leif, Sorry by my ignorance but How can I'm sure that there is at least one non-daemon thread?. Thanks. Leif Mortenson-3 wrote: > > Elias, > Ok. Now the problem is that when your WrapperListener.start method > returns, there are not any non-daemon threads running. Because of > this, the JVM, not the Wrapper is initiating its own shutdown. The > Wrapper's shutdown is initiated when its own Shutdown Hook is started > by the JVM. > > Please make sure that you have started at least one non-daemon thread. > > Java will shutdown when run without the Wrapper as well if the main > method completes and there are no non-daemon threads running. > > Let me know if this doesn't make sense. > > Cheers, > Leif > > On Tue, Mar 17, 2009 at 7:42 PM, ejml <eli...@gm...> wrote: >> >> Thanks Leif by your response. >> Yes, I'm making use of Method 3 and your had reason. I had my variable >> initialized to 0. I have corrected this issue, but it doesn't works yet. >> My >> log says this: >> >> DEBUG | wrapper | 2009/03/17 11:38:41 | Allocating a console for the >> service. >> DEBUG | wrapper | 2009/03/17 11:38:41 | Found console window. >> STATUS | wrapper | 2009/03/17 11:38:41 | --> Wrapper Started as Service >> STATUS | wrapper | 2009/03/17 11:38:41 | Java Service Wrapper Community >> Edition 3.3.3 >> STATUS | wrapper | 2009/03/17 11:38:41 | Copyright (C) 1999-2009 >> Tanuki >> Software, Ltd. All Rights Reserved. >> STATUS | wrapper | 2009/03/17 11:38:41 | >> http://wrapper.tanukisoftware.org >> STATUS | wrapper | 2009/03/17 11:38:41 | >> DEBUG | wrapper | 2009/03/17 11:38:41 | Using tick timer. >> DEBUG | wrapperp | 2009/03/17 11:38:41 | server listening on port 32000. >> DEBUG | wrapper | 2009/03/17 11:38:41 | Ping settings: >> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >> wrapper.ping.timeout=30 >> STATUS | wrapper | 2009/03/17 11:38:41 | Launching a JVM... >> DEBUG | wrapper | 2009/03/17 11:38:41 | command: >> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >> -Dwrapper.key="YaKrFRBk8gEnOuzE" -Dwrapper.port=32000 >> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >> -Dwrapper.debug="TRUE" -Dwrapper.pid=3516 -Dwrapper.version="3.3.3" >> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >> DEBUG | wrapper | 2009/03/17 11:38:41 | JVM started (PID=4892) >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> WrapperManager class initialized by thread: main Using classloader: >> sun.misc.Launcher$AppClassLoader@11b86e7 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager: Initializing... >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: JVM #1 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Running a >> 32-bit JVM. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> Registering >> shutdown hook >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Using >> wrapper >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Load >> native >> library. One or more attempts may fail if platform specific libraries do >> not exist. This is NORMAL and is only a problem if they all fail. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Unable >> to >> load native library: wrapper-windows-x86-32.dll Cause: no >> wrapper-windows-x86-32 in java.library.path >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Loaded >> native library: wrapper.dll >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Calling >> native initialization method. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Initializing >> WrapperManager native library. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Java >> Executable: >> C:\WINNT\system32\java.exe >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Windows >> version: >> 5.0.2195 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java >> Version >> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java VM >> Vendor : Sun Microsystems Inc. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Name >> : Windows 2000 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Arch >> : x86 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Control >> event monitor thread started. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >> args[]) called by thread: main >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup >> runner thread started. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> Communications runner thread started. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Open >> socket >> to wrapper...Wrapper-Connection >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Opened >> Socket from 31000 to 32000 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >> packet KEY : YaKrFRBk8gEnOuzE >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) >> DEBUG | wrapperp | 2009/03/17 11:38:42 | accepted a socket from >> 127.0.0.1 >> on port 31000 >> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet KEY : >> YaKrFRBk8gEnOuzE >> DEBUG | wrapper | 2009/03/17 11:38:42 | Got key from JVM: >> YaKrFRBk8gEnOuzE >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet LOW_LOG_LEVEL : 1 >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PING_TIMEOUT : 30 >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PROPERTIES : >> (Property Values) >> DEBUG | wrapper | 2009/03/17 11:38:42 | Start Application. >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet START : start >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >> a >> packet LOW_LOG_LEVEL : 1 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> LowLogLevel >> from Wrapper is 1 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >> a >> packet PING_TIMEOUT : 30 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> PingTimeout >> from Wrapper is 30000 >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >> a >> packet PROPERTIES : (Property Values) >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >> a >> packet START : start >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: calling >> WrapperListener.start() >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> WrapperListener.start runner thread started. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: returned >> from WrapperListener.start() >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >> packet STARTED : >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> WrapperListener.start runner thread stopped. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup >> runner thread stopped. >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> ShutdownHook >> started >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >> WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >> packet STOP : 0 >> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STARTED : >> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM signalled that it was >> started. >> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STOP : 0 >> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM requested a shutdown. (0) >> DEBUG | wrapper | 2009/03/17 11:38:42 | wrapperStopProcess(0) called. >> DEBUG | wrapper | 2009/03/17 11:38:42 | Sending stop signal to JVM >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet STOP : NULL >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >> a >> packet STOP : >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Thread, >> Wrapper-Shutdown-Hook, handling the shutdown process. >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: calling >> listener.stop() >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: returned >> from listener.stop() -> 0 >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: >> shutdownJVM(0) Thread:Wrapper-Shutdown-Hook >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: wait for >> 0 >> shutdown locs to be released. >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Send a >> packet STOPPED : 0 >> DEBUG | wrapperp | 2009/03/17 11:38:43 | read a packet STOPPED : 0 >> DEBUG | wrapper | 2009/03/17 11:38:43 | JVM signalled that it was >> stopped. >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Closing >> socket. >> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket read no code (closed?). >> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket not open, so packet not >> sent SERVICE_CONTROL_CODE : 4 >> DEBUG | wrapper | 2009/03/17 11:38:43 | SERVICE_CONTROL_INTERROGATE >> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: Server >> daemon shut down >> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: >> ShutdownHook >> complete >> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM process exited with a code >> of >> 0, leaving the wrapper exit code set to 0. >> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM exited normally. >> STATUS | wrapper | 2009/03/17 11:38:44 | <-- Wrapper Stopped >> >> Very thanks by your help. >> >> Greetings!!. >> >> >> >> >> >> Leif Mortenson-3 wrote: >>> >>> Elias, >>>>From the java command line, it looks like you are making use of >>> Integration Method #3 for your application. >>> Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class >>> something that you created? It appears to be working pretty much >>> correctly. >>> The problem is that your WrapperListener.start implementation is >>> returning an exit code of 0. This is telling the Wrapper that the JVM >>> should exit with exit code 0. If the application is meant to continue >>> running then the WrapperListener.start method should be returning >>> null. >>> >>> See the Java docs for the WrapperListener class for more information: >>> http://wrapper.tanukisoftware.org/doc/english/javadocs.html >>> >>> This is also described on the following page: >>> http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html >>> >>> Cheers, >>> Leif >>> >>> On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> wrote: >>>> >>>> Hello Folks!, >>>> >>>> I'm trying to use Java Service Wrapper to implement my java project >>>> like >>>> windows service. My Project is made with Spring using Jetty. In other >>>> words, >>>> I use spring to startup jetty. This setup in eclipse work fine but I >>>> try >>>> to >>>> configure my application with Java Service Wrapper I get the next: >>>> >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for the >>>> service. >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. >>>> STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as >>>> Service >>>> STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper >>>> Community >>>> Edition 3.3.3 >>>> STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 >>>> Tanuki >>>> Software, Ltd. All Rights Reserved. >>>> STATUS | wrapper | 2009/03/17 09:40:35 | >>>> http://wrapper.tanukisoftware.org >>>> STATUS | wrapper | 2009/03/17 09:40:35 | >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port >>>> 32000. >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: >>>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >>>> wrapper.ping.timeout=30 >>>> STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | command: >>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> WrapperManager class initialized by thread: main Using classloader: >>>> sun.misc.Launcher$AppClassLoader@11b86e7 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: >>>> Initializing... >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM #1 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Running >>>> a >>>> 32-bit JVM. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Registering >>>> shutdown hook >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using >>>> wrapper >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load >>>> native >>>> library. One or more attempts may fail if platform specific libraries >>>> do >>>> not exist. This is NORMAL and is only a problem if they all fail. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Unable >>>> to >>>> load native library: wrapper-windows-x86-32.dll Cause: no >>>> wrapper-windows-x86-32 in java.library.path >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Loaded >>>> native library: wrapper.dll >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Calling >>>> native initialization method. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: >>>> Initializing >>>> WrapperManager native library. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java >>>> Executable: >>>> C:\WINNT\system32\java.exe >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows >>>> version: >>>> 5.0.2195 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java >>>> Version >>>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java VM >>>> Vendor : Sun Microsystems Inc. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Name >>>> : Windows 2000 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Arch >>>> : x86 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >>>> args[]) called by thread: main >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Startup >>>> runner thread started. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Control >>>> event monitor thread started. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Communications runner thread started. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open >>>> socket >>>> to wrapper...Wrapper-Connection >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Failed >>>> attempt to bind using local port 31000 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Opened >>>> Socket from 31001 to 32000 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >>>> packet KEY : fREO9IxlyMDSknzk >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from >>>> 127.0.0.1 >>>> on port 31001 >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : >>>> fREO9IxlyMDSknzk >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: >>>> fREO9IxlyMDSknzk >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL : >>>> 1 >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT : >>>> 30 >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : >>>> (Property Values) >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Received >>>> a >>>> packet LOW_LOG_LEVEL : 1 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> LowLogLevel >>>> from Wrapper is 1 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Received >>>> a >>>> packet PING_TIMEOUT : 30 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> PingTimeout >>>> from Wrapper is 30000 >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Received >>>> a >>>> packet PROPERTIES : (Property Values) >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> Received >>>> a >>>> packet START : start >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: calling >>>> WrapperListener.start() >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> WrapperListener.start runner thread started. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> returned >>>> from WrapperListener.start() >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> WrapperListener.start() returned an exit code of 0. >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>> WrapperManager.stop(0) called by thread: WrapperListener_start_runner >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >>>> packet STOP : 0 >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. (0) >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) called. >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>>> Received >>>> a >>>> packet STOP : >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Thread, >>>> WrapperListener_start_runner, handling the shutdown process. >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>>> shutdownJVM(0) Thread:WrapperListener_start_runner >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait >>>> for >>>> 0 >>>> shutdown locs to be released. >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send a >>>> packet STOPPED : 0 >>>> DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 >>>> DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was >>>> stopped. >>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Closing >>>> socket. >>>> DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code >>>> (closed?). >>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: calling >>>> System.exit(0) >>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Server >>>> daemon shut down >>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a >>>> code >>>> of >>>> 0, leaving the wrapper exit code set to 0. >>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. >>>> STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped >>>> >>>> This log say us something. >>>> >>>> Thanks in advance!!. > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22557667.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Elías M. L. <eli...@gm...> - 2009-03-17 16:10:39
|
Thanks by all Leif, I have solved my issue. Greetings||. 2009/3/17 ejml <eli...@gm...> > > Hello again Leif, > > Sorry by my ignorance but How can I'm sure that there is at least one > non-daemon thread?. > > Thanks. > > > Leif Mortenson-3 wrote: > > > > Elias, > > Ok. Now the problem is that when your WrapperListener.start method > > returns, there are not any non-daemon threads running. Because of > > this, the JVM, not the Wrapper is initiating its own shutdown. The > > Wrapper's shutdown is initiated when its own Shutdown Hook is started > > by the JVM. > > > > Please make sure that you have started at least one non-daemon thread. > > > > Java will shutdown when run without the Wrapper as well if the main > > method completes and there are no non-daemon threads running. > > > > Let me know if this doesn't make sense. > > > > Cheers, > > Leif > > > > On Tue, Mar 17, 2009 at 7:42 PM, ejml <eli...@gm...> wrote: > >> > >> Thanks Leif by your response. > >> Yes, I'm making use of Method 3 and your had reason. I had my variable > >> initialized to 0. I have corrected this issue, but it doesn't works yet. > >> My > >> log says this: > >> > >> DEBUG | wrapper | 2009/03/17 11:38:41 | Allocating a console for the > >> service. > >> DEBUG | wrapper | 2009/03/17 11:38:41 | Found console window. > >> STATUS | wrapper | 2009/03/17 11:38:41 | --> Wrapper Started as Service > >> STATUS | wrapper | 2009/03/17 11:38:41 | Java Service Wrapper Community > >> Edition 3.3.3 > >> STATUS | wrapper | 2009/03/17 11:38:41 | Copyright (C) 1999-2009 > >> Tanuki > >> Software, Ltd. All Rights Reserved. > >> STATUS | wrapper | 2009/03/17 11:38:41 | > >> http://wrapper.tanukisoftware.org > >> STATUS | wrapper | 2009/03/17 11:38:41 | > >> DEBUG | wrapper | 2009/03/17 11:38:41 | Using tick timer. > >> DEBUG | wrapperp | 2009/03/17 11:38:41 | server listening on port > 32000. > >> DEBUG | wrapper | 2009/03/17 11:38:41 | Ping settings: > >> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, > >> wrapper.ping.timeout=30 > >> STATUS | wrapper | 2009/03/17 11:38:41 | Launching a JVM... > >> DEBUG | wrapper | 2009/03/17 11:38:41 | command: > >> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath > >> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" > >> -Dwrapper.key="YaKrFRBk8gEnOuzE" -Dwrapper.port=32000 > >> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > >> -Dwrapper.debug="TRUE" -Dwrapper.pid=3516 -Dwrapper.version="3.3.3" > >> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > >> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > >> com.gvs.AXConnectorServer.AXConnectorServiceWin32 > >> DEBUG | wrapper | 2009/03/17 11:38:41 | JVM started (PID=4892) > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> WrapperManager class initialized by thread: main Using classloader: > >> sun.misc.Launcher$AppClassLoader@11b86e7 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager: > Initializing... > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: JVM #1 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Running > a > >> 32-bit JVM. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> Registering > >> shutdown hook > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Using > >> wrapper > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Load > >> native > >> library. One or more attempts may fail if platform specific libraries > do > >> not exist. This is NORMAL and is only a problem if they all fail. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Unable > >> to > >> load native library: wrapper-windows-x86-32.dll Cause: no > >> wrapper-windows-x86-32 in java.library.path > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Loaded > >> native library: wrapper.dll > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Calling > >> native initialization method. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Initializing > >> WrapperManager native library. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Java > >> Executable: > >> C:\WINNT\system32\java.exe > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Windows > >> version: > >> 5.0.2195 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java > >> Version > >> : 1.6.0_11-b03 Java HotSpot(TM) Client VM > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java VM > >> Vendor : Sun Microsystems Inc. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Name > >> : Windows 2000 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Arch > >> : x86 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Control > >> event monitor thread started. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> > WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9 > , > >> args[]) called by thread: main > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup > >> runner thread started. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> Communications runner thread started. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Open > >> socket > >> to wrapper...Wrapper-Connection > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Opened > >> Socket from 31000 to 32000 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > >> packet KEY : YaKrFRBk8gEnOuzE > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | accepted a socket from > >> 127.0.0.1 > >> on port 31000 > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet KEY : > >> YaKrFRBk8gEnOuzE > >> DEBUG | wrapper | 2009/03/17 11:38:42 | Got key from JVM: > >> YaKrFRBk8gEnOuzE > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet LOW_LOG_LEVEL : > 1 > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PING_TIMEOUT : > 30 > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PROPERTIES : > >> (Property Values) > >> DEBUG | wrapper | 2009/03/17 11:38:42 | Start Application. > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet START : start > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received > >> a > >> packet LOW_LOG_LEVEL : 1 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> LowLogLevel > >> from Wrapper is 1 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received > >> a > >> packet PING_TIMEOUT : 30 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> PingTimeout > >> from Wrapper is 30000 > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received > >> a > >> packet PROPERTIES : (Property Values) > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received > >> a > >> packet START : start > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: calling > >> WrapperListener.start() > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> WrapperListener.start runner thread started. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: returned > >> from WrapperListener.start() > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > >> packet STARTED : > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> WrapperListener.start runner thread stopped. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup > >> runner thread stopped. > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> ShutdownHook > >> started > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >> WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > >> packet STOP : 0 > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STARTED : > >> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM signalled that it was > >> started. > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STOP : 0 > >> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM requested a shutdown. (0) > >> DEBUG | wrapper | 2009/03/17 11:38:42 | wrapperStopProcess(0) called. > >> DEBUG | wrapper | 2009/03/17 11:38:42 | Sending stop signal to JVM > >> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet STOP : NULL > >> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received > >> a > >> packet STOP : > >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Thread, > >> Wrapper-Shutdown-Hook, handling the shutdown process. > >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: calling > >> listener.stop() > >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: returned > >> from listener.stop() -> 0 > >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: > >> shutdownJVM(0) Thread:Wrapper-Shutdown-Hook > >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: wait for > >> 0 > >> shutdown locs to be released. > >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Send a > >> packet STOPPED : 0 > >> DEBUG | wrapperp | 2009/03/17 11:38:43 | read a packet STOPPED : 0 > >> DEBUG | wrapper | 2009/03/17 11:38:43 | JVM signalled that it was > >> stopped. > >> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Closing > >> socket. > >> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket read no code (closed?). > >> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket not open, so packet not > >> sent SERVICE_CONTROL_CODE : 4 > >> DEBUG | wrapper | 2009/03/17 11:38:43 | SERVICE_CONTROL_INTERROGATE > >> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: Server > >> daemon shut down > >> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: > >> ShutdownHook > >> complete > >> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM process exited with a code > >> of > >> 0, leaving the wrapper exit code set to 0. > >> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM exited normally. > >> STATUS | wrapper | 2009/03/17 11:38:44 | <-- Wrapper Stopped > >> > >> Very thanks by your help. > >> > >> Greetings!!. > >> > >> > >> > >> > >> > >> Leif Mortenson-3 wrote: > >>> > >>> Elias, > >>>>From the java command line, it looks like you are making use of > >>> Integration Method #3 for your application. > >>> Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class > >>> something that you created? It appears to be working pretty much > >>> correctly. > >>> The problem is that your WrapperListener.start implementation is > >>> returning an exit code of 0. This is telling the Wrapper that the JVM > >>> should exit with exit code 0. If the application is meant to continue > >>> running then the WrapperListener.start method should be returning > >>> null. > >>> > >>> See the Java docs for the WrapperListener class for more information: > >>> http://wrapper.tanukisoftware.org/doc/english/javadocs.html > >>> > >>> This is also described on the following page: > >>> http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html > >>> > >>> Cheers, > >>> Leif > >>> > >>> On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> wrote: > >>>> > >>>> Hello Folks!, > >>>> > >>>> I'm trying to use Java Service Wrapper to implement my java project > >>>> like > >>>> windows service. My Project is made with Spring using Jetty. In other > >>>> words, > >>>> I use spring to startup jetty. This setup in eclipse work fine but I > >>>> try > >>>> to > >>>> configure my application with Java Service Wrapper I get the next: > >>>> > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for the > >>>> service. > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. > >>>> STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as > >>>> Service > >>>> STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper > >>>> Community > >>>> Edition 3.3.3 > >>>> STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 > >>>> Tanuki > >>>> Software, Ltd. All Rights Reserved. > >>>> STATUS | wrapper | 2009/03/17 09:40:35 | > >>>> http://wrapper.tanukisoftware.org > >>>> STATUS | wrapper | 2009/03/17 09:40:35 | > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port > >>>> 32000. > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: > >>>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, > >>>> wrapper.ping.timeout=30 > >>>> STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | command: > >>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath > >>>> > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" > >>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 > >>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > >>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" > >>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > >>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > >>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> WrapperManager class initialized by thread: main Using classloader: > >>>> sun.misc.Launcher$AppClassLoader@11b86e7 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: > >>>> Initializing... > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM #1 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Running > >>>> a > >>>> 32-bit JVM. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Registering > >>>> shutdown hook > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using > >>>> wrapper > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load > >>>> native > >>>> library. One or more attempts may fail if platform specific libraries > >>>> do > >>>> not exist. This is NORMAL and is only a problem if they all fail. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Unable > >>>> to > >>>> load native library: wrapper-windows-x86-32.dll Cause: no > >>>> wrapper-windows-x86-32 in java.library.path > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Loaded > >>>> native library: wrapper.dll > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Calling > >>>> native initialization method. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: > >>>> Initializing > >>>> WrapperManager native library. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java > >>>> Executable: > >>>> C:\WINNT\system32\java.exe > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows > >>>> version: > >>>> 5.0.2195 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java > >>>> Version > >>>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java > VM > >>>> Vendor : Sun Microsystems Inc. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS > Name > >>>> : Windows 2000 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS > Arch > >>>> : x86 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> > WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9 > , > >>>> args[]) called by thread: main > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Startup > >>>> runner thread started. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Control > >>>> event monitor thread started. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Communications runner thread started. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open > >>>> socket > >>>> to wrapper...Wrapper-Connection > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Failed > >>>> attempt to bind using local port 31000 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Opened > >>>> Socket from 31001 to 32000 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a > >>>> packet KEY : fREO9IxlyMDSknzk > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from > >>>> 127.0.0.1 > >>>> on port 31001 > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : > >>>> fREO9IxlyMDSknzk > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: > >>>> fREO9IxlyMDSknzk > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL > : > >>>> 1 > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT : > >>>> 30 > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : > >>>> (Property Values) > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Received > >>>> a > >>>> packet LOW_LOG_LEVEL : 1 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> LowLogLevel > >>>> from Wrapper is 1 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Received > >>>> a > >>>> packet PING_TIMEOUT : 30 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> PingTimeout > >>>> from Wrapper is 30000 > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Received > >>>> a > >>>> packet PROPERTIES : (Property Values) > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> Received > >>>> a > >>>> packet START : start > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > calling > >>>> WrapperListener.start() > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> WrapperListener.start runner thread started. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> returned > >>>> from WrapperListener.start() > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> WrapperListener.start() returned an exit code of 0. > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>> WrapperManager.stop(0) called by thread: WrapperListener_start_runner > >>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a > >>>> packet STOP : 0 > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. > (0) > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) > called. > >>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM > >>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL > >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: > >>>> Received > >>>> a > >>>> packet STOP : > >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: > Thread, > >>>> WrapperListener_start_runner, handling the shutdown process. > >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: > >>>> shutdownJVM(0) Thread:WrapperListener_start_runner > >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait > >>>> for > >>>> 0 > >>>> shutdown locs to be released. > >>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send a > >>>> packet STOPPED : 0 > >>>> DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 > >>>> DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was > >>>> stopped. > >>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: > Closing > >>>> socket. > >>>> DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code > >>>> (closed?). > >>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: > calling > >>>> System.exit(0) > >>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Server > >>>> daemon shut down > >>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a > >>>> code > >>>> of > >>>> 0, leaving the wrapper exit code set to 0. > >>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. > >>>> STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped > >>>> > >>>> This log say us something. > >>>> > >>>> Thanks in advance!!. > > > > > ------------------------------------------------------------------------------ > > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > > easily build your RIAs with Flex Builder, the Eclipse(TM)based > development > > software that enables intelligent coding and step-through debugging. > > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > > _______________________________________________ > > Wrapper-user mailing list > > Wra...@li... > > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > > > > > -- > View this message in context: > http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22557667.html > Sent from the Java Service Wrapper mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <lei...@ta...> - 2009-03-18 08:32:04
|
Elias, What does the content of your WrapperListener.start method look like? If you create a new thread, it will be non-daemon unless you specifically call the thread.setDaemon(true) method. If you are using existing class to start your application then it will be more difficult to check. One solution is to add a wait for 1 second at the end of your start method then call WrapperManager.requestThreadDump(). That will let you see all of your threads as well as see easily which have their daemon flag set. Cheers, Leif On Tue, Mar 17, 2009 at 9:02 PM, ejml <eli...@gm...> wrote: > > Hello again Leif, > > Sorry by my ignorance but How can I'm sure that there is at least one > non-daemon thread?. > > Thanks. > > > Leif Mortenson-3 wrote: >> >> Elias, >> Ok. Now the problem is that when your WrapperListener.start method >> returns, there are not any non-daemon threads running. Because of >> this, the JVM, not the Wrapper is initiating its own shutdown. The >> Wrapper's shutdown is initiated when its own Shutdown Hook is started >> by the JVM. >> >> Please make sure that you have started at least one non-daemon thread. >> >> Java will shutdown when run without the Wrapper as well if the main >> method completes and there are no non-daemon threads running. >> >> Let me know if this doesn't make sense. >> >> Cheers, >> Leif >> >> On Tue, Mar 17, 2009 at 7:42 PM, ejml <eli...@gm...> wrote: >>> >>> Thanks Leif by your response. >>> Yes, I'm making use of Method 3 and your had reason. I had my variable >>> initialized to 0. I have corrected this issue, but it doesn't works yet. >>> My >>> log says this: >>> >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Allocating a console for the >>> service. >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Found console window. >>> STATUS | wrapper | 2009/03/17 11:38:41 | --> Wrapper Started as Service >>> STATUS | wrapper | 2009/03/17 11:38:41 | Java Service Wrapper Community >>> Edition 3.3.3 >>> STATUS | wrapper | 2009/03/17 11:38:41 | Copyright (C) 1999-2009 >>> Tanuki >>> Software, Ltd. All Rights Reserved. >>> STATUS | wrapper | 2009/03/17 11:38:41 | >>> http://wrapper.tanukisoftware.org >>> STATUS | wrapper | 2009/03/17 11:38:41 | >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Using tick timer. >>> DEBUG | wrapperp | 2009/03/17 11:38:41 | server listening on port 32000. >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Ping settings: >>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >>> wrapper.ping.timeout=30 >>> STATUS | wrapper | 2009/03/17 11:38:41 | Launching a JVM... >>> DEBUG | wrapper | 2009/03/17 11:38:41 | command: >>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>> -Dwrapper.key="YaKrFRBk8gEnOuzE" -Dwrapper.port=32000 >>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>> -Dwrapper.debug="TRUE" -Dwrapper.pid=3516 -Dwrapper.version="3.3.3" >>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>> DEBUG | wrapper | 2009/03/17 11:38:41 | JVM started (PID=4892) >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> WrapperManager class initialized by thread: main Using classloader: >>> sun.misc.Launcher$AppClassLoader@11b86e7 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager: Initializing... >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: JVM #1 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Running a >>> 32-bit JVM. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> Registering >>> shutdown hook >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Using >>> wrapper >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Load >>> native >>> library. One or more attempts may fail if platform specific libraries do >>> not exist. This is NORMAL and is only a problem if they all fail. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Unable >>> to >>> load native library: wrapper-windows-x86-32.dll Cause: no >>> wrapper-windows-x86-32 in java.library.path >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Loaded >>> native library: wrapper.dll >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Calling >>> native initialization method. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Initializing >>> WrapperManager native library. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Java >>> Executable: >>> C:\WINNT\system32\java.exe >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Windows >>> version: >>> 5.0.2195 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java >>> Version >>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java VM >>> Vendor : Sun Microsystems Inc. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Name >>> : Windows 2000 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Arch >>> : x86 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Control >>> event monitor thread started. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >>> args[]) called by thread: main >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup >>> runner thread started. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> Communications runner thread started. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Open >>> socket >>> to wrapper...Wrapper-Connection >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Opened >>> Socket from 31000 to 32000 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >>> packet KEY : YaKrFRBk8gEnOuzE >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | accepted a socket from >>> 127.0.0.1 >>> on port 31000 >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet KEY : >>> YaKrFRBk8gEnOuzE >>> DEBUG | wrapper | 2009/03/17 11:38:42 | Got key from JVM: >>> YaKrFRBk8gEnOuzE >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet LOW_LOG_LEVEL : 1 >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PING_TIMEOUT : 30 >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PROPERTIES : >>> (Property Values) >>> DEBUG | wrapper | 2009/03/17 11:38:42 | Start Application. >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet START : start >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >>> a >>> packet LOW_LOG_LEVEL : 1 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> LowLogLevel >>> from Wrapper is 1 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >>> a >>> packet PING_TIMEOUT : 30 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> PingTimeout >>> from Wrapper is 30000 >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >>> a >>> packet PROPERTIES : (Property Values) >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >>> a >>> packet START : start >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: calling >>> WrapperListener.start() >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> WrapperListener.start runner thread started. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: returned >>> from WrapperListener.start() >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >>> packet STARTED : >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> WrapperListener.start runner thread stopped. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup >>> runner thread stopped. >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> ShutdownHook >>> started >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>> WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >>> packet STOP : 0 >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STARTED : >>> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM signalled that it was >>> started. >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STOP : 0 >>> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM requested a shutdown. (0) >>> DEBUG | wrapper | 2009/03/17 11:38:42 | wrapperStopProcess(0) called. >>> DEBUG | wrapper | 2009/03/17 11:38:42 | Sending stop signal to JVM >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet STOP : NULL >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Received >>> a >>> packet STOP : >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Thread, >>> Wrapper-Shutdown-Hook, handling the shutdown process. >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: calling >>> listener.stop() >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: returned >>> from listener.stop() -> 0 >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: >>> shutdownJVM(0) Thread:Wrapper-Shutdown-Hook >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: wait for >>> 0 >>> shutdown locs to be released. >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Send a >>> packet STOPPED : 0 >>> DEBUG | wrapperp | 2009/03/17 11:38:43 | read a packet STOPPED : 0 >>> DEBUG | wrapper | 2009/03/17 11:38:43 | JVM signalled that it was >>> stopped. >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Closing >>> socket. >>> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket read no code (closed?). >>> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket not open, so packet not >>> sent SERVICE_CONTROL_CODE : 4 >>> DEBUG | wrapper | 2009/03/17 11:38:43 | SERVICE_CONTROL_INTERROGATE >>> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: Server >>> daemon shut down >>> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: >>> ShutdownHook >>> complete >>> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM process exited with a code >>> of >>> 0, leaving the wrapper exit code set to 0. >>> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM exited normally. >>> STATUS | wrapper | 2009/03/17 11:38:44 | <-- Wrapper Stopped >>> >>> Very thanks by your help. >>> >>> Greetings!!. >>> >>> >>> >>> >>> >>> Leif Mortenson-3 wrote: >>>> >>>> Elias, >>>>>From the java command line, it looks like you are making use of >>>> Integration Method #3 for your application. >>>> Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class >>>> something that you created? It appears to be working pretty much >>>> correctly. >>>> The problem is that your WrapperListener.start implementation is >>>> returning an exit code of 0. This is telling the Wrapper that the JVM >>>> should exit with exit code 0. If the application is meant to continue >>>> running then the WrapperListener.start method should be returning >>>> null. >>>> >>>> See the Java docs for the WrapperListener class for more information: >>>> http://wrapper.tanukisoftware.org/doc/english/javadocs.html >>>> >>>> This is also described on the following page: >>>> http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html >>>> >>>> Cheers, >>>> Leif >>>> >>>> On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> wrote: >>>>> >>>>> Hello Folks!, >>>>> >>>>> I'm trying to use Java Service Wrapper to implement my java project >>>>> like >>>>> windows service. My Project is made with Spring using Jetty. In other >>>>> words, >>>>> I use spring to startup jetty. This setup in eclipse work fine but I >>>>> try >>>>> to >>>>> configure my application with Java Service Wrapper I get the next: >>>>> >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for the >>>>> service. >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as >>>>> Service >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper >>>>> Community >>>>> Edition 3.3.3 >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 >>>>> Tanuki >>>>> Software, Ltd. All Rights Reserved. >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | >>>>> http://wrapper.tanukisoftware.org >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port >>>>> 32000. >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: >>>>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >>>>> wrapper.ping.timeout=30 >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | command: >>>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> WrapperManager class initialized by thread: main Using classloader: >>>>> sun.misc.Launcher$AppClassLoader@11b86e7 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: >>>>> Initializing... >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM #1 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Running >>>>> a >>>>> 32-bit JVM. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Registering >>>>> shutdown hook >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using >>>>> wrapper >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load >>>>> native >>>>> library. One or more attempts may fail if platform specific libraries >>>>> do >>>>> not exist. This is NORMAL and is only a problem if they all fail. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Unable >>>>> to >>>>> load native library: wrapper-windows-x86-32.dll Cause: no >>>>> wrapper-windows-x86-32 in java.library.path >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Loaded >>>>> native library: wrapper.dll >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Calling >>>>> native initialization method. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: >>>>> Initializing >>>>> WrapperManager native library. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java >>>>> Executable: >>>>> C:\WINNT\system32\java.exe >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows >>>>> version: >>>>> 5.0.2195 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java >>>>> Version >>>>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java VM >>>>> Vendor : Sun Microsystems Inc. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Name >>>>> : Windows 2000 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS Arch >>>>> : x86 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >>>>> args[]) called by thread: main >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Startup >>>>> runner thread started. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Control >>>>> event monitor thread started. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Communications runner thread started. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open >>>>> socket >>>>> to wrapper...Wrapper-Connection >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Failed >>>>> attempt to bind using local port 31000 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Opened >>>>> Socket from 31001 to 32000 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >>>>> packet KEY : fREO9IxlyMDSknzk >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from >>>>> 127.0.0.1 >>>>> on port 31001 >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : >>>>> fREO9IxlyMDSknzk >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: >>>>> fREO9IxlyMDSknzk >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL : >>>>> 1 >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT : >>>>> 30 >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : >>>>> (Property Values) >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Received >>>>> a >>>>> packet LOW_LOG_LEVEL : 1 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> LowLogLevel >>>>> from Wrapper is 1 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Received >>>>> a >>>>> packet PING_TIMEOUT : 30 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> PingTimeout >>>>> from Wrapper is 30000 >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Received >>>>> a >>>>> packet PROPERTIES : (Property Values) >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> Received >>>>> a >>>>> packet START : start >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: calling >>>>> WrapperListener.start() >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> WrapperListener.start runner thread started. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> returned >>>>> from WrapperListener.start() >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> WrapperListener.start() returned an exit code of 0. >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>> WrapperManager.stop(0) called by thread: WrapperListener_start_runner >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send a >>>>> packet STOP : 0 >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. (0) >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) called. >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>>>> Received >>>>> a >>>>> packet STOP : >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Thread, >>>>> WrapperListener_start_runner, handling the shutdown process. >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>>>> shutdownJVM(0) Thread:WrapperListener_start_runner >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait >>>>> for >>>>> 0 >>>>> shutdown locs to be released. >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send a >>>>> packet STOPPED : 0 >>>>> DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 >>>>> DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was >>>>> stopped. >>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Closing >>>>> socket. >>>>> DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code >>>>> (closed?). >>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: calling >>>>> System.exit(0) >>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: Server >>>>> daemon shut down >>>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a >>>>> code >>>>> of >>>>> 0, leaving the wrapper exit code set to 0. >>>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. >>>>> STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped >>>>> >>>>> This log say us something. >>>>> >>>>> Thanks in advance!!. |
|
From: ejml <eli...@gm...> - 2009-03-20 09:48:59
|
Hi Leif, The problem was the creation of instance of the class wrap by WrapperListener. Now I haven't problem with the start of Service. But it's not work yet. I think that the problem is very difficult of resolve. Although my level of English not is very good, I will try to explain the better possible for if you can help me. My application is made with Spring Framework. This application use Jetty embedded to publish it through 8080 port and use the remote feature of Spring to the web server can do request to it. This application is communicated with my ERP throught COM+ and translate the request of web server to my ERP using JACOB (http://sourceforge.net/projects/jacob-project/). When I use Java Service Wrapper, I can see that I have problems with the Initialization of COM Object, and I get NullPointer to object instantiated with JACOB. I thought that problem was by permission on the COM of Microsoft, but I checked this issue and there isn't problems. As well as, If I run my application throught command line, with the same command that Java Service Wrapper and using the same jar packet, the curious is that it works fine. I don't know to think, I don't know if it is problem of COM+ or If it is problem of Java Service Wrapper?. Could you give me some indication?. Thanks again!!. Leif Mortenson-3 wrote: > > Elias, > What does the content of your WrapperListener.start method look like? > > If you create a new thread, it will be non-daemon unless you > specifically call the thread.setDaemon(true) method. If you are using > existing class to start your application then it will be more > difficult to check. One solution is to add a wait for 1 second at > the end of your start method then call > WrapperManager.requestThreadDump(). That will let you see all of your > threads as well as see easily which have their daemon flag set. > > Cheers, > Leif > > On Tue, Mar 17, 2009 at 9:02 PM, ejml <eli...@gm...> wrote: >> >> Hello again Leif, >> >> Sorry by my ignorance but How can I'm sure that there is at least one >> non-daemon thread?. >> >> Thanks. >> >> >> Leif Mortenson-3 wrote: >>> >>> Elias, >>> Ok. Now the problem is that when your WrapperListener.start method >>> returns, there are not any non-daemon threads running. Because of >>> this, the JVM, not the Wrapper is initiating its own shutdown. The >>> Wrapper's shutdown is initiated when its own Shutdown Hook is started >>> by the JVM. >>> >>> Please make sure that you have started at least one non-daemon thread. >>> >>> Java will shutdown when run without the Wrapper as well if the main >>> method completes and there are no non-daemon threads running. >>> >>> Let me know if this doesn't make sense. >>> >>> Cheers, >>> Leif >>> >>> On Tue, Mar 17, 2009 at 7:42 PM, ejml <eli...@gm...> wrote: >>>> >>>> Thanks Leif by your response. >>>> Yes, I'm making use of Method 3 and your had reason. I had my variable >>>> initialized to 0. I have corrected this issue, but it doesn't works >>>> yet. >>>> My >>>> log says this: >>>> >>>> DEBUG | wrapper | 2009/03/17 11:38:41 | Allocating a console for the >>>> service. >>>> DEBUG | wrapper | 2009/03/17 11:38:41 | Found console window. >>>> STATUS | wrapper | 2009/03/17 11:38:41 | --> Wrapper Started as >>>> Service >>>> STATUS | wrapper | 2009/03/17 11:38:41 | Java Service Wrapper >>>> Community >>>> Edition 3.3.3 >>>> STATUS | wrapper | 2009/03/17 11:38:41 | Copyright (C) 1999-2009 >>>> Tanuki >>>> Software, Ltd. All Rights Reserved. >>>> STATUS | wrapper | 2009/03/17 11:38:41 | >>>> http://wrapper.tanukisoftware.org >>>> STATUS | wrapper | 2009/03/17 11:38:41 | >>>> DEBUG | wrapper | 2009/03/17 11:38:41 | Using tick timer. >>>> DEBUG | wrapperp | 2009/03/17 11:38:41 | server listening on port >>>> 32000. >>>> DEBUG | wrapper | 2009/03/17 11:38:41 | Ping settings: >>>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >>>> wrapper.ping.timeout=30 >>>> STATUS | wrapper | 2009/03/17 11:38:41 | Launching a JVM... >>>> DEBUG | wrapper | 2009/03/17 11:38:41 | command: >>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>>> -Dwrapper.key="YaKrFRBk8gEnOuzE" -Dwrapper.port=32000 >>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=3516 -Dwrapper.version="3.3.3" >>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>> DEBUG | wrapper | 2009/03/17 11:38:41 | JVM started (PID=4892) >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> WrapperManager class initialized by thread: main Using classloader: >>>> sun.misc.Launcher$AppClassLoader@11b86e7 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager: >>>> Initializing... >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: JVM #1 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Running >>>> a >>>> 32-bit JVM. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Registering >>>> shutdown hook >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Using >>>> wrapper >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Load >>>> native >>>> library. One or more attempts may fail if platform specific libraries >>>> do >>>> not exist. This is NORMAL and is only a problem if they all fail. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Unable >>>> to >>>> load native library: wrapper-windows-x86-32.dll Cause: no >>>> wrapper-windows-x86-32 in java.library.path >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Loaded >>>> native library: wrapper.dll >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Calling >>>> native initialization method. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: >>>> Initializing >>>> WrapperManager native library. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Java >>>> Executable: >>>> C:\WINNT\system32\java.exe >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Windows >>>> version: >>>> 5.0.2195 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java >>>> Version >>>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java VM >>>> Vendor : Sun Microsystems Inc. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Name >>>> : Windows 2000 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Arch >>>> : x86 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Control >>>> event monitor thread started. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >>>> args[]) called by thread: main >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup >>>> runner thread started. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Communications runner thread started. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Open >>>> socket >>>> to wrapper...Wrapper-Connection >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Opened >>>> Socket from 31000 to 32000 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >>>> packet KEY : YaKrFRBk8gEnOuzE >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | accepted a socket from >>>> 127.0.0.1 >>>> on port 31000 >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet KEY : >>>> YaKrFRBk8gEnOuzE >>>> DEBUG | wrapper | 2009/03/17 11:38:42 | Got key from JVM: >>>> YaKrFRBk8gEnOuzE >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet LOW_LOG_LEVEL : >>>> 1 >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PING_TIMEOUT : >>>> 30 >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PROPERTIES : >>>> (Property Values) >>>> DEBUG | wrapper | 2009/03/17 11:38:42 | Start Application. >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet START : start >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Received >>>> a >>>> packet LOW_LOG_LEVEL : 1 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> LowLogLevel >>>> from Wrapper is 1 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Received >>>> a >>>> packet PING_TIMEOUT : 30 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> PingTimeout >>>> from Wrapper is 30000 >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Received >>>> a >>>> packet PROPERTIES : (Property Values) >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Received >>>> a >>>> packet START : start >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: calling >>>> WrapperListener.start() >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> WrapperListener.start runner thread started. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> returned >>>> from WrapperListener.start() >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >>>> packet STARTED : >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> WrapperListener.start runner thread stopped. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup >>>> runner thread stopped. >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> ShutdownHook >>>> started >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a >>>> packet STOP : 0 >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STARTED : >>>> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM signalled that it was >>>> started. >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STOP : 0 >>>> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM requested a shutdown. (0) >>>> DEBUG | wrapper | 2009/03/17 11:38:42 | wrapperStopProcess(0) called. >>>> DEBUG | wrapper | 2009/03/17 11:38:42 | Sending stop signal to JVM >>>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet STOP : NULL >>>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: >>>> Received >>>> a >>>> packet STOP : >>>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Thread, >>>> Wrapper-Shutdown-Hook, handling the shutdown process. >>>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: calling >>>> listener.stop() >>>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: >>>> returned >>>> from listener.stop() -> 0 >>>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: >>>> shutdownJVM(0) Thread:Wrapper-Shutdown-Hook >>>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: wait >>>> for >>>> 0 >>>> shutdown locs to be released. >>>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Send a >>>> packet STOPPED : 0 >>>> DEBUG | wrapperp | 2009/03/17 11:38:43 | read a packet STOPPED : 0 >>>> DEBUG | wrapper | 2009/03/17 11:38:43 | JVM signalled that it was >>>> stopped. >>>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Closing >>>> socket. >>>> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket read no code >>>> (closed?). >>>> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket not open, so packet >>>> not >>>> sent SERVICE_CONTROL_CODE : 4 >>>> DEBUG | wrapper | 2009/03/17 11:38:43 | SERVICE_CONTROL_INTERROGATE >>>> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: Server >>>> daemon shut down >>>> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: >>>> ShutdownHook >>>> complete >>>> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM process exited with a >>>> code >>>> of >>>> 0, leaving the wrapper exit code set to 0. >>>> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM exited normally. >>>> STATUS | wrapper | 2009/03/17 11:38:44 | <-- Wrapper Stopped >>>> >>>> Very thanks by your help. >>>> >>>> Greetings!!. >>>> >>>> >>>> >>>> >>>> >>>> Leif Mortenson-3 wrote: >>>>> >>>>> Elias, >>>>>>From the java command line, it looks like you are making use of >>>>> Integration Method #3 for your application. >>>>> Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class >>>>> something that you created? It appears to be working pretty much >>>>> correctly. >>>>> The problem is that your WrapperListener.start implementation is >>>>> returning an exit code of 0. This is telling the Wrapper that the JVM >>>>> should exit with exit code 0. If the application is meant to continue >>>>> running then the WrapperListener.start method should be returning >>>>> null. >>>>> >>>>> See the Java docs for the WrapperListener class for more information: >>>>> http://wrapper.tanukisoftware.org/doc/english/javadocs.html >>>>> >>>>> This is also described on the following page: >>>>> http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html >>>>> >>>>> Cheers, >>>>> Leif >>>>> >>>>> On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> wrote: >>>>>> >>>>>> Hello Folks!, >>>>>> >>>>>> I'm trying to use Java Service Wrapper to implement my java project >>>>>> like >>>>>> windows service. My Project is made with Spring using Jetty. In other >>>>>> words, >>>>>> I use spring to startup jetty. This setup in eclipse work fine but I >>>>>> try >>>>>> to >>>>>> configure my application with Java Service Wrapper I get the next: >>>>>> >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for >>>>>> the >>>>>> service. >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. >>>>>> STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as >>>>>> Service >>>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper >>>>>> Community >>>>>> Edition 3.3.3 >>>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 >>>>>> Tanuki >>>>>> Software, Ltd. All Rights Reserved. >>>>>> STATUS | wrapper | 2009/03/17 09:40:35 | >>>>>> http://wrapper.tanukisoftware.org >>>>>> STATUS | wrapper | 2009/03/17 09:40:35 | >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port >>>>>> 32000. >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: >>>>>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, >>>>>> wrapper.ping.timeout=30 >>>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | command: >>>>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>>>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>>>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>>>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>>>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>>>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> WrapperManager class initialized by thread: main Using classloader: >>>>>> sun.misc.Launcher$AppClassLoader@11b86e7 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: >>>>>> Initializing... >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM >>>>>> #1 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Running >>>>>> a >>>>>> 32-bit JVM. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Registering >>>>>> shutdown hook >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using >>>>>> wrapper >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load >>>>>> native >>>>>> library. One or more attempts may fail if platform specific >>>>>> libraries >>>>>> do >>>>>> not exist. This is NORMAL and is only a problem if they all fail. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Unable >>>>>> to >>>>>> load native library: wrapper-windows-x86-32.dll Cause: no >>>>>> wrapper-windows-x86-32 in java.library.path >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Loaded >>>>>> native library: wrapper.dll >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Calling >>>>>> native initialization method. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: >>>>>> Initializing >>>>>> WrapperManager native library. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java >>>>>> Executable: >>>>>> C:\WINNT\system32\java.exe >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows >>>>>> version: >>>>>> 5.0.2195 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java >>>>>> Version >>>>>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java >>>>>> VM >>>>>> Vendor : Sun Microsystems Inc. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS >>>>>> Name >>>>>> : Windows 2000 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS >>>>>> Arch >>>>>> : x86 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9, >>>>>> args[]) called by thread: main >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Startup >>>>>> runner thread started. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Control >>>>>> event monitor thread started. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Communications runner thread started. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open >>>>>> socket >>>>>> to wrapper...Wrapper-Connection >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Failed >>>>>> attempt to bind using local port 31000 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Opened >>>>>> Socket from 31001 to 32000 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send >>>>>> a >>>>>> packet KEY : fREO9IxlyMDSknzk >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from >>>>>> 127.0.0.1 >>>>>> on port 31001 >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : >>>>>> fREO9IxlyMDSknzk >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: >>>>>> fREO9IxlyMDSknzk >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL >>>>>> : >>>>>> 1 >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT >>>>>> : >>>>>> 30 >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : >>>>>> (Property Values) >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Received >>>>>> a >>>>>> packet LOW_LOG_LEVEL : 1 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> LowLogLevel >>>>>> from Wrapper is 1 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Received >>>>>> a >>>>>> packet PING_TIMEOUT : 30 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> PingTimeout >>>>>> from Wrapper is 30000 >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Received >>>>>> a >>>>>> packet PROPERTIES : (Property Values) >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> Received >>>>>> a >>>>>> packet START : start >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> calling >>>>>> WrapperListener.start() >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> WrapperListener.start runner thread started. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> returned >>>>>> from WrapperListener.start() >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> WrapperListener.start() returned an exit code of 0. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: >>>>>> WrapperManager.stop(0) called by thread: WrapperListener_start_runner >>>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send >>>>>> a >>>>>> packet STOP : 0 >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. >>>>>> (0) >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) >>>>>> called. >>>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL >>>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>>>>> Received >>>>>> a >>>>>> packet STOP : >>>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>>>>> Thread, >>>>>> WrapperListener_start_runner, handling the shutdown process. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: >>>>>> shutdownJVM(0) Thread:WrapperListener_start_runner >>>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait >>>>>> for >>>>>> 0 >>>>>> shutdown locs to be released. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send >>>>>> a >>>>>> packet STOPPED : 0 >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 >>>>>> DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was >>>>>> stopped. >>>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: >>>>>> Closing >>>>>> socket. >>>>>> DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code >>>>>> (closed?). >>>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: >>>>>> calling >>>>>> System.exit(0) >>>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: >>>>>> Server >>>>>> daemon shut down >>>>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a >>>>>> code >>>>>> of >>>>>> 0, leaving the wrapper exit code set to 0. >>>>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. >>>>>> STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped >>>>>> >>>>>> This log say us something. >>>>>> >>>>>> Thanks in advance!!. > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22617198.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Elías M. L. <eli...@gm...> - 2009-03-20 09:43:42
|
Hi Leif, The problem was the creation of instance of the class wrap by WrapperListener. Now I haven't problem with the start of Service. But it's not work yet. I think that the problem is very difficult of resolve. Although my level of English not is very good, I will try to explain the better possible for if you can help me. My application is made with Spring Framework. This application use Jetty embedded to publish it through 8080 port and use the remote feature of Spring to the web server can do request to it. This application is communicated with my ERP throught COM+ and translate the request of web server to my ERP using JACOB (http://sourceforge.net/projects/jacob-project/ ). When I use Java Service Wrapper, I can see that I have problems with the Initialization of COM Object, and I get NullPointer to object instantiated with JACOB. I thought that problem was by permission on the COM of Microsoft, but I checked this issue and there isn't problems. As well as, If I run my application throught command line, with the same command that Java Service Wrapper and using the same jar packet, the curious is that it works fine. I don't know to think, I don't know if it is problem of COM+ or If it is problem of Java Service Wrapper?. Could you give me some indication?. Thanks again!!. 2009/3/18 Leif Mortenson <lei...@ta...> > Elias, > What does the content of your WrapperListener.start method look like? > > If you create a new thread, it will be non-daemon unless you > specifically call the thread.setDaemon(true) method. If you are using > existing class to start your application then it will be more > difficult to check. One solution is to add a wait for 1 second at > the end of your start method then call > WrapperManager.requestThreadDump(). That will let you see all of your > threads as well as see easily which have their daemon flag set. > > Cheers, > Leif > > On Tue, Mar 17, 2009 at 9:02 PM, ejml <eli...@gm...> wrote: > > > > Hello again Leif, > > > > Sorry by my ignorance but How can I'm sure that there is at least one > > non-daemon thread?. > > > > Thanks. > > > > > > Leif Mortenson-3 wrote: > >> > >> Elias, > >> Ok. Now the problem is that when your WrapperListener.start method > >> returns, there are not any non-daemon threads running. Because of > >> this, the JVM, not the Wrapper is initiating its own shutdown. The > >> Wrapper's shutdown is initiated when its own Shutdown Hook is started > >> by the JVM. > >> > >> Please make sure that you have started at least one non-daemon thread. > >> > >> Java will shutdown when run without the Wrapper as well if the main > >> method completes and there are no non-daemon threads running. > >> > >> Let me know if this doesn't make sense. > >> > >> Cheers, > >> Leif > >> > >> On Tue, Mar 17, 2009 at 7:42 PM, ejml <eli...@gm...> wrote: > >>> > >>> Thanks Leif by your response. > >>> Yes, I'm making use of Method 3 and your had reason. I had my variable > >>> initialized to 0. I have corrected this issue, but it doesn't works > yet. > >>> My > >>> log says this: > >>> > >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Allocating a console for the > >>> service. > >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Found console window. > >>> STATUS | wrapper | 2009/03/17 11:38:41 | --> Wrapper Started as > Service > >>> STATUS | wrapper | 2009/03/17 11:38:41 | Java Service Wrapper > Community > >>> Edition 3.3.3 > >>> STATUS | wrapper | 2009/03/17 11:38:41 | Copyright (C) 1999-2009 > >>> Tanuki > >>> Software, Ltd. All Rights Reserved. > >>> STATUS | wrapper | 2009/03/17 11:38:41 | > >>> http://wrapper.tanukisoftware.org > >>> STATUS | wrapper | 2009/03/17 11:38:41 | > >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Using tick timer. > >>> DEBUG | wrapperp | 2009/03/17 11:38:41 | server listening on port > 32000. > >>> DEBUG | wrapper | 2009/03/17 11:38:41 | Ping settings: > >>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, > >>> wrapper.ping.timeout=30 > >>> STATUS | wrapper | 2009/03/17 11:38:41 | Launching a JVM... > >>> DEBUG | wrapper | 2009/03/17 11:38:41 | command: > >>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath > >>> > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" > >>> -Dwrapper.key="YaKrFRBk8gEnOuzE" -Dwrapper.port=32000 > >>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > >>> -Dwrapper.debug="TRUE" -Dwrapper.pid=3516 -Dwrapper.version="3.3.3" > >>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > >>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > >>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 > >>> DEBUG | wrapper | 2009/03/17 11:38:41 | JVM started (PID=4892) > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> WrapperManager class initialized by thread: main Using classloader: > >>> sun.misc.Launcher$AppClassLoader@11b86e7 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager: > Initializing... > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: JVM #1 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Running > a > >>> 32-bit JVM. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> Registering > >>> shutdown hook > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Using > >>> wrapper > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Load > >>> native > >>> library. One or more attempts may fail if platform specific libraries > do > >>> not exist. This is NORMAL and is only a problem if they all fail. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Unable > >>> to > >>> load native library: wrapper-windows-x86-32.dll Cause: no > >>> wrapper-windows-x86-32 in java.library.path > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Loaded > >>> native library: wrapper.dll > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Calling > >>> native initialization method. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: > Initializing > >>> WrapperManager native library. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Java > >>> Executable: > >>> C:\WINNT\system32\java.exe > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperJNI Debug: Windows > >>> version: > >>> 5.0.2195 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java > >>> Version > >>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Java VM > >>> Vendor : Sun Microsystems Inc. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Name > >>> : Windows 2000 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: OS Arch > >>> : x86 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Control > >>> event monitor thread started. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> > WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9 > , > >>> args[]) called by thread: main > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup > >>> runner thread started. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> Communications runner thread started. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Open > >>> socket > >>> to wrapper...Wrapper-Connection > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Opened > >>> Socket from 31000 to 32000 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > >>> packet KEY : YaKrFRBk8gEnOuzE > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | accepted a socket from > >>> 127.0.0.1 > >>> on port 31000 > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet KEY : > >>> YaKrFRBk8gEnOuzE > >>> DEBUG | wrapper | 2009/03/17 11:38:42 | Got key from JVM: > >>> YaKrFRBk8gEnOuzE > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet LOW_LOG_LEVEL : > 1 > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PING_TIMEOUT : > 30 > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet PROPERTIES : > >>> (Property Values) > >>> DEBUG | wrapper | 2009/03/17 11:38:42 | Start Application. > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet START : start > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Received > >>> a > >>> packet LOW_LOG_LEVEL : 1 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> LowLogLevel > >>> from Wrapper is 1 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Received > >>> a > >>> packet PING_TIMEOUT : 30 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> PingTimeout > >>> from Wrapper is 30000 > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Received > >>> a > >>> packet PROPERTIES : (Property Values) > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Received > >>> a > >>> packet START : start > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: calling > >>> WrapperListener.start() > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> WrapperListener.start runner thread started. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > returned > >>> from WrapperListener.start() > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > >>> packet STARTED : > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> WrapperListener.start runner thread stopped. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Startup > >>> runner thread stopped. > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> ShutdownHook > >>> started > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > >>> WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: Send a > >>> packet STOP : 0 > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STARTED : > >>> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM signalled that it was > >>> started. > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | read a packet STOP : 0 > >>> DEBUG | wrapper | 2009/03/17 11:38:42 | JVM requested a shutdown. (0) > >>> DEBUG | wrapper | 2009/03/17 11:38:42 | wrapperStopProcess(0) called. > >>> DEBUG | wrapper | 2009/03/17 11:38:42 | Sending stop signal to JVM > >>> DEBUG | wrapperp | 2009/03/17 11:38:42 | send a packet STOP : NULL > >>> INFO | jvm 1 | 2009/03/17 11:38:42 | WrapperManager Debug: > Received > >>> a > >>> packet STOP : > >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Thread, > >>> Wrapper-Shutdown-Hook, handling the shutdown process. > >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: calling > >>> listener.stop() > >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: > returned > >>> from listener.stop() -> 0 > >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: > >>> shutdownJVM(0) Thread:Wrapper-Shutdown-Hook > >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: wait > for > >>> 0 > >>> shutdown locs to be released. > >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Send a > >>> packet STOPPED : 0 > >>> DEBUG | wrapperp | 2009/03/17 11:38:43 | read a packet STOPPED : 0 > >>> DEBUG | wrapper | 2009/03/17 11:38:43 | JVM signalled that it was > >>> stopped. > >>> INFO | jvm 1 | 2009/03/17 11:38:43 | WrapperManager Debug: Closing > >>> socket. > >>> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket read no code > (closed?). > >>> DEBUG | wrapperp | 2009/03/17 11:38:43 | socket not open, so packet > not > >>> sent SERVICE_CONTROL_CODE : 4 > >>> DEBUG | wrapper | 2009/03/17 11:38:43 | SERVICE_CONTROL_INTERROGATE > >>> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: Server > >>> daemon shut down > >>> INFO | jvm 1 | 2009/03/17 11:38:44 | WrapperManager Debug: > >>> ShutdownHook > >>> complete > >>> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM process exited with a > code > >>> of > >>> 0, leaving the wrapper exit code set to 0. > >>> DEBUG | wrapper | 2009/03/17 11:38:44 | JVM exited normally. > >>> STATUS | wrapper | 2009/03/17 11:38:44 | <-- Wrapper Stopped > >>> > >>> Very thanks by your help. > >>> > >>> Greetings!!. > >>> > >>> > >>> > >>> > >>> > >>> Leif Mortenson-3 wrote: > >>>> > >>>> Elias, > >>>>>From the java command line, it looks like you are making use of > >>>> Integration Method #3 for your application. > >>>> Is the com.gvs.AXConnectorServer.AXConnectorServiceWin32 class > >>>> something that you created? It appears to be working pretty much > >>>> correctly. > >>>> The problem is that your WrapperListener.start implementation is > >>>> returning an exit code of 0. This is telling the Wrapper that the JVM > >>>> should exit with exit code 0. If the application is meant to continue > >>>> running then the WrapperListener.start method should be returning > >>>> null. > >>>> > >>>> See the Java docs for the WrapperListener class for more information: > >>>> http://wrapper.tanukisoftware.org/doc/english/javadocs.html > >>>> > >>>> This is also described on the following page: > >>>> http://wrapper.tanukisoftware.org/doc/english/integrate-listener.html > >>>> > >>>> Cheers, > >>>> Leif > >>>> > >>>> On Tue, Mar 17, 2009 at 6:41 PM, ejml <eli...@gm...> > wrote: > >>>>> > >>>>> Hello Folks!, > >>>>> > >>>>> I'm trying to use Java Service Wrapper to implement my java project > >>>>> like > >>>>> windows service. My Project is made with Spring using Jetty. In other > >>>>> words, > >>>>> I use spring to startup jetty. This setup in eclipse work fine but I > >>>>> try > >>>>> to > >>>>> configure my application with Java Service Wrapper I get the next: > >>>>> > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Allocating a console for > the > >>>>> service. > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Found console window. > >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | --> Wrapper Started as > >>>>> Service > >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Java Service Wrapper > >>>>> Community > >>>>> Edition 3.3.3 > >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Copyright (C) 1999-2009 > >>>>> Tanuki > >>>>> Software, Ltd. All Rights Reserved. > >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | > >>>>> http://wrapper.tanukisoftware.org > >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Using tick timer. > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | server listening on port > >>>>> 32000. > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Ping settings: > >>>>> wrapper.ping.interval=5, wrapper.ping.interval.logged=1, > >>>>> wrapper.ping.timeout=30 > >>>>> STATUS | wrapper | 2009/03/17 09:40:35 | Launching a JVM... > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | command: > >>>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath > >>>>> > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" > >>>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 > >>>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > >>>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" > >>>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > >>>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > >>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM started (PID=3756) > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> WrapperManager class initialized by thread: main Using classloader: > >>>>> sun.misc.Launcher$AppClassLoader@11b86e7 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager: > >>>>> Initializing... > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: JVM > #1 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Running > >>>>> a > >>>>> 32-bit JVM. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Registering > >>>>> shutdown hook > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Using > >>>>> wrapper > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Load > >>>>> native > >>>>> library. One or more attempts may fail if platform specific > libraries > >>>>> do > >>>>> not exist. This is NORMAL and is only a problem if they all fail. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Unable > >>>>> to > >>>>> load native library: wrapper-windows-x86-32.dll Cause: no > >>>>> wrapper-windows-x86-32 in java.library.path > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Loaded > >>>>> native library: wrapper.dll > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Calling > >>>>> native initialization method. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: > >>>>> Initializing > >>>>> WrapperManager native library. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Java > >>>>> Executable: > >>>>> C:\WINNT\system32\java.exe > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperJNI Debug: Windows > >>>>> version: > >>>>> 5.0.2195 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java > >>>>> Version > >>>>> : 1.6.0_11-b03 Java HotSpot(TM) Client VM > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Java > VM > >>>>> Vendor : Sun Microsystems Inc. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS > Name > >>>>> : Windows 2000 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: OS > Arch > >>>>> : x86 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> > WrapperManager.start(com.gvs.AXConnectorServer.AXConnectorServiceWin32@201f9 > , > >>>>> args[]) called by thread: main > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Startup > >>>>> runner thread started. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Control > >>>>> event monitor thread started. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Communications runner thread started. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Open > >>>>> socket > >>>>> to wrapper...Wrapper-Connection > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Failed > >>>>> attempt to bind using local port 31000 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > Opened > >>>>> Socket from 31001 to 32000 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send > a > >>>>> packet KEY : fREO9IxlyMDSknzk > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31001]) > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | accepted a socket from > >>>>> 127.0.0.1 > >>>>> on port 31001 > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet KEY : > >>>>> fREO9IxlyMDSknzk > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Got key from JVM: > >>>>> fREO9IxlyMDSknzk > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet LOW_LOG_LEVEL > : > >>>>> 1 > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PING_TIMEOUT > : > >>>>> 30 > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet PROPERTIES : > >>>>> (Property Values) > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Start Application. > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet START : start > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Received > >>>>> a > >>>>> packet LOW_LOG_LEVEL : 1 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> LowLogLevel > >>>>> from Wrapper is 1 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Received > >>>>> a > >>>>> packet PING_TIMEOUT : 30 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> PingTimeout > >>>>> from Wrapper is 30000 > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Received > >>>>> a > >>>>> packet PROPERTIES : (Property Values) > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> Received > >>>>> a > >>>>> packet START : start > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > calling > >>>>> WrapperListener.start() > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> WrapperListener.start runner thread started. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> returned > >>>>> from WrapperListener.start() > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> WrapperListener.start() returned an exit code of 0. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: > >>>>> WrapperManager.stop(0) called by thread: WrapperListener_start_runner > >>>>> INFO | jvm 1 | 2009/03/17 09:40:35 | WrapperManager Debug: Send > a > >>>>> packet STOP : 0 > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | read a packet STOP : 0 > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | JVM requested a shutdown. > (0) > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | wrapperStopProcess(0) > called. > >>>>> DEBUG | wrapper | 2009/03/17 09:40:35 | Sending stop signal to JVM > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:35 | send a packet STOP : NULL > >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: > >>>>> Received > >>>>> a > >>>>> packet STOP : > >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: > Thread, > >>>>> WrapperListener_start_runner, handling the shutdown process. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: > >>>>> shutdownJVM(0) Thread:WrapperListener_start_runner > >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: wait > >>>>> for > >>>>> 0 > >>>>> shutdown locs to be released. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:36 | WrapperManager Debug: Send > a > >>>>> packet STOPPED : 0 > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:36 | read a packet STOPPED : 0 > >>>>> DEBUG | wrapper | 2009/03/17 09:40:36 | JVM signalled that it was > >>>>> stopped. > >>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: > Closing > >>>>> socket. > >>>>> DEBUG | wrapperp | 2009/03/17 09:40:37 | socket read no code > >>>>> (closed?). > >>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: > calling > >>>>> System.exit(0) > >>>>> INFO | jvm 1 | 2009/03/17 09:40:37 | WrapperManager Debug: > Server > >>>>> daemon shut down > >>>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM process exited with a > >>>>> code > >>>>> of > >>>>> 0, leaving the wrapper exit code set to 0. > >>>>> DEBUG | wrapper | 2009/03/17 09:40:37 | JVM exited normally. > >>>>> STATUS | wrapper | 2009/03/17 09:40:37 | <-- Wrapper Stopped > >>>>> > >>>>> This log say us something. > >>>>> > >>>>> Thanks in advance!!. > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2009-03-22 13:53:21
|
Elias, Can you answer a few questions? 1) You have said that it fails when run as a service, but that it works from the command line. Have you tried running under the Wrapper in console mode? Ie by running as follows: wrapper.exe -c ..¥conf¥wrapper.conf What happens? 2) Please post the java command line you are using when it works, and the one generated by the Wrapper. You can get the command line generated by the Wrapper by running in debug mode or by setting wrapper.java.command.loglevel=INFO 2) Have you seen the FAQ entry on this subject? http://wrapper.tanukisoftware.org/doc/english/faq.html#4 The win32com.dll needs to be on your java library path. By default, Java searches the PATH, but when running under the Wrapper, this is disabled because a library path is specified. It is necessary to add the location of win32com.dll to your library path in the wrapper.conf file. Cheers, Leif 2009/3/20 Elías Manchón López <eli...@gm...>: > Hi Leif, > > The problem was the creation of instance of the class wrap by > WrapperListener. Now I haven't problem with the start of Service. But it's > not work yet. I think that the problem is very difficult of resolve. > Although my level of English not is very good, I will try to explain the > better possible for if you can help me. > > My application is made with Spring Framework. This application use Jetty > embedded to publish it through 8080 port and use the remote feature of > Spring to the web server can do request to it. This application is > communicated with my ERP throught COM+ and translate the request of web > server to my ERP using JACOB > (http://sourceforge.net/projects/jacob-project/). > > When I use Java Service Wrapper, I can see that I have problems with the > Initialization of COM Object, and I get NullPointer to object instantiated > with JACOB. I thought that problem was by permission on the COM of > Microsoft, but I checked this issue and there isn't problems. As well as, If > I run my application throught command line, with the same command that Java > Service Wrapper and using the same jar packet, the curious is that it works > fine. > > I don't know to think, I don't know if it is problem of COM+ or If it is > problem of Java Service Wrapper?. Could you give me some indication?. > > Thanks again!!. > 2009/3/18 Leif Mortenson <lei...@ta...> >> >> Elias, >> What does the content of your WrapperListener.start method look like? >> >> If you create a new thread, it will be non-daemon unless you >> specifically call the thread.setDaemon(true) method. If you are using >> existing class to start your application then it will be more >> difficult to check. One solution is to add a wait for 1 second at >> the end of your start method then call >> WrapperManager.requestThreadDump(). That will let you see all of your >> threads as well as see easily which have their daemon flag set. >> >> Cheers, >> Leif (snip) |
|
From: Elías M. L. <eli...@gm...> - 2009-03-22 19:14:04
|
Hello Leif, My answers: 1) I have run the service in console mode with the command: wrapper.exe -c ../conf/wrapper.conf and it works fine. 2) The command that I use to run the application when it works is: "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" -Djava.library.path="../lib" -classpath "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de programa/jacob-1.14/jacob.jar;C:/Archivos de programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" com.gvs.AXConnectorServer.AXConnectorServiceWin32 This is the same effect that I execute: wrapper.exe -c ../conf/wrapper.conf 3) I don't find win32com.dll, I have searched in sun and RXTX and the new versions not contain win32com.dll. Thanks and greetings!!. 2009/3/22 Leif Mortenson <le...@ta...> > Elias, > Can you answer a few questions? > > 1) You have said that it fails when run as a service, but that it > works from the command line. Have you tried running under the > Wrapper in console mode? Ie by running as follows: wrapper.exe -c > ..¥conf¥wrapper.conf > What happens? > > 2) Please post the java command line you are using when it works, and > the one generated by the Wrapper. You can get the command line > generated by the Wrapper by running in debug mode or by setting > wrapper.java.command.loglevel=INFO > > 2) Have you seen the FAQ entry on this subject? > http://wrapper.tanukisoftware.org/doc/english/faq.html#4 > The win32com.dll needs to be on your java library path. By default, > Java searches the PATH, but when running under the Wrapper, this is > disabled because a library path is specified. It is necessary to add > the location of win32com.dll to your library path in the wrapper.conf > file. > > Cheers, > Leif > > 2009/3/20 Elías Manchón López <eli...@gm...>: > > Hi Leif, > > > > The problem was the creation of instance of the class wrap by > > WrapperListener. Now I haven't problem with the start of Service. But > it's > > not work yet. I think that the problem is very difficult of resolve. > > Although my level of English not is very good, I will try to explain the > > better possible for if you can help me. > > > > My application is made with Spring Framework. This application use Jetty > > embedded to publish it through 8080 port and use the remote feature of > > Spring to the web server can do request to it. This application is > > communicated with my ERP throught COM+ and translate the request of web > > server to my ERP using JACOB > > (http://sourceforge.net/projects/jacob-project/). > > > > When I use Java Service Wrapper, I can see that I have problems with the > > Initialization of COM Object, and I get NullPointer to object > instantiated > > with JACOB. I thought that problem was by permission on the COM of > > Microsoft, but I checked this issue and there isn't problems. As well as, > If > > I run my application throught command line, with the same command that > Java > > Service Wrapper and using the same jar packet, the curious is that it > works > > fine. > > > > I don't know to think, I don't know if it is problem of COM+ or If it is > > problem of Java Service Wrapper?. Could you give me some indication?. > > > > Thanks again!!. > > 2009/3/18 Leif Mortenson <lei...@ta...> > >> > >> Elias, > >> What does the content of your WrapperListener.start method look like? > >> > >> If you create a new thread, it will be non-daemon unless you > >> specifically call the thread.setDaemon(true) method. If you are using > >> existing class to start your application then it will be more > >> difficult to check. One solution is to add a wait for 1 second at > >> the end of your start method then call > >> WrapperManager.requestThreadDump(). That will let you see all of your > >> threads as well as see easily which have their daemon flag set. > >> > >> Cheers, > >> Leif > > (snip) > > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: ejml <eli...@gm...> - 2009-03-22 19:15:21
|
Hello Leif, My answers: 1) I have run the service in console mode with the command: wrapper.exe -c ../conf/wrapper.conf and it works fine. 2) The command that I use to run the application when it works is: "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" -Djava.library.path="../lib" -classpath "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de programa/jacob-1.14/jacob.jar;C:/Archivos de programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" com.gvs.AXConnectorServer.AXConnectorServiceWin32 This is the same effect that I execute: wrapper.exe -c ../conf/wrapper.conf 3) I don't find win32com.dll, I have searched in sun and RXTX and the new versions not contain win32com.dll. Thanks and greetings!!. Leif Mortenson-2 wrote: > > Elias, > Can you answer a few questions? > > 1) You have said that it fails when run as a service, but that it > works from the command line. Have you tried running under the > Wrapper in console mode? Ie by running as follows: wrapper.exe -c > ..¥conf¥wrapper.conf > What happens? > > 2) Please post the java command line you are using when it works, and > the one generated by the Wrapper. You can get the command line > generated by the Wrapper by running in debug mode or by setting > wrapper.java.command.loglevel=INFO > > 2) Have you seen the FAQ entry on this subject? > http://wrapper.tanukisoftware.org/doc/english/faq.html#4 > The win32com.dll needs to be on your java library path. By default, > Java searches the PATH, but when running under the Wrapper, this is > disabled because a library path is specified. It is necessary to add > the location of win32com.dll to your library path in the wrapper.conf > file. > > Cheers, > Leif > > 2009/3/20 Elías Manchón López <eli...@gm...>: >> Hi Leif, >> >> The problem was the creation of instance of the class wrap by >> WrapperListener. Now I haven't problem with the start of Service. But >> it's >> not work yet. I think that the problem is very difficult of resolve. >> Although my level of English not is very good, I will try to explain the >> better possible for if you can help me. >> >> My application is made with Spring Framework. This application use Jetty >> embedded to publish it through 8080 port and use the remote feature of >> Spring to the web server can do request to it. This application is >> communicated with my ERP throught COM+ and translate the request of web >> server to my ERP using JACOB >> (http://sourceforge.net/projects/jacob-project/). >> >> When I use Java Service Wrapper, I can see that I have problems with the >> Initialization of COM Object, and I get NullPointer to object >> instantiated >> with JACOB. I thought that problem was by permission on the COM of >> Microsoft, but I checked this issue and there isn't problems. As well as, >> If >> I run my application throught command line, with the same command that >> Java >> Service Wrapper and using the same jar packet, the curious is that it >> works >> fine. >> >> I don't know to think, I don't know if it is problem of COM+ or If it is >> problem of Java Service Wrapper?. Could you give me some indication?. >> >> Thanks again!!. >> 2009/3/18 Leif Mortenson <lei...@ta...> >>> >>> Elias, >>> What does the content of your WrapperListener.start method look like? >>> >>> If you create a new thread, it will be non-daemon unless you >>> specifically call the thread.setDaemon(true) method. If you are using >>> existing class to start your application then it will be more >>> difficult to check. One solution is to add a wait for 1 second at >>> the end of your start method then call >>> WrapperManager.requestThreadDump(). That will let you see all of your >>> threads as well as see easily which have their daemon flag set. >>> >>> Cheers, >>> Leif > > (snip) > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22649421.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: ejml <eli...@gm...> - 2009-03-23 14:04:45
|
Hi Lief, I have done the installation in other machine and now works all fine. Thanks by all. ejml wrote: > > Hello Leif, > > My answers: > > 1) I have run the service in console mode with the command: wrapper.exe -c > ../conf/wrapper.conf and it works fine. > > 2) The command that I use to run the application when it works is: > > "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" > -Djava.library.path="../lib" -classpath > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos > de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de > programa/jacob-1.14/jacob.jar;C:/Archivos de > programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de > programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de > programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de > programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos > de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de > programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" > com.gvs.AXConnectorServer.AXConnectorServiceWin32 > > This is the same effect that I execute: wrapper.exe -c > ../conf/wrapper.conf > > 3) I don't find win32com.dll, I have searched in sun and RXTX and the new > versions not contain win32com.dll. > > Thanks and greetings!!. > > Leif Mortenson-2 wrote: >> >> Elias, >> Can you answer a few questions? >> >> 1) You have said that it fails when run as a service, but that it >> works from the command line. Have you tried running under the >> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >> ..¥conf¥wrapper.conf >> What happens? >> >> 2) Please post the java command line you are using when it works, and >> the one generated by the Wrapper. You can get the command line >> generated by the Wrapper by running in debug mode or by setting >> wrapper.java.command.loglevel=INFO >> >> 2) Have you seen the FAQ entry on this subject? >> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >> The win32com.dll needs to be on your java library path. By default, >> Java searches the PATH, but when running under the Wrapper, this is >> disabled because a library path is specified. It is necessary to add >> the location of win32com.dll to your library path in the wrapper.conf >> file. >> >> Cheers, >> Leif >> >> 2009/3/20 Elías Manchón López <eli...@gm...>: >>> Hi Leif, >>> >>> The problem was the creation of instance of the class wrap by >>> WrapperListener. Now I haven't problem with the start of Service. But >>> it's >>> not work yet. I think that the problem is very difficult of resolve. >>> Although my level of English not is very good, I will try to explain the >>> better possible for if you can help me. >>> >>> My application is made with Spring Framework. This application use Jetty >>> embedded to publish it through 8080 port and use the remote feature of >>> Spring to the web server can do request to it. This application is >>> communicated with my ERP throught COM+ and translate the request of web >>> server to my ERP using JACOB >>> (http://sourceforge.net/projects/jacob-project/). >>> >>> When I use Java Service Wrapper, I can see that I have problems with the >>> Initialization of COM Object, and I get NullPointer to object >>> instantiated >>> with JACOB. I thought that problem was by permission on the COM of >>> Microsoft, but I checked this issue and there isn't problems. As well >>> as, If >>> I run my application throught command line, with the same command that >>> Java >>> Service Wrapper and using the same jar packet, the curious is that it >>> works >>> fine. >>> >>> I don't know to think, I don't know if it is problem of COM+ or If it is >>> problem of Java Service Wrapper?. Could you give me some indication?. >>> >>> Thanks again!!. >>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>> >>>> Elias, >>>> What does the content of your WrapperListener.start method look like? >>>> >>>> If you create a new thread, it will be non-daemon unless you >>>> specifically call the thread.setDaemon(true) method. If you are using >>>> existing class to start your application then it will be more >>>> difficult to check. One solution is to add a wait for 1 second at >>>> the end of your start method then call >>>> WrapperManager.requestThreadDump(). That will let you see all of your >>>> threads as well as see easily which have their daemon flag set. >>>> >>>> Cheers, >>>> Leif >> >> (snip) >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based >> development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22660775.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: ejml <eli...@gm...> - 2009-03-23 16:50:38
|
Sorry Leif, False Alarm, it still fails when it's configured like service. Greetings!!. ejml wrote: > > Hello Leif, > > My answers: > > 1) I have run the service in console mode with the command: wrapper.exe -c > ../conf/wrapper.conf and it works fine. > > 2) The command that I use to run the application when it works is: > > "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" > -Djava.library.path="../lib" -classpath > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos > de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de > programa/jacob-1.14/jacob.jar;C:/Archivos de > programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de > programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de > programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de > programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos > de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de > programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" > com.gvs.AXConnectorServer.AXConnectorServiceWin32 > > This is the same effect that I execute: wrapper.exe -c > ../conf/wrapper.conf > > 3) I don't find win32com.dll, I have searched in sun and RXTX and the new > versions not contain win32com.dll. > > Thanks and greetings!!. > > Leif Mortenson-2 wrote: >> >> Elias, >> Can you answer a few questions? >> >> 1) You have said that it fails when run as a service, but that it >> works from the command line. Have you tried running under the >> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >> ..¥conf¥wrapper.conf >> What happens? >> >> 2) Please post the java command line you are using when it works, and >> the one generated by the Wrapper. You can get the command line >> generated by the Wrapper by running in debug mode or by setting >> wrapper.java.command.loglevel=INFO >> >> 2) Have you seen the FAQ entry on this subject? >> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >> The win32com.dll needs to be on your java library path. By default, >> Java searches the PATH, but when running under the Wrapper, this is >> disabled because a library path is specified. It is necessary to add >> the location of win32com.dll to your library path in the wrapper.conf >> file. >> >> Cheers, >> Leif >> >> 2009/3/20 Elías Manchón López <eli...@gm...>: >>> Hi Leif, >>> >>> The problem was the creation of instance of the class wrap by >>> WrapperListener. Now I haven't problem with the start of Service. But >>> it's >>> not work yet. I think that the problem is very difficult of resolve. >>> Although my level of English not is very good, I will try to explain the >>> better possible for if you can help me. >>> >>> My application is made with Spring Framework. This application use Jetty >>> embedded to publish it through 8080 port and use the remote feature of >>> Spring to the web server can do request to it. This application is >>> communicated with my ERP throught COM+ and translate the request of web >>> server to my ERP using JACOB >>> (http://sourceforge.net/projects/jacob-project/). >>> >>> When I use Java Service Wrapper, I can see that I have problems with the >>> Initialization of COM Object, and I get NullPointer to object >>> instantiated >>> with JACOB. I thought that problem was by permission on the COM of >>> Microsoft, but I checked this issue and there isn't problems. As well >>> as, If >>> I run my application throught command line, with the same command that >>> Java >>> Service Wrapper and using the same jar packet, the curious is that it >>> works >>> fine. >>> >>> I don't know to think, I don't know if it is problem of COM+ or If it is >>> problem of Java Service Wrapper?. Could you give me some indication?. >>> >>> Thanks again!!. >>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>> >>>> Elias, >>>> What does the content of your WrapperListener.start method look like? >>>> >>>> If you create a new thread, it will be non-daemon unless you >>>> specifically call the thread.setDaemon(true) method. If you are using >>>> existing class to start your application then it will be more >>>> difficult to check. One solution is to add a wait for 1 second at >>>> the end of your start method then call >>>> WrapperManager.requestThreadDump(). That will let you see all of your >>>> threads as well as see easily which have their daemon flag set. >>>> >>>> Cheers, >>>> Leif >> >> (snip) >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based >> development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22663877.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Leif M. <lei...@ta...> - 2009-03-24 09:58:41
|
Elias, 1) So you are specifying the Java to run in your wrapper.conf file so we are sure that it is always using the correct JVM? Just to rule out a particular problem in my mind, could you please set the wrapper.java.command.loglevel=INFO property in your wrapper.conf file and then post the generated command line when you run as a service? I want to make 100% sure that you are running the correct JVM. In your original post, your command line was this: --- "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 com.gvs.AXConnectorServer.AXConnectorServiceWin32 --- Notice that the java being run is not the same as when you run in a console. If this is still the case then this is most likely the cause of your problems. If your java command is specified as follows then it will searched for on the PATH. This is not very reliable. wrapper.java.command=java The PATH when run as a service will most likely be quite different. I strongly suggest using one of the following: wrapper.java.command=%JAVA_HOME%/bin/java This second option is most likely even better because it appears that your application includes its own JRE. The path is relative to the location of the wrapper.exe: wrapper.java.command=../jre/bin/java 2) Please post your wrapper.conf file as a an attachment. Cheers, Leif On Tue, Mar 24, 2009 at 1:50 AM, ejml <eli...@gm...> wrote: > > Sorry Leif, > > False Alarm, it still fails when it's configured like service. > > Greetings!!. > > ejml wrote: >> >> Hello Leif, >> >> My answers: >> >> 1) I have run the service in console mode with the command: wrapper.exe -c >> ../conf/wrapper.conf and it works fine. >> >> 2) The command that I use to run the application when it works is: >> >> "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" >> -Djava.library.path="../lib" -classpath >> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos >> de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de >> programa/jacob-1.14/jacob.jar;C:/Archivos de >> programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de >> programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de >> programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de >> programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos >> de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de >> programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" >> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >> >> This is the same effect that I execute: wrapper.exe -c >> ../conf/wrapper.conf >> >> 3) I don't find win32com.dll, I have searched in sun and RXTX and the new >> versions not contain win32com.dll. >> >> Thanks and greetings!!. >> >> Leif Mortenson-2 wrote: >>> >>> Elias, >>> Can you answer a few questions? >>> >>> 1) You have said that it fails when run as a service, but that it >>> works from the command line. Have you tried running under the >>> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >>> ..¥conf¥wrapper.conf >>> What happens? >>> >>> 2) Please post the java command line you are using when it works, and >>> the one generated by the Wrapper. You can get the command line >>> generated by the Wrapper by running in debug mode or by setting >>> wrapper.java.command.loglevel=INFO >>> >>> 2) Have you seen the FAQ entry on this subject? >>> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >>> The win32com.dll needs to be on your java library path. By default, >>> Java searches the PATH, but when running under the Wrapper, this is >>> disabled because a library path is specified. It is necessary to add >>> the location of win32com.dll to your library path in the wrapper.conf >>> file. >>> >>> Cheers, >>> Leif >>> >>> 2009/3/20 Elías Manchón López <eli...@gm...>: >>>> Hi Leif, >>>> >>>> The problem was the creation of instance of the class wrap by >>>> WrapperListener. Now I haven't problem with the start of Service. But >>>> it's >>>> not work yet. I think that the problem is very difficult of resolve. >>>> Although my level of English not is very good, I will try to explain the >>>> better possible for if you can help me. >>>> >>>> My application is made with Spring Framework. This application use Jetty >>>> embedded to publish it through 8080 port and use the remote feature of >>>> Spring to the web server can do request to it. This application is >>>> communicated with my ERP throught COM+ and translate the request of web >>>> server to my ERP using JACOB >>>> (http://sourceforge.net/projects/jacob-project/). >>>> >>>> When I use Java Service Wrapper, I can see that I have problems with the >>>> Initialization of COM Object, and I get NullPointer to object >>>> instantiated >>>> with JACOB. I thought that problem was by permission on the COM of >>>> Microsoft, but I checked this issue and there isn't problems. As well >>>> as, If >>>> I run my application throught command line, with the same command that >>>> Java >>>> Service Wrapper and using the same jar packet, the curious is that it >>>> works >>>> fine. >>>> >>>> I don't know to think, I don't know if it is problem of COM+ or If it is >>>> problem of Java Service Wrapper?. Could you give me some indication?. >>>> >>>> Thanks again!!. >>>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>>> >>>>> Elias, >>>>> What does the content of your WrapperListener.start method look like? >>>>> >>>>> If you create a new thread, it will be non-daemon unless you >>>>> specifically call the thread.setDaemon(true) method. If you are using >>>>> existing class to start your application then it will be more >>>>> difficult to check. One solution is to add a wait for 1 second at >>>>> the end of your start method then call >>>>> WrapperManager.requestThreadDump(). That will let you see all of your >>>>> threads as well as see easily which have their daemon flag set. >>>>> >>>>> Cheers, >>>>> Leif >>> >>> (snip) |
|
From: ejml <eli...@gm...> - 2009-03-24 13:08:56
|
Hi Leif, I setted the wrapper.java.command to avoid problems with my path. I send you my wrapper.conf. Greetings!! http://www.nabble.com/file/p22680034/wrapper.conf wrapper.conf Leif Mortenson-3 wrote: > > Elias, > 1) So you are specifying the Java to run in your wrapper.conf file so > we are sure that it is always using the correct JVM? > Just to rule out a particular problem in my mind, could you please set > the wrapper.java.command.loglevel=INFO property in your wrapper.conf > file and then post the generated command line when you run as a > service? I want to make 100% sure that you are running the correct > JVM. > > In your original post, your command line was this: > --- > "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath > "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" > -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 > com.gvs.AXConnectorServer.AXConnectorServiceWin32 > --- > Notice that the java being run is not the same as when you run in a > console. If this is still the case then this is most likely the cause > of your problems. > > If your java command is specified as follows then it will searched for > on the PATH. This is not very reliable. > wrapper.java.command=java > The PATH when run as a service will most likely be quite different. > > I strongly suggest using one of the following: > wrapper.java.command=%JAVA_HOME%/bin/java > > This second option is most likely even better because it appears that > your application includes its own JRE. The path is relative to the > location of the wrapper.exe: > wrapper.java.command=../jre/bin/java > > 2) Please post your wrapper.conf file as a an attachment. > > Cheers, > Leif > > On Tue, Mar 24, 2009 at 1:50 AM, ejml <eli...@gm...> wrote: >> >> Sorry Leif, >> >> False Alarm, it still fails when it's configured like service. >> >> Greetings!!. >> >> ejml wrote: >>> >>> Hello Leif, >>> >>> My answers: >>> >>> 1) I have run the service in console mode with the command: wrapper.exe >>> -c >>> ../conf/wrapper.conf and it works fine. >>> >>> 2) The command that I use to run the application when it works is: >>> >>> "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" >>> -Djava.library.path="../lib" -classpath >>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos >>> de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de >>> programa/jacob-1.14/jacob.jar;C:/Archivos de >>> programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de >>> programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de >>> programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de >>> programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos >>> de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de >>> programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" >>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>> >>> This is the same effect that I execute: wrapper.exe -c >>> ../conf/wrapper.conf >>> >>> 3) I don't find win32com.dll, I have searched in sun and RXTX and the >>> new >>> versions not contain win32com.dll. >>> >>> Thanks and greetings!!. >>> >>> Leif Mortenson-2 wrote: >>>> >>>> Elias, >>>> Can you answer a few questions? >>>> >>>> 1) You have said that it fails when run as a service, but that it >>>> works from the command line. Have you tried running under the >>>> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >>>> ..¥conf¥wrapper.conf >>>> What happens? >>>> >>>> 2) Please post the java command line you are using when it works, and >>>> the one generated by the Wrapper. You can get the command line >>>> generated by the Wrapper by running in debug mode or by setting >>>> wrapper.java.command.loglevel=INFO >>>> >>>> 2) Have you seen the FAQ entry on this subject? >>>> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >>>> The win32com.dll needs to be on your java library path. By default, >>>> Java searches the PATH, but when running under the Wrapper, this is >>>> disabled because a library path is specified. It is necessary to add >>>> the location of win32com.dll to your library path in the wrapper.conf >>>> file. >>>> >>>> Cheers, >>>> Leif >>>> >>>> 2009/3/20 Elías Manchón López <eli...@gm...>: >>>>> Hi Leif, >>>>> >>>>> The problem was the creation of instance of the class wrap by >>>>> WrapperListener. Now I haven't problem with the start of Service. But >>>>> it's >>>>> not work yet. I think that the problem is very difficult of resolve. >>>>> Although my level of English not is very good, I will try to explain >>>>> the >>>>> better possible for if you can help me. >>>>> >>>>> My application is made with Spring Framework. This application use >>>>> Jetty >>>>> embedded to publish it through 8080 port and use the remote feature of >>>>> Spring to the web server can do request to it. This application is >>>>> communicated with my ERP throught COM+ and translate the request of >>>>> web >>>>> server to my ERP using JACOB >>>>> (http://sourceforge.net/projects/jacob-project/). >>>>> >>>>> When I use Java Service Wrapper, I can see that I have problems with >>>>> the >>>>> Initialization of COM Object, and I get NullPointer to object >>>>> instantiated >>>>> with JACOB. I thought that problem was by permission on the COM of >>>>> Microsoft, but I checked this issue and there isn't problems. As well >>>>> as, If >>>>> I run my application throught command line, with the same command that >>>>> Java >>>>> Service Wrapper and using the same jar packet, the curious is that it >>>>> works >>>>> fine. >>>>> >>>>> I don't know to think, I don't know if it is problem of COM+ or If it >>>>> is >>>>> problem of Java Service Wrapper?. Could you give me some indication?. >>>>> >>>>> Thanks again!!. >>>>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>>>> >>>>>> Elias, >>>>>> What does the content of your WrapperListener.start method look like? >>>>>> >>>>>> If you create a new thread, it will be non-daemon unless you >>>>>> specifically call the thread.setDaemon(true) method. If you are >>>>>> using >>>>>> existing class to start your application then it will be more >>>>>> difficult to check. One solution is to add a wait for 1 second at >>>>>> the end of your start method then call >>>>>> WrapperManager.requestThreadDump(). That will let you see all of >>>>>> your >>>>>> threads as well as see easily which have their daemon flag set. >>>>>> >>>>>> Cheers, >>>>>> Leif >>>> >>>> (snip) > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22680034.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Leif M. <le...@ta...> - 2009-03-24 13:58:13
|
Elias, I do not see any problems with your wrapper.conf file. Did the change to your wrapper.java.command value solve the problem for you? Cheers, Leif On Tue, Mar 24, 2009 at 10:08 PM, ejml <eli...@gm...> wrote: > > Hi Leif, > > I setted the wrapper.java.command to avoid problems with my path. I send you > my wrapper.conf. > > Greetings!! > > http://www.nabble.com/file/p22680034/wrapper.conf wrapper.conf > Leif Mortenson-3 wrote: >> >> Elias, >> 1) So you are specifying the Java to run in your wrapper.conf file so >> we are sure that it is always using the correct JVM? >> Just to rule out a particular problem in my mind, could you please set >> the wrapper.java.command.loglevel=INFO property in your wrapper.conf >> file and then post the generated command line when you run as a >> service? I want to make 100% sure that you are running the correct >> JVM. >> >> In your original post, your command line was this: >> --- >> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >> --- >> Notice that the java being run is not the same as when you run in a >> console. If this is still the case then this is most likely the cause >> of your problems. >> >> If your java command is specified as follows then it will searched for >> on the PATH. This is not very reliable. >> wrapper.java.command=java >> The PATH when run as a service will most likely be quite different. >> >> I strongly suggest using one of the following: >> wrapper.java.command=%JAVA_HOME%/bin/java >> >> This second option is most likely even better because it appears that >> your application includes its own JRE. The path is relative to the >> location of the wrapper.exe: >> wrapper.java.command=../jre/bin/java >> >> 2) Please post your wrapper.conf file as a an attachment. >> >> Cheers, >> Leif >> >> On Tue, Mar 24, 2009 at 1:50 AM, ejml <eli...@gm...> wrote: >>> >>> Sorry Leif, >>> >>> False Alarm, it still fails when it's configured like service. >>> >>> Greetings!!. >>> >>> ejml wrote: >>>> >>>> Hello Leif, >>>> >>>> My answers: >>>> >>>> 1) I have run the service in console mode with the command: wrapper.exe >>>> -c >>>> ../conf/wrapper.conf and it works fine. >>>> >>>> 2) The command that I use to run the application when it works is: >>>> >>>> "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" >>>> -Djava.library.path="../lib" -classpath >>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos >>>> de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de >>>> programa/jacob-1.14/jacob.jar;C:/Archivos de >>>> programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de >>>> programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de >>>> programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de >>>> programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos >>>> de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de >>>> programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" >>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>> >>>> This is the same effect that I execute: wrapper.exe -c >>>> ../conf/wrapper.conf >>>> >>>> 3) I don't find win32com.dll, I have searched in sun and RXTX and the >>>> new >>>> versions not contain win32com.dll. >>>> >>>> Thanks and greetings!!. >>>> >>>> Leif Mortenson-2 wrote: >>>>> >>>>> Elias, >>>>> Can you answer a few questions? >>>>> >>>>> 1) You have said that it fails when run as a service, but that it >>>>> works from the command line. Have you tried running under the >>>>> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >>>>> ..¥conf¥wrapper.conf >>>>> What happens? >>>>> >>>>> 2) Please post the java command line you are using when it works, and >>>>> the one generated by the Wrapper. You can get the command line >>>>> generated by the Wrapper by running in debug mode or by setting >>>>> wrapper.java.command.loglevel=INFO >>>>> >>>>> 2) Have you seen the FAQ entry on this subject? >>>>> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >>>>> The win32com.dll needs to be on your java library path. By default, >>>>> Java searches the PATH, but when running under the Wrapper, this is >>>>> disabled because a library path is specified. It is necessary to add >>>>> the location of win32com.dll to your library path in the wrapper.conf >>>>> file. >>>>> >>>>> Cheers, >>>>> Leif >>>>> >>>>> 2009/3/20 Elías Manchón López <eli...@gm...>: >>>>>> Hi Leif, >>>>>> >>>>>> The problem was the creation of instance of the class wrap by >>>>>> WrapperListener. Now I haven't problem with the start of Service. But >>>>>> it's >>>>>> not work yet. I think that the problem is very difficult of resolve. >>>>>> Although my level of English not is very good, I will try to explain >>>>>> the >>>>>> better possible for if you can help me. >>>>>> >>>>>> My application is made with Spring Framework. This application use >>>>>> Jetty >>>>>> embedded to publish it through 8080 port and use the remote feature of >>>>>> Spring to the web server can do request to it. This application is >>>>>> communicated with my ERP throught COM+ and translate the request of >>>>>> web >>>>>> server to my ERP using JACOB >>>>>> (http://sourceforge.net/projects/jacob-project/). >>>>>> >>>>>> When I use Java Service Wrapper, I can see that I have problems with >>>>>> the >>>>>> Initialization of COM Object, and I get NullPointer to object >>>>>> instantiated >>>>>> with JACOB. I thought that problem was by permission on the COM of >>>>>> Microsoft, but I checked this issue and there isn't problems. As well >>>>>> as, If >>>>>> I run my application throught command line, with the same command that >>>>>> Java >>>>>> Service Wrapper and using the same jar packet, the curious is that it >>>>>> works >>>>>> fine. >>>>>> >>>>>> I don't know to think, I don't know if it is problem of COM+ or If it >>>>>> is >>>>>> problem of Java Service Wrapper?. Could you give me some indication?. >>>>>> >>>>>> Thanks again!!. >>>>>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>>>>> >>>>>>> Elias, >>>>>>> What does the content of your WrapperListener.start method look like? >>>>>>> >>>>>>> If you create a new thread, it will be non-daemon unless you >>>>>>> specifically call the thread.setDaemon(true) method. If you are >>>>>>> using >>>>>>> existing class to start your application then it will be more >>>>>>> difficult to check. One solution is to add a wait for 1 second at >>>>>>> the end of your start method then call >>>>>>> WrapperManager.requestThreadDump(). That will let you see all of >>>>>>> your >>>>>>> threads as well as see easily which have their daemon flag set. >>>>>>> >>>>>>> Cheers, >>>>>>> Leif >>>>> >>>>> (snip) |
|
From: ejml <eli...@gm...> - 2009-03-24 14:39:38
|
Leif, I have the same wrapper.java.command that there is configured in wrapper.conf, but it doesn't work like service yet. The only thing is... Could some problem with the service installer?. I used the example bat files. Leif Mortenson-2 wrote: > > Elias, > I do not see any problems with your wrapper.conf file. Did the change > to your wrapper.java.command value solve the problem for you? > > Cheers, > Leif > > On Tue, Mar 24, 2009 at 10:08 PM, ejml <eli...@gm...> wrote: >> >> Hi Leif, >> >> I setted the wrapper.java.command to avoid problems with my path. I send >> you >> my wrapper.conf. >> >> Greetings!! >> >> http://www.nabble.com/file/p22680034/wrapper.conf wrapper.conf >> Leif Mortenson-3 wrote: >>> >>> Elias, >>> 1) So you are specifying the Java to run in your wrapper.conf file so >>> we are sure that it is always using the correct JVM? >>> Just to rule out a particular problem in my mind, could you please set >>> the wrapper.java.command.loglevel=INFO property in your wrapper.conf >>> file and then post the generated command line when you run as a >>> service? I want to make 100% sure that you are running the correct >>> JVM. >>> >>> In your original post, your command line was this: >>> --- >>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>> --- >>> Notice that the java being run is not the same as when you run in a >>> console. If this is still the case then this is most likely the cause >>> of your problems. >>> >>> If your java command is specified as follows then it will searched for >>> on the PATH. This is not very reliable. >>> wrapper.java.command=java >>> The PATH when run as a service will most likely be quite different. >>> >>> I strongly suggest using one of the following: >>> wrapper.java.command=%JAVA_HOME%/bin/java >>> >>> This second option is most likely even better because it appears that >>> your application includes its own JRE. The path is relative to the >>> location of the wrapper.exe: >>> wrapper.java.command=../jre/bin/java >>> >>> 2) Please post your wrapper.conf file as a an attachment. >>> >>> Cheers, >>> Leif >>> >>> On Tue, Mar 24, 2009 at 1:50 AM, ejml <eli...@gm...> wrote: >>>> >>>> Sorry Leif, >>>> >>>> False Alarm, it still fails when it's configured like service. >>>> >>>> Greetings!!. >>>> >>>> ejml wrote: >>>>> >>>>> Hello Leif, >>>>> >>>>> My answers: >>>>> >>>>> 1) I have run the service in console mode with the command: >>>>> wrapper.exe >>>>> -c >>>>> ../conf/wrapper.conf and it works fine. >>>>> >>>>> 2) The command that I use to run the application when it works is: >>>>> >>>>> "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" >>>>> -Djava.library.path="../lib" -classpath >>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos >>>>> de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de >>>>> programa/jacob-1.14/jacob.jar;C:/Archivos de >>>>> programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de >>>>> programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de >>>>> programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de >>>>> programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos >>>>> de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos de >>>>> programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" >>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>> >>>>> This is the same effect that I execute: wrapper.exe -c >>>>> ../conf/wrapper.conf >>>>> >>>>> 3) I don't find win32com.dll, I have searched in sun and RXTX and the >>>>> new >>>>> versions not contain win32com.dll. >>>>> >>>>> Thanks and greetings!!. >>>>> >>>>> Leif Mortenson-2 wrote: >>>>>> >>>>>> Elias, >>>>>> Can you answer a few questions? >>>>>> >>>>>> 1) You have said that it fails when run as a service, but that it >>>>>> works from the command line. Have you tried running under the >>>>>> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >>>>>> ..¥conf¥wrapper.conf >>>>>> What happens? >>>>>> >>>>>> 2) Please post the java command line you are using when it works, and >>>>>> the one generated by the Wrapper. You can get the command line >>>>>> generated by the Wrapper by running in debug mode or by setting >>>>>> wrapper.java.command.loglevel=INFO >>>>>> >>>>>> 2) Have you seen the FAQ entry on this subject? >>>>>> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >>>>>> The win32com.dll needs to be on your java library path. By default, >>>>>> Java searches the PATH, but when running under the Wrapper, this is >>>>>> disabled because a library path is specified. It is necessary to add >>>>>> the location of win32com.dll to your library path in the wrapper.conf >>>>>> file. >>>>>> >>>>>> Cheers, >>>>>> Leif >>>>>> >>>>>> 2009/3/20 Elías Manchón López <eli...@gm...>: >>>>>>> Hi Leif, >>>>>>> >>>>>>> The problem was the creation of instance of the class wrap by >>>>>>> WrapperListener. Now I haven't problem with the start of Service. >>>>>>> But >>>>>>> it's >>>>>>> not work yet. I think that the problem is very difficult of resolve. >>>>>>> Although my level of English not is very good, I will try to explain >>>>>>> the >>>>>>> better possible for if you can help me. >>>>>>> >>>>>>> My application is made with Spring Framework. This application use >>>>>>> Jetty >>>>>>> embedded to publish it through 8080 port and use the remote feature >>>>>>> of >>>>>>> Spring to the web server can do request to it. This application is >>>>>>> communicated with my ERP throught COM+ and translate the request of >>>>>>> web >>>>>>> server to my ERP using JACOB >>>>>>> (http://sourceforge.net/projects/jacob-project/). >>>>>>> >>>>>>> When I use Java Service Wrapper, I can see that I have problems with >>>>>>> the >>>>>>> Initialization of COM Object, and I get NullPointer to object >>>>>>> instantiated >>>>>>> with JACOB. I thought that problem was by permission on the COM of >>>>>>> Microsoft, but I checked this issue and there isn't problems. As >>>>>>> well >>>>>>> as, If >>>>>>> I run my application throught command line, with the same command >>>>>>> that >>>>>>> Java >>>>>>> Service Wrapper and using the same jar packet, the curious is that >>>>>>> it >>>>>>> works >>>>>>> fine. >>>>>>> >>>>>>> I don't know to think, I don't know if it is problem of COM+ or If >>>>>>> it >>>>>>> is >>>>>>> problem of Java Service Wrapper?. Could you give me some >>>>>>> indication?. >>>>>>> >>>>>>> Thanks again!!. >>>>>>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>>>>>> >>>>>>>> Elias, >>>>>>>> What does the content of your WrapperListener.start method look >>>>>>>> like? >>>>>>>> >>>>>>>> If you create a new thread, it will be non-daemon unless you >>>>>>>> specifically call the thread.setDaemon(true) method. If you are >>>>>>>> using >>>>>>>> existing class to start your application then it will be more >>>>>>>> difficult to check. One solution is to add a wait for 1 second at >>>>>>>> the end of your start method then call >>>>>>>> WrapperManager.requestThreadDump(). That will let you see all of >>>>>>>> your >>>>>>>> threads as well as see easily which have their daemon flag set. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Leif >>>>>> >>>>>> (snip) > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22681851.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: ejml <eli...@gm...> - 2009-03-24 15:12:59
|
The problem is that the service not is capable to access at COM and the same programa execution throught console is capable. When It runs in console mode, I suppose that it uses the user credentials logged. When it runs in service mode what is the credentials that it assumes... the service account?. Thanks again! ejml wrote: > > Leif, > I have the same wrapper.java.command that there is configured in > wrapper.conf, but it doesn't work like service yet. The only thing is... > Could some problem with the service installer?. I used the example bat > files. > > Leif Mortenson-2 wrote: >> >> Elias, >> I do not see any problems with your wrapper.conf file. Did the change >> to your wrapper.java.command value solve the problem for you? >> >> Cheers, >> Leif >> >> On Tue, Mar 24, 2009 at 10:08 PM, ejml <eli...@gm...> wrote: >>> >>> Hi Leif, >>> >>> I setted the wrapper.java.command to avoid problems with my path. I send >>> you >>> my wrapper.conf. >>> >>> Greetings!! >>> >>> http://www.nabble.com/file/p22680034/wrapper.conf wrapper.conf >>> Leif Mortenson-3 wrote: >>>> >>>> Elias, >>>> 1) So you are specifying the Java to run in your wrapper.conf file so >>>> we are sure that it is always using the correct JVM? >>>> Just to rule out a particular problem in my mind, could you please set >>>> the wrapper.java.command.loglevel=INFO property in your wrapper.conf >>>> file and then post the generated command line when you run as a >>>> service? I want to make 100% sure that you are running the correct >>>> JVM. >>>> >>>> In your original post, your command line was this: >>>> --- >>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>> --- >>>> Notice that the java being run is not the same as when you run in a >>>> console. If this is still the case then this is most likely the cause >>>> of your problems. >>>> >>>> If your java command is specified as follows then it will searched for >>>> on the PATH. This is not very reliable. >>>> wrapper.java.command=java >>>> The PATH when run as a service will most likely be quite different. >>>> >>>> I strongly suggest using one of the following: >>>> wrapper.java.command=%JAVA_HOME%/bin/java >>>> >>>> This second option is most likely even better because it appears that >>>> your application includes its own JRE. The path is relative to the >>>> location of the wrapper.exe: >>>> wrapper.java.command=../jre/bin/java >>>> >>>> 2) Please post your wrapper.conf file as a an attachment. >>>> >>>> Cheers, >>>> Leif >>>> >>>> On Tue, Mar 24, 2009 at 1:50 AM, ejml <eli...@gm...> wrote: >>>>> >>>>> Sorry Leif, >>>>> >>>>> False Alarm, it still fails when it's configured like service. >>>>> >>>>> Greetings!!. >>>>> >>>>> ejml wrote: >>>>>> >>>>>> Hello Leif, >>>>>> >>>>>> My answers: >>>>>> >>>>>> 1) I have run the service in console mode with the command: >>>>>> wrapper.exe >>>>>> -c >>>>>> ../conf/wrapper.conf and it works fine. >>>>>> >>>>>> 2) The command that I use to run the application when it works is: >>>>>> >>>>>> "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" >>>>>> -Djava.library.path="../lib" -classpath >>>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos >>>>>> de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de >>>>>> programa/jacob-1.14/jacob.jar;C:/Archivos de >>>>>> programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de >>>>>> programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de >>>>>> programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de >>>>>> programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos >>>>>> de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos >>>>>> de >>>>>> programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" >>>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>>> >>>>>> This is the same effect that I execute: wrapper.exe -c >>>>>> ../conf/wrapper.conf >>>>>> >>>>>> 3) I don't find win32com.dll, I have searched in sun and RXTX and the >>>>>> new >>>>>> versions not contain win32com.dll. >>>>>> >>>>>> Thanks and greetings!!. >>>>>> >>>>>> Leif Mortenson-2 wrote: >>>>>>> >>>>>>> Elias, >>>>>>> Can you answer a few questions? >>>>>>> >>>>>>> 1) You have said that it fails when run as a service, but that it >>>>>>> works from the command line. Have you tried running under the >>>>>>> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >>>>>>> ..¥conf¥wrapper.conf >>>>>>> What happens? >>>>>>> >>>>>>> 2) Please post the java command line you are using when it works, >>>>>>> and >>>>>>> the one generated by the Wrapper. You can get the command line >>>>>>> generated by the Wrapper by running in debug mode or by setting >>>>>>> wrapper.java.command.loglevel=INFO >>>>>>> >>>>>>> 2) Have you seen the FAQ entry on this subject? >>>>>>> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >>>>>>> The win32com.dll needs to be on your java library path. By default, >>>>>>> Java searches the PATH, but when running under the Wrapper, this is >>>>>>> disabled because a library path is specified. It is necessary to >>>>>>> add >>>>>>> the location of win32com.dll to your library path in the >>>>>>> wrapper.conf >>>>>>> file. >>>>>>> >>>>>>> Cheers, >>>>>>> Leif >>>>>>> >>>>>>> 2009/3/20 Elías Manchón López <eli...@gm...>: >>>>>>>> Hi Leif, >>>>>>>> >>>>>>>> The problem was the creation of instance of the class wrap by >>>>>>>> WrapperListener. Now I haven't problem with the start of Service. >>>>>>>> But >>>>>>>> it's >>>>>>>> not work yet. I think that the problem is very difficult of >>>>>>>> resolve. >>>>>>>> Although my level of English not is very good, I will try to >>>>>>>> explain >>>>>>>> the >>>>>>>> better possible for if you can help me. >>>>>>>> >>>>>>>> My application is made with Spring Framework. This application use >>>>>>>> Jetty >>>>>>>> embedded to publish it through 8080 port and use the remote feature >>>>>>>> of >>>>>>>> Spring to the web server can do request to it. This application is >>>>>>>> communicated with my ERP throught COM+ and translate the request of >>>>>>>> web >>>>>>>> server to my ERP using JACOB >>>>>>>> (http://sourceforge.net/projects/jacob-project/). >>>>>>>> >>>>>>>> When I use Java Service Wrapper, I can see that I have problems >>>>>>>> with >>>>>>>> the >>>>>>>> Initialization of COM Object, and I get NullPointer to object >>>>>>>> instantiated >>>>>>>> with JACOB. I thought that problem was by permission on the COM of >>>>>>>> Microsoft, but I checked this issue and there isn't problems. As >>>>>>>> well >>>>>>>> as, If >>>>>>>> I run my application throught command line, with the same command >>>>>>>> that >>>>>>>> Java >>>>>>>> Service Wrapper and using the same jar packet, the curious is that >>>>>>>> it >>>>>>>> works >>>>>>>> fine. >>>>>>>> >>>>>>>> I don't know to think, I don't know if it is problem of COM+ or If >>>>>>>> it >>>>>>>> is >>>>>>>> problem of Java Service Wrapper?. Could you give me some >>>>>>>> indication?. >>>>>>>> >>>>>>>> Thanks again!!. >>>>>>>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>>>>>>> >>>>>>>>> Elias, >>>>>>>>> What does the content of your WrapperListener.start method look >>>>>>>>> like? >>>>>>>>> >>>>>>>>> If you create a new thread, it will be non-daemon unless you >>>>>>>>> specifically call the thread.setDaemon(true) method. If you are >>>>>>>>> using >>>>>>>>> existing class to start your application then it will be more >>>>>>>>> difficult to check. One solution is to add a wait for 1 second >>>>>>>>> at >>>>>>>>> the end of your start method then call >>>>>>>>> WrapperManager.requestThreadDump(). That will let you see all of >>>>>>>>> your >>>>>>>>> threads as well as see easily which have their daemon flag set. >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> Leif >>>>>>> >>>>>>> (snip) >> >> ------------------------------------------------------------------------------ >> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >> easily build your RIAs with Flex Builder, the Eclipse(TM)based >> development >> software that enables intelligent coding and step-through debugging. >> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22682593.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: ejml <eli...@gm...> - 2009-03-24 15:39:01
|
wrapper.exe -c ../conf/wrapper.conf works fine. wrapper.exe -i ../conf/wrapper.conf: 1) It installs the service 2) It runs without problem 3) When I do the first request my COM Api return null. Here is the problem. I think that it's problem with the permission. ejml wrote: > > The problem is that the service not is capable to access at COM and the > same programa execution throught console is capable. When It runs in > console mode, I suppose that it uses the user credentials logged. When it > runs in service mode what is the credentials that it assumes... the > service account?. > > Thanks again! > > > ejml wrote: >> >> Leif, >> I have the same wrapper.java.command that there is configured in >> wrapper.conf, but it doesn't work like service yet. The only thing is... >> Could some problem with the service installer?. I used the example bat >> files. >> >> Leif Mortenson-2 wrote: >>> >>> Elias, >>> I do not see any problems with your wrapper.conf file. Did the change >>> to your wrapper.java.command value solve the problem for you? >>> >>> Cheers, >>> Leif >>> >>> On Tue, Mar 24, 2009 at 10:08 PM, ejml <eli...@gm...> wrote: >>>> >>>> Hi Leif, >>>> >>>> I setted the wrapper.java.command to avoid problems with my path. I >>>> send you >>>> my wrapper.conf. >>>> >>>> Greetings!! >>>> >>>> http://www.nabble.com/file/p22680034/wrapper.conf wrapper.conf >>>> Leif Mortenson-3 wrote: >>>>> >>>>> Elias, >>>>> 1) So you are specifying the Java to run in your wrapper.conf file so >>>>> we are sure that it is always using the correct JVM? >>>>> Just to rule out a particular problem in my mind, could you please set >>>>> the wrapper.java.command.loglevel=INFO property in your wrapper.conf >>>>> file and then post the generated command line when you run as a >>>>> service? I want to make 100% sure that you are running the correct >>>>> JVM. >>>>> >>>>> In your original post, your command line was this: >>>>> --- >>>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>> --- >>>>> Notice that the java being run is not the same as when you run in a >>>>> console. If this is still the case then this is most likely the cause >>>>> of your problems. >>>>> >>>>> If your java command is specified as follows then it will searched for >>>>> on the PATH. This is not very reliable. >>>>> wrapper.java.command=java >>>>> The PATH when run as a service will most likely be quite different. >>>>> >>>>> I strongly suggest using one of the following: >>>>> wrapper.java.command=%JAVA_HOME%/bin/java >>>>> >>>>> This second option is most likely even better because it appears that >>>>> your application includes its own JRE. The path is relative to the >>>>> location of the wrapper.exe: >>>>> wrapper.java.command=../jre/bin/java >>>>> >>>>> 2) Please post your wrapper.conf file as a an attachment. >>>>> >>>>> Cheers, >>>>> Leif >>>>> >>>>> On Tue, Mar 24, 2009 at 1:50 AM, ejml <eli...@gm...> wrote: >>>>>> >>>>>> Sorry Leif, >>>>>> >>>>>> False Alarm, it still fails when it's configured like service. >>>>>> >>>>>> Greetings!!. >>>>>> >>>>>> ejml wrote: >>>>>>> >>>>>>> Hello Leif, >>>>>>> >>>>>>> My answers: >>>>>>> >>>>>>> 1) I have run the service in console mode with the command: >>>>>>> wrapper.exe >>>>>>> -c >>>>>>> ../conf/wrapper.conf and it works fine. >>>>>>> >>>>>>> 2) The command that I use to run the application when it works is: >>>>>>> >>>>>>> "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" >>>>>>> -Djava.library.path="../lib" -classpath >>>>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos >>>>>>> de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de >>>>>>> programa/jacob-1.14/jacob.jar;C:/Archivos de >>>>>>> programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de >>>>>>> programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de >>>>>>> programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de >>>>>>> programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos >>>>>>> de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos >>>>>>> de >>>>>>> programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" >>>>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>>>> >>>>>>> This is the same effect that I execute: wrapper.exe -c >>>>>>> ../conf/wrapper.conf >>>>>>> >>>>>>> 3) I don't find win32com.dll, I have searched in sun and RXTX and >>>>>>> the >>>>>>> new >>>>>>> versions not contain win32com.dll. >>>>>>> >>>>>>> Thanks and greetings!!. >>>>>>> >>>>>>> Leif Mortenson-2 wrote: >>>>>>>> >>>>>>>> Elias, >>>>>>>> Can you answer a few questions? >>>>>>>> >>>>>>>> 1) You have said that it fails when run as a service, but that it >>>>>>>> works from the command line. Have you tried running under the >>>>>>>> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >>>>>>>> ..¥conf¥wrapper.conf >>>>>>>> What happens? >>>>>>>> >>>>>>>> 2) Please post the java command line you are using when it works, >>>>>>>> and >>>>>>>> the one generated by the Wrapper. You can get the command line >>>>>>>> generated by the Wrapper by running in debug mode or by setting >>>>>>>> wrapper.java.command.loglevel=INFO >>>>>>>> >>>>>>>> 2) Have you seen the FAQ entry on this subject? >>>>>>>> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >>>>>>>> The win32com.dll needs to be on your java library path. By >>>>>>>> default, >>>>>>>> Java searches the PATH, but when running under the Wrapper, this is >>>>>>>> disabled because a library path is specified. It is necessary to >>>>>>>> add >>>>>>>> the location of win32com.dll to your library path in the >>>>>>>> wrapper.conf >>>>>>>> file. >>>>>>>> >>>>>>>> Cheers, >>>>>>>> Leif >>>>>>>> >>>>>>>> 2009/3/20 Elías Manchón López <eli...@gm...>: >>>>>>>>> Hi Leif, >>>>>>>>> >>>>>>>>> The problem was the creation of instance of the class wrap by >>>>>>>>> WrapperListener. Now I haven't problem with the start of Service. >>>>>>>>> But >>>>>>>>> it's >>>>>>>>> not work yet. I think that the problem is very difficult of >>>>>>>>> resolve. >>>>>>>>> Although my level of English not is very good, I will try to >>>>>>>>> explain >>>>>>>>> the >>>>>>>>> better possible for if you can help me. >>>>>>>>> >>>>>>>>> My application is made with Spring Framework. This application use >>>>>>>>> Jetty >>>>>>>>> embedded to publish it through 8080 port and use the remote >>>>>>>>> feature of >>>>>>>>> Spring to the web server can do request to it. This application is >>>>>>>>> communicated with my ERP throught COM+ and translate the request >>>>>>>>> of >>>>>>>>> web >>>>>>>>> server to my ERP using JACOB >>>>>>>>> (http://sourceforge.net/projects/jacob-project/). >>>>>>>>> >>>>>>>>> When I use Java Service Wrapper, I can see that I have problems >>>>>>>>> with >>>>>>>>> the >>>>>>>>> Initialization of COM Object, and I get NullPointer to object >>>>>>>>> instantiated >>>>>>>>> with JACOB. I thought that problem was by permission on the COM of >>>>>>>>> Microsoft, but I checked this issue and there isn't problems. As >>>>>>>>> well >>>>>>>>> as, If >>>>>>>>> I run my application throught command line, with the same command >>>>>>>>> that >>>>>>>>> Java >>>>>>>>> Service Wrapper and using the same jar packet, the curious is that >>>>>>>>> it >>>>>>>>> works >>>>>>>>> fine. >>>>>>>>> >>>>>>>>> I don't know to think, I don't know if it is problem of COM+ or If >>>>>>>>> it >>>>>>>>> is >>>>>>>>> problem of Java Service Wrapper?. Could you give me some >>>>>>>>> indication?. >>>>>>>>> >>>>>>>>> Thanks again!!. >>>>>>>>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>>>>>>>> >>>>>>>>>> Elias, >>>>>>>>>> What does the content of your WrapperListener.start method look >>>>>>>>>> like? >>>>>>>>>> >>>>>>>>>> If you create a new thread, it will be non-daemon unless you >>>>>>>>>> specifically call the thread.setDaemon(true) method. If you are >>>>>>>>>> using >>>>>>>>>> existing class to start your application then it will be more >>>>>>>>>> difficult to check. One solution is to add a wait for 1 second >>>>>>>>>> at >>>>>>>>>> the end of your start method then call >>>>>>>>>> WrapperManager.requestThreadDump(). That will let you see all of >>>>>>>>>> your >>>>>>>>>> threads as well as see easily which have their daemon flag set. >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> Leif >>>>>>>> >>>>>>>> (snip) >>> >>> ------------------------------------------------------------------------------ >>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are >>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and >>> easily build your RIAs with Flex Builder, the Eclipse(TM)based >>> development >>> software that enables intelligent coding and step-through debugging. >>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com >>> _______________________________________________ >>> Wrapper-user mailing list >>> Wra...@li... >>> https://lists.sourceforge.net/lists/listinfo/wrapper-user >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Wrapper-stopped-after-startup-tp22554782p22683145.html Sent from the Java Service Wrapper mailing list archive at Nabble.com. |
|
From: Leif M. <lei...@ta...> - 2009-03-24 16:30:11
|
Elias, When running as a service, by default, the Wrapper will run as the SYSTEM user. That is one thing that is different. I agree that it is likely a permission problem now that we have verified that the same JVM is being run. One other possibility is the PATH. Try echoing your PATH in a command prompt, then go to your wrapper.conf and add a setting like the following: set.PATH=<your full path> Then run your service to see what happens. Another thing to try is configuring your service to run as the same user you are when you are logged in. Remember that you need to uninstall and then reinstall the service after making this change. See this page on how to set the account to run as: http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.html The account will also need to be set up to be able to run services. This is described on the account page as well. I wish I understood the problem a bit more, but I have never used the COM API myself in the past. I spent some time Googling on this tonight but have not found any other clues as to what the problem might be. Could you post the full stack trace you are seeing? That might help. Cheers, Leif On Wed, Mar 25, 2009 at 12:38 AM, ejml <eli...@gm...> wrote: > > wrapper.exe -c ../conf/wrapper.conf works fine. > wrapper.exe -i ../conf/wrapper.conf: > 1) It installs the service > 2) It runs without problem > 3) When I do the first request my COM Api return null. Here is the problem. > > I think that it's problem with the permission. > > > ejml wrote: >> >> The problem is that the service not is capable to access at COM and the >> same programa execution throught console is capable. When It runs in >> console mode, I suppose that it uses the user credentials logged. When it >> runs in service mode what is the credentials that it assumes... the >> service account?. >> >> Thanks again! >> >> >> ejml wrote: >>> >>> Leif, >>> I have the same wrapper.java.command that there is configured in >>> wrapper.conf, but it doesn't work like service yet. The only thing is... >>> Could some problem with the service installer?. I used the example bat >>> files. >>> >>> Leif Mortenson-2 wrote: >>>> >>>> Elias, >>>> I do not see any problems with your wrapper.conf file. Did the change >>>> to your wrapper.java.command value solve the problem for you? >>>> >>>> Cheers, >>>> Leif >>>> >>>> On Tue, Mar 24, 2009 at 10:08 PM, ejml <eli...@gm...> wrote: >>>>> >>>>> Hi Leif, >>>>> >>>>> I setted the wrapper.java.command to avoid problems with my path. I >>>>> send you >>>>> my wrapper.conf. >>>>> >>>>> Greetings!! >>>>> >>>>> http://www.nabble.com/file/p22680034/wrapper.conf wrapper.conf >>>>> Leif Mortenson-3 wrote: >>>>>> >>>>>> Elias, >>>>>> 1) So you are specifying the Java to run in your wrapper.conf file so >>>>>> we are sure that it is always using the correct JVM? >>>>>> Just to rule out a particular problem in my mind, could you please set >>>>>> the wrapper.java.command.loglevel=INFO property in your wrapper.conf >>>>>> file and then post the generated command line when you run as a >>>>>> service? I want to make 100% sure that you are running the correct >>>>>> JVM. >>>>>> >>>>>> In your original post, your command line was this: >>>>>> --- >>>>>> "C:\WINNT\system32\java.exe" -Djava.library.path="../lib" -classpath >>>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar" >>>>>> -Dwrapper.key="fREO9IxlyMDSknzk" -Dwrapper.port=32000 >>>>>> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 >>>>>> -Dwrapper.debug="TRUE" -Dwrapper.pid=4020 -Dwrapper.version="3.3.3" >>>>>> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" >>>>>> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 >>>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>>> --- >>>>>> Notice that the java being run is not the same as when you run in a >>>>>> console. If this is still the case then this is most likely the cause >>>>>> of your problems. >>>>>> >>>>>> If your java command is specified as follows then it will searched for >>>>>> on the PATH. This is not very reliable. >>>>>> wrapper.java.command=java >>>>>> The PATH when run as a service will most likely be quite different. >>>>>> >>>>>> I strongly suggest using one of the following: >>>>>> wrapper.java.command=%JAVA_HOME%/bin/java >>>>>> >>>>>> This second option is most likely even better because it appears that >>>>>> your application includes its own JRE. The path is relative to the >>>>>> location of the wrapper.exe: >>>>>> wrapper.java.command=../jre/bin/java >>>>>> >>>>>> 2) Please post your wrapper.conf file as a an attachment. >>>>>> >>>>>> Cheers, >>>>>> Leif >>>>>> >>>>>> On Tue, Mar 24, 2009 at 1:50 AM, ejml <eli...@gm...> wrote: >>>>>>> >>>>>>> Sorry Leif, >>>>>>> >>>>>>> False Alarm, it still fails when it's configured like service. >>>>>>> >>>>>>> Greetings!!. >>>>>>> >>>>>>> ejml wrote: >>>>>>>> >>>>>>>> Hello Leif, >>>>>>>> >>>>>>>> My answers: >>>>>>>> >>>>>>>> 1) I have run the service in console mode with the command: >>>>>>>> wrapper.exe >>>>>>>> -c >>>>>>>> ../conf/wrapper.conf and it works fine. >>>>>>>> >>>>>>>> 2) The command that I use to run the application when it works is: >>>>>>>> >>>>>>>> "C:\Archivos de programa\Java\jre1.5.0_12\bin\java" >>>>>>>> -Djava.library.path="../lib" -classpath >>>>>>>> "../bin/AXConnectorServer.jar;../lib/wrappertest.jar;../lib/wrapper.jar;C:/Archivos >>>>>>>> de programa/jetty-6.1.3/lib/servlet-api-2.5-6.1.3.jar;C:/Archivos de >>>>>>>> programa/jacob-1.14/jacob.jar;C:/Archivos de >>>>>>>> programa/jetty-6.1.3/lib/jetty-6.1.3.jar;C:/Archivos de >>>>>>>> programa/jetty-6.1.3/lib/jetty-util-6.1.3.jar;C:/Archivos de >>>>>>>> programa/spring-framework-2.5.1/dist/spring.jar;C:/Archivos de >>>>>>>> programa/spring-framework-2.5.1/dist/modules/spring-context.jar;C:/Archivos >>>>>>>> de programa/spring-framework-2.5.1/dist/spring-test.jar;C:/Archivos >>>>>>>> de >>>>>>>> programa/spring-framework-2.5.1/lib/jakarta-commons/commons-logging.jar" >>>>>>>> com.gvs.AXConnectorServer.AXConnectorServiceWin32 >>>>>>>> >>>>>>>> This is the same effect that I execute: wrapper.exe -c >>>>>>>> ../conf/wrapper.conf >>>>>>>> >>>>>>>> 3) I don't find win32com.dll, I have searched in sun and RXTX and >>>>>>>> the >>>>>>>> new >>>>>>>> versions not contain win32com.dll. >>>>>>>> >>>>>>>> Thanks and greetings!!. >>>>>>>> >>>>>>>> Leif Mortenson-2 wrote: >>>>>>>>> >>>>>>>>> Elias, >>>>>>>>> Can you answer a few questions? >>>>>>>>> >>>>>>>>> 1) You have said that it fails when run as a service, but that it >>>>>>>>> works from the command line. Have you tried running under the >>>>>>>>> Wrapper in console mode? Ie by running as follows: wrapper.exe -c >>>>>>>>> ..¥conf¥wrapper.conf >>>>>>>>> What happens? >>>>>>>>> >>>>>>>>> 2) Please post the java command line you are using when it works, >>>>>>>>> and >>>>>>>>> the one generated by the Wrapper. You can get the command line >>>>>>>>> generated by the Wrapper by running in debug mode or by setting >>>>>>>>> wrapper.java.command.loglevel=INFO >>>>>>>>> >>>>>>>>> 2) Have you seen the FAQ entry on this subject? >>>>>>>>> http://wrapper.tanukisoftware.org/doc/english/faq.html#4 >>>>>>>>> The win32com.dll needs to be on your java library path. By >>>>>>>>> default, >>>>>>>>> Java searches the PATH, but when running under the Wrapper, this is >>>>>>>>> disabled because a library path is specified. It is necessary to >>>>>>>>> add >>>>>>>>> the location of win32com.dll to your library path in the >>>>>>>>> wrapper.conf >>>>>>>>> file. >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> Leif >>>>>>>>> >>>>>>>>> 2009/3/20 Elías Manchón López <eli...@gm...>: >>>>>>>>>> Hi Leif, >>>>>>>>>> >>>>>>>>>> The problem was the creation of instance of the class wrap by >>>>>>>>>> WrapperListener. Now I haven't problem with the start of Service. >>>>>>>>>> But >>>>>>>>>> it's >>>>>>>>>> not work yet. I think that the problem is very difficult of >>>>>>>>>> resolve. >>>>>>>>>> Although my level of English not is very good, I will try to >>>>>>>>>> explain >>>>>>>>>> the >>>>>>>>>> better possible for if you can help me. >>>>>>>>>> >>>>>>>>>> My application is made with Spring Framework. This application use >>>>>>>>>> Jetty >>>>>>>>>> embedded to publish it through 8080 port and use the remote >>>>>>>>>> feature of >>>>>>>>>> Spring to the web server can do request to it. This application is >>>>>>>>>> communicated with my ERP throught COM+ and translate the request >>>>>>>>>> of >>>>>>>>>> web >>>>>>>>>> server to my ERP using JACOB >>>>>>>>>> (http://sourceforge.net/projects/jacob-project/). >>>>>>>>>> >>>>>>>>>> When I use Java Service Wrapper, I can see that I have problems >>>>>>>>>> with >>>>>>>>>> the >>>>>>>>>> Initialization of COM Object, and I get NullPointer to object >>>>>>>>>> instantiated >>>>>>>>>> with JACOB. I thought that problem was by permission on the COM of >>>>>>>>>> Microsoft, but I checked this issue and there isn't problems. As >>>>>>>>>> well >>>>>>>>>> as, If >>>>>>>>>> I run my application throught command line, with the same command >>>>>>>>>> that >>>>>>>>>> Java >>>>>>>>>> Service Wrapper and using the same jar packet, the curious is that >>>>>>>>>> it >>>>>>>>>> works >>>>>>>>>> fine. >>>>>>>>>> >>>>>>>>>> I don't know to think, I don't know if it is problem of COM+ or If >>>>>>>>>> it >>>>>>>>>> is >>>>>>>>>> problem of Java Service Wrapper?. Could you give me some >>>>>>>>>> indication?. >>>>>>>>>> >>>>>>>>>> Thanks again!!. >>>>>>>>>> 2009/3/18 Leif Mortenson <lei...@ta...> >>>>>>>>>>> >>>>>>>>>>> Elias, >>>>>>>>>>> What does the content of your WrapperListener.start method look >>>>>>>>>>> like? >>>>>>>>>>> >>>>>>>>>>> If you create a new thread, it will be non-daemon unless you >>>>>>>>>>> specifically call the thread.setDaemon(true) method. If you are >>>>>>>>>>> using >>>>>>>>>>> existing class to start your application then it will be more >>>>>>>>>>> difficult to check. One solution is to add a wait for 1 second >>>>>>>>>>> at >>>>>>>>>>> the end of your start method then call >>>>>>>>>>> WrapperManager.requestThreadDump(). That will let you see all of >>>>>>>>>>> your >>>>>>>>>>> threads as well as see easily which have their daemon flag set. >>>>>>>>>>> >>>>>>>>>>> Cheers, >>>>>>>>>>> Leif >>>>>>>>> >>>>>>>>> (snip) |