|
From: Rodolfo W. <rwi...@gm...> - 2008-01-10 16:18:22
|
Hi, I'm configuring Java Service Wrapper to run Open AS2 as service on Windows 2003 Server. I did all needed configuration on file wrapper.conf. Running in the console, the program is working fine (running the wrapper bat file) . I installed service by running the install bat. Until here all is fine. But when a I try to run the service, the service don't start. The following is the Debug reported: STATUS | wrapper | 2007/12/19 18:24:08 | --> Wrapper Started as Service DEBUG | wrapper | 2007/12/19 18:24:08 | Using tick timer. DEBUG | wrapperp | 2007/12/19 18:24:09 | server listening on port 32000. STATUS | wrapper | 2007/12/19 18:24:09 | Launching a JVM... DEBUG | wrapper | 2007/12/19 18:24:09 | command: "C:\Program Files\Java\jre1.5.0_07\bin\java" -Djava.library.path="c:\as2\openas2- 0.9.3\bin" -classpath "c:\as2\openas2-0.9.3\bin\wrapper.jar;c:\as2\openas2- 0.9.3\bin\activation.jar;c:\as2\openas2-0.9.3\bin\mail.jar;c:\as2\openas2- 0.9.3\bin\bcprov-jdk14-125.jar;c:\as2\openas2-0.9.3\bin\bcmail-jdk14-125.jar ;c:\as2\openas2-0.9.3\bin\OpenAS2-0.9.jar;c:\as2\openas2- 0.9.3\bin\openas2-lib.jar" -Dwrapper.key="OHvcyZp4gvSEIzyu" - Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 - Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=1000 - Dwrapper.version="3.2.3" -Dwrapper.native_library="wrapper" - Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp org.openas2.app.OpenAS2Serverc:\as2\openas2- 0.9.3\config.xml DEBUG | wrapper | 2007/12/19 18:24:09 | JVM started (PID=4772) INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperManager class initialized by thread: main Using classloader: sun.misc.Launcher$AppClassLoader@a39137 INFO | jvm 1 | 2007/12/19 18:24:09 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2007/12/19 18:24:09 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved. INFO | jvm 1 | 2007/12/19 18:24:09 | INFO | jvm 1 | 2007/12/19 18:24:09 | Wrapper Manager: JVM #1 INFO | jvm 1 | 2007/12/19 18:24:09 | Running a 32-bit JVM. INFO | jvm 1 | 2007/12/19 18:24:09 | Wrapper Manager: Registering shutdown hook INFO | jvm 1 | 2007/12/19 18:24:09 | Wrapper Manager: Using wrapper INFO | jvm 1 | 2007/12/19 18:24:09 | Load native library. One or more attempts may fail if platform specific libraries do not exist. INFO | jvm 1 | 2007/12/19 18:24:09 | Loading native library failed: wrapper-windows-x86-32.dll Cause: java.lang.UnsatisfiedLinkError: no wrapper-windows-x86-32 in java.library.path INFO | jvm 1 | 2007/12/19 18:24:09 | Loaded native library: wrapper.dll INFO | jvm 1 | 2007/12/19 18:24:09 | Calling native initialization method. INFO | jvm 1 | 2007/12/19 18:24:09 | Initializing WrapperManager native library. INFO | jvm 1 | 2007/12/19 18:24:09 | Java Executable: C:\Program Files\Java\jre1.5.0_07\bin\java.exe INFO | jvm 1 | 2007/12/19 18:24:09 | Windows version: 5.2.3790 INFO | jvm 1 | 2007/12/19 18:24:09 | Java Version : 1.5.0_07-b03 Java HotSpot(TM) Client VM INFO | jvm 1 | 2007/12/19 18:24:09 | Java VM Vendor : Sun Microsystems Inc. INFO | jvm 1 | 2007/12/19 18:24:09 | INFO | jvm 1 | 2007/12/19 18:24:09 | Control event monitor thread started. INFO | jvm 1 | 2007/12/19 18:24:09 | Startup runner thread started. INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperManager.start( org.tanukisoftware.wrapper.WrapperSimpleApp@eb7859, args["c:\as2\openas2- 0.9.3\config.xml"]) called by thread: main INFO | jvm 1 | 2007/12/19 18:24:09 | Communications runner thread started. INFO | jvm 1 | 2007/12/19 18:24:09 | Open socket to wrapper...Wrapper-Connection INFO | jvm 1 | 2007/12/19 18:24:09 | Opened Socket from 31000 to 32000 INFO | jvm 1 | 2007/12/19 18:24:09 | Send a packet KEY : OHvcyZp4gvSEIzyu INFO | jvm 1 | 2007/12/19 18:24:09 | handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31000]) DEBUG | wrapperp | 2007/12/19 18:24:09 | accepted a socket from 127.0.0.1on port 31000 DEBUG | wrapperp | 2007/12/19 18:24:09 | read a packet KEY : OHvcyZp4gvSEIzyu DEBUG | wrapper | 2007/12/19 18:24:09 | Got key from JVM: OHvcyZp4gvSEIzyu DEBUG | wrapperp | 2007/12/19 18:24:09 | send a packet LOW_LOG_LEVEL : 1 DEBUG | wrapperp | 2007/12/19 18:24:09 | send a packet PING_TIMEOUT : 30 DEBUG | wrapperp | 2007/12/19 18:24:09 | send a packet PROPERTIES : (Property Values) DEBUG | wrapper | 2007/12/19 18:24:09 | Start Application. DEBUG | wrapperp | 2007/12/19 18:24:09 | send a packet START : start INFO | jvm 1 | 2007/12/19 18:24:09 | Received a packet LOW_LOG_LEVEL : 1 INFO | jvm 1 | 2007/12/19 18:24:09 | Wrapper Manager: LowLogLevel from Wrapper is 1 INFO | jvm 1 | 2007/12/19 18:24:09 | Received a packet PING_TIMEOUT : 30 INFO | jvm 1 | 2007/12/19 18:24:09 | PingTimeout from Wrapper is 30000 INFO | jvm 1 | 2007/12/19 18:24:09 | Received a packet PROPERTIES : (Property Values) INFO | jvm 1 | 2007/12/19 18:24:09 | Received a packet START : start INFO | jvm 1 | 2007/12/19 18:24:09 | calling WrapperListener.start() INFO | jvm 1 | 2007/12/19 18:24:09 | Waiting for WrapperListener.startrunner thread to complete. INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperListener.start runner thread started. INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperSimpleApp: start(args) Will wait up to 2 seconds for the main method to complete. INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperSimpleApp: invoking main method INFO | jvm 1 | 2007/12/19 18:24:09 | OpenAS2 v0.9 INFO | jvm 1 | 2007/12/19 18:24:09 | Starting Server... INFO | jvm 1 | 2007/12/19 18:24:09 | Loading configuration... INFO | jvm 1 | 2007/12/19 18:24:10 | Send a packet START_PENDING : 5000 DEBUG | wrapperp | 2007/12/19 18:24:10 | read a packet START_PENDING : 5000 DEBUG | wrapper | 2007/12/19 18:24:10 | JVM signalled a start pending with waitHint of 5000 millis. INFO | jvm 1 | 2007/12/19 18:24:10 | Loading Command Processor... INFO | jvm 1 | 2007/12/19 18:24:10 | Registering Session to Command Processor... INFO | jvm 1 | 2007/12/19 18:24:10 | Starting Active Modules... INFO | jvm 1 | 2007/12/19 18:24:10 | OpenAS2 Started INFO | jvm 1 | 2007/12/19 18:24:10 | 12/19/07 18:24:10 - OpenAS2 Started - INFO | jvm 1 | 2007/12/19 18:24:10 | org.openas2.WrappedException: java.io.IOException: The handle is invalid INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.StreamCommandProcessor.processCommand( StreamCommandProcessor.java:81) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.OpenAS2Server.start(OpenAS2Server.java:60) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.OpenAS2Server.main(OpenAS2Server.java:17) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.lang.Thread.run(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | Caused by: java.io.IOException: The handle is invalid INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.FileInputStream.readBytes(Native Method) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.FileInputStream.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedInputStream.read1(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedInputStream.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.nio.cs.StreamDecoder.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.InputStreamReader.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedReader.fill(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedReader.readLine(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedReader.readLine(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.StreamCommandProcessor.readLine(StreamCommandProcessor.java :88) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.StreamCommandProcessor.processCommand( StreamCommandProcessor.java:39) INFO | jvm 1 | 2007/12/19 18:24:10 | ... 8 more INFO | jvm 1 | 2007/12/19 18:24:10 | INFO | jvm 1 | 2007/12/19 18:24:10 | org.openas2.WrappedException: java.io.IOException: The handle is invalid INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.StreamCommandProcessor.processCommand( StreamCommandProcessor.java:81) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.OpenAS2Server.start(OpenAS2Server.java:60) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.OpenAS2Server.main(OpenAS2Server.java:17) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.lang.reflect.Method.invoke(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.lang.Thread.run(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | Caused by: java.io.IOException: The handle is invalid INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.FileInputStream.readBytes(Native Method) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.FileInputStream.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedInputStream.read1(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedInputStream.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at sun.nio.cs.StreamDecoder.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.InputStreamReader.read(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedReader.fill(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedReader.readLine(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at java.io.BufferedReader.readLine(Unknown Source) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.StreamCommandProcessor.readLine(StreamCommandProcessor.java :88) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.StreamCommandProcessor.processCommand( StreamCommandProcessor.java:39) INFO | jvm 1 | 2007/12/19 18:24:10 | ... 8 more INFO | jvm 1 | 2007/12/19 18:24:10 | 12/19/07 18:24:10 - OpenAS2 Stopped - INFO | jvm 1 | 2007/12/19 18:24:10 | OpenAS2 has shut down INFO | jvm 1 | 2007/12/19 18:24:10 | exited INFO | jvm 1 | 2007/12/19 18:24:10 | Wrapper Manager: ShutdownHook started INFO | jvm 1 | 2007/12/19 18:24:10 | WrapperManager.stop(0) called by thread: Wrapper-Shutdown-Hook INFO | jvm 1 | 2007/12/19 18:24:10 | Send a packet STOP : 0 DEBUG | wrapperp | 2007/12/19 18:24:10 | read a packet STOP : 0 DEBUG | wrapper | 2007/12/19 18:24:10 | JVM requested a shutdown. (0) DEBUG | wrapper | 2007/12/19 18:24:10 | wrapperStopProcess(0) called. DEBUG | wrapper | 2007/12/19 18:24:10 | Sending stop signal to JVM DEBUG | wrapperp | 2007/12/19 18:24:10 | send a packet STOP : NULL INFO | jvm 1 | 2007/12/19 18:24:11 | Startup runner thread stopped. INFO | jvm 1 | 2007/12/19 18:24:11 | Send a packet START_PENDING : 5000 INFO | jvm 1 | 2007/12/19 18:24:11 | WrapperSimpleApp: start(args) end. Main Completed=false, exitCode=null INFO | jvm 1 | 2007/12/19 18:24:11 | WrapperListener.start runner thread stopped. INFO | jvm 1 | 2007/12/19 18:24:11 | returned from WrapperListener.start() INFO | jvm 1 | 2007/12/19 18:24:11 | Send a packet STARTED : INFO | jvm 1 | 2007/12/19 18:24:11 | Received a packet STOP : DEBUG | wrapperp | 2007/12/19 18:24:11 | read a packet START_PENDING : 5000 DEBUG | wrapper | 2007/12/19 18:24:11 | JVM signalled a start pending with waitHint of 5000 millis. DEBUG | wrapperp | 2007/12/19 18:24:11 | read a packet STARTED : DEBUG | wrapper | 2007/12/19 18:24:11 | JVM signalled that it was started. DEBUG | wrapperp | 2007/12/19 18:24:11 | send a packet STOP : NULL INFO | jvm 1 | 2007/12/19 18:24:11 | Received a packet STOP : INFO | jvm 1 | 2007/12/19 18:24:12 | Thread, Wrapper-Shutdown-Hook, handling the shutdown process. INFO | jvm 1 | 2007/12/19 18:24:12 | calling listener.stop() INFO | jvm 1 | 2007/12/19 18:24:12 | WrapperSimpleApp: stop(0) INFO | jvm 1 | 2007/12/19 18:24:12 | returned from listener.stop() -> 0 INFO | jvm 1 | 2007/12/19 18:24:12 | shutdownJVM(0) Thread:Wrapper-Shutdown-Hook INFO | jvm 1 | 2007/12/19 18:24:12 | Send a packet STOPPED : 0 DEBUG | wrapperp | 2007/12/19 18:24:12 | read a packet STOPPED : 0 DEBUG | wrapper | 2007/12/19 18:24:12 | JVM signalled that it was stopped. INFO | jvm 1 | 2007/12/19 18:24:12 | Closing socket. DEBUG | wrapperp | 2007/12/19 18:24:12 | socket read no code (closed?). DEBUG | wrapperp | 2007/12/19 18:24:12 | server listening on port 32001. INFO | jvm 1 | 2007/12/19 18:24:12 | Wrapper Manager: ShutdownHook complete INFO | jvm 1 | 2007/12/19 18:24:12 | Server daemon shut down DEBUG | wrapper | 2007/12/19 18:24:12 | JVM process exited with a code of 0, leaving the wrapper exit code set to 0. DEBUG | wrapper | 2007/12/19 18:24:12 | JVM exited normally. STATUS | wrapper | 2007/12/19 18:24:13 | <-- Wrapper Stopped Regards, Rodolfo |
|
From: Leif M. <le...@ta...> - 2008-01-10 16:37:37
|
Rodolfo, From your log file, the Wrapper is launching your Java application correctly. But the application is throwing an error as it starts up: --- INFO | jvm 1 | 2007/12/19 18:24:10 | 12/19/07 18:24:10 - OpenAS2 Started - INFO | jvm 1 | 2007/12/19 18:24:10 | org.openas2.WrappedException: java.io.IOException: The handle is invalid INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.StreamCommandProcessor.processCommand (StreamCommandProcessor.java:81) INFO | jvm 1 | 2007/12/19 18:24:10 | at org.openas2.app.OpenAS2Server.start(OpenAS2Server.java :60) --- Without knowing more about what is happening there, it is difficult to help. Common problems when running as a service are with accessing network resources. You need to specify an account to run as to get that working. Do know what that failed handle is? Cheers, Leif Rodolfo Wittmann wrote: > > Hi, > > > > I'm configuring Java Service Wrapper to run Open AS2 as service on > Windows 2003 Server. > > > > I did all needed configuration on file wrapper.conf. Running in the > console, the program is working fine (running the wrapper bat file) . > I installed service by running the install bat. Until here all is fine. > > > > But when a I try to run the service, the service don't start. > > The following is the Debug reported: > > > > STATUS | wrapper | 2007/12/19 18:24:08 | --> Wrapper Started as Service > > DEBUG | wrapper | 2007/12/19 18:24:08 | Using tick timer. > > DEBUG | wrapperp | 2007/12/19 18:24:09 | server listening on port 32000. > > STATUS | wrapper | 2007/12/19 18:24:09 | Launching a JVM... > > DEBUG | wrapper | 2007/12/19 18:24:09 | command: "C:\Program > Files\Java\jre1.5.0_07\bin\java" - > Djava.library.path="c:\as2\openas2-0.9.3\bin" -classpath > "c:\as2\openas2-0.9.3\bin\wrapper.jar;c:\as2\openas2-0.9.3\bin\activation.jar;c:\as2\openas2-0.9.3\bin\mail.jar;c:\as2\openas2-0.9.3\bin\bcprov-jdk14-125.jar > ;c:\as2\openas2-0.9.3\bin\bcmail-jdk14-125.jar;c:\as2\openas2-0.9.3\bin\OpenAS2-0.9.jar;c:\as2\openas2-0.9.3\bin\openas2-lib.jar" > -Dwrapper.key="OHvcyZp4gvSEIzyu" -Dwrapper.port=32000 > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > -Dwrapper.debug="TRUE" -Dwrapper.pid=1000 -Dwrapper.version="3.2.3" > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > -Dwrapper.cpu.timeout="10" - Dwrapper.jvmid=1 > org.tanukisoftware.wrapper.WrapperSimpleApp > org.openas2.app.OpenAS2Server c:\as2\openas2-0.9.3\config.xml > > DEBUG | wrapper | 2007/12/19 18:24:09 | JVM started (PID=4772) > > INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperManager class > initialized by thread: main Using classloader: > sun.misc.Launcher$AppClassLoader@a39137 > <mailto:sun.misc.Launcher$AppClassLoader@a39137> > snip |
|
From: Rodolfo W. <rwi...@gm...> - 2008-01-17 18:20:33
|
Leif, I don't know what is the handle has problem. How can I indetify it ?? Regards, Rodolfo 2008/1/10, Leif Mortenson <le...@ta...>: > > Rodolfo, > From your log file, the Wrapper is launching your Java application > correctly. But the application is throwing an error as it starts up: > --- > > INFO | jvm 1 | 2007/12/19 18:24:10 | 12/19/07 18:24:10 - OpenAS2 > Started - > > INFO | jvm 1 | 2007/12/19 18:24:10 | org.openas2.WrappedException: > java.io.IOException: The handle is invalid > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > org.openas2.app.StreamCommandProcessor.processCommand > (StreamCommandProcessor.java:81) > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > org.openas2.app.OpenAS2Server.start(OpenAS2Server.java :60) > > --- > > Without knowing more about what is happening there, it is difficult > to help. Common problems when running as a service are with > accessing network resources. You need to specify an account to > run as to get that working. Do know what that failed handle is? > > Cheers, > Leif > > > Rodolfo Wittmann wrote: > > > > Hi, > > > > > > > > I'm configuring Java Service Wrapper to run Open AS2 as service on > > Windows 2003 Server. > > > > > > > > I did all needed configuration on file wrapper.conf. Running in the > > console, the program is working fine (running the wrapper bat file) . > > I installed service by running the install bat. Until here all is fine. > > > > > > > > But when a I try to run the service, the service don't start. > > > > The following is the Debug reported: > > > > > > > > STATUS | wrapper | 2007/12/19 18:24:08 | --> Wrapper Started as Service > > > > DEBUG | wrapper | 2007/12/19 18:24:08 | Using tick timer. > > > > DEBUG | wrapperp | 2007/12/19 18:24:09 | server listening on port > 32000. > > > > STATUS | wrapper | 2007/12/19 18:24:09 | Launching a JVM... > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | command: "C:\Program > > Files\Java\jre1.5.0_07\bin\java" - > > Djava.library.path="c:\as2\openas2-0.9.3\bin" -classpath > > "c:\as2\openas2-0.9.3\bin\wrapper.jar;c:\as2\openas2- > 0.9.3\bin\activation.jar;c:\as2\openas2-0.9.3\bin\mail.jar;c:\as2\openas2- > 0.9.3\bin\bcprov-jdk14-125.jar > > ;c:\as2\openas2-0.9.3\bin\bcmail-jdk14-125.jar;c:\as2\openas2- > 0.9.3\bin\OpenAS2-0.9.jar;c:\as2\openas2-0.9.3\bin\openas2-lib.jar" > > -Dwrapper.key="OHvcyZp4gvSEIzyu" -Dwrapper.port=32000 > > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > > -Dwrapper.debug="TRUE" -Dwrapper.pid=1000 -Dwrapper.version="3.2.3" > > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > > -Dwrapper.cpu.timeout="10" - Dwrapper.jvmid=1 > > org.tanukisoftware.wrapper.WrapperSimpleApp > > org.openas2.app.OpenAS2Server c:\as2\openas2-0.9.3\config.xml > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | JVM started (PID=4772) > > > > INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperManager class > > initialized by thread: main Using classloader: > > sun.misc.Launcher$AppClassLoader@a39137 > > <mailto:sun.misc.Launcher$AppClassLoader@a39137> > > > snip > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |
|
From: Leif M. <le...@ta...> - 2008-01-17 23:07:39
|
Rodolfo, Do you have the source for the org.openas2.app.StreamCommandProcessor class? I assume this is the source of that project: http://www.openas2.org/ I took a quick look at their CVS repository, but don't see that class. http://openas2.cvs.sourceforge.net/openas2/ The source distribution for the particular version you are using might be useful. Cheers, Leif Rodolfo Wittmann wrote: > Leif, > > I don't know what is the handle has problem. How can I indetify it ?? > > Regards, > Rodolfo > > > 2008/1/10, Leif Mortenson <le...@ta... > <mailto:le...@ta...>>: > > Rodolfo, > From your log file, the Wrapper is launching your Java application > correctly. But the application is throwing an error as it starts up: > --- > > INFO | jvm 1 | 2007/12/19 18:24:10 | 12/19/07 18:24:10 - OpenAS2 > Started - > > INFO | jvm 1 | 2007/12/19 18:24:10 | > org.openas2.WrappedException: > java.io.IOException: The handle is invalid > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > org.openas2.app.StreamCommandProcessor.processCommand > (StreamCommandProcessor.java:81) > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > org.openas2.app.OpenAS2Server.start(OpenAS2Server.java :60) > > --- > > Without knowing more about what is happening there, it is difficult > to help. Common problems when running as a service are with > accessing network resources. You need to specify an account to > run as to get that working. Do know what that failed handle is? > > Cheers, > Leif > > > Rodolfo Wittmann wrote: > > > > Hi, > > > > > > > > I'm configuring Java Service Wrapper to run Open AS2 as service on > > Windows 2003 Server. > > > > > > > > I did all needed configuration on file wrapper.conf. Running in the > > console, the program is working fine (running the wrapper bat > file) . > > I installed service by running the install bat. Until here all > is fine. > > > > > > > > But when a I try to run the service, the service don't start. > > > > The following is the Debug reported: > > > > > > > > STATUS | wrapper | 2007/12/19 18:24:08 | --> Wrapper Started as > Service > > > > DEBUG | wrapper | 2007/12/19 18:24:08 | Using tick timer. > > > > DEBUG | wrapperp | 2007/12/19 18:24:09 | server listening on > port 32000. > > > > STATUS | wrapper | 2007/12/19 18:24:09 | Launching a JVM... > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | command: "C:\Program > > Files\Java\jre1.5.0_07\bin\java" - > > Djava.library.path="c:\as2\openas2-0.9.3\bin" -classpath > > "c:\as2\openas2- > 0.9.3\bin\wrapper.jar;c:\as2\openas2-0.9.3\bin\activation.jar;c:\as2\openas2-0.9.3\bin\mail.jar;c:\as2\openas2-0.9.3\bin\bcprov-jdk14-125.jar > > > ;c:\as2\openas2-0.9.3\bin\bcmail-jdk14-125.jar;c:\as2\openas2-0.9.3\bin\OpenAS2-0.9.jar > ;c:\as2\openas2-0.9.3\bin\openas2-lib.jar" > > -Dwrapper.key="OHvcyZp4gvSEIzyu" -Dwrapper.port=32000 > > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > > -Dwrapper.debug="TRUE" - Dwrapper.pid=1000 -Dwrapper.version="3.2.3" > > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > > -Dwrapper.cpu.timeout="10" - Dwrapper.jvmid=1 > > org.tanukisoftware.wrapper.WrapperSimpleApp > > org.openas2.app.OpenAS2Server c:\as2\openas2-0.9.3\config.xml > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | JVM started (PID=4772) > > > > INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperManager class > > initialized by thread: main Using classloader: > > sun.misc.Launcher$AppClassLoader@a39137 > > <mailto:sun.misc.Launcher$AppClassLoader@a39137 > <mailto:sun.misc.Launcher$AppClassLoader@a39137> > > > > snip > |
|
From: Leif M. <le...@ta...> - 2008-01-19 04:11:23
|
Rodolfo, You sent me the binary class file, not the source java file. Also this is really outside the scope of "wrapper" support. But to be able to help, I would most likely need more than just the single source file. Where are you downloading the jar you are using from? What is its version? Cheers, Leif Rodolfo Wittmann wrote: > Leif, > > Attached is the source file of StreamCommandProcessor of the OpenAS2. > > Regards, > Rodolfo Wittmann > > 2008/1/17, Leif Mortenson <le...@ta... > <mailto:le...@ta...>>: > > Rodolfo, > Do you have the source for the org.openas2.app.StreamCommandProcessor > class? > > I assume this is the source of that project: http://www.openas2.org/ > > I took a quick look at their CVS repository, but don't see that class. > http://openas2.cvs.sourceforge.net/openas2/ > <http://openas2.cvs.sourceforge.net/openas2/> > > The source distribution for the particular version you are using > might be useful. > > Cheers, > Leif > > Rodolfo Wittmann wrote: > > Leif, > > > > I don't know what is the handle has problem. How can I indetify > it ?? > > > > Regards, > > Rodolfo > > > > > > 2008/1/10, Leif Mortenson <le...@ta... > <mailto:le...@ta...> > > <mailto: le...@ta... <mailto:le...@ta...>>>: > > > > Rodolfo, > > From your log file, the Wrapper is launching your Java > application > > correctly. But the application is throwing an error as it > starts up: > > --- > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | 12/19/07 18:24:10 > - OpenAS2 > > Started - > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | > > org.openas2.WrappedException : > > java.io.IOException: The handle is invalid > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > > org.openas2.app.StreamCommandProcessor.processCommand > > (StreamCommandProcessor.java :81) > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > > org.openas2.app.OpenAS2Server.start(OpenAS2Server.java :60) > > > > --- > > > > Without knowing more about what is happening there, it is > difficult > > to help. Common problems when running as a service are with > > accessing network resources. You need to specify an account to > > run as to get that working. Do know what that failed > handle is? > > > > Cheers, > > Leif > > > > > > Rodolfo Wittmann wrote: > > > > > > Hi, > > > > > > > > > > > > I'm configuring Java Service Wrapper to run Open AS2 as > service on > > > Windows 2003 Server. > > > > > > > > > > > > I did all needed configuration on file wrapper.conf. > Running in the > > > console, the program is working fine (running the wrapper bat > > file) . > > > I installed service by running the install bat. Until here all > > is fine. > > > > > > > > > > > > But when a I try to run the service, the service don't start. > > > > > > The following is the Debug reported: > > > > > > > > > > > > STATUS | wrapper | 2007/12/19 18:24:08 | --> Wrapper > Started as > > Service > > > > > > DEBUG | wrapper | 2007/12/19 18:24:08 | Using tick timer. > > > > > > DEBUG | wrapperp | 2007/12/19 18:24:09 | server listening on > > port 32000. > > > > > > STATUS | wrapper | 2007/12/19 18:24:09 | Launching a JVM... > > > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | command: "C:\Program > > > Files\Java\jre1.5.0_07\bin\java" - > > > Djava.library.path="c:\as2\openas2-0.9.3\bin" -classpath > > > "c:\as2\openas2- > > > 0.9.3\bin\wrapper.jar;c:\as2\openas2-0.9.3\bin\activation.jar;c:\as2\openas2-0.9.3\bin\mail.jar > ;c:\as2\openas2-0.9.3\bin\bcprov-jdk14-125.jar > > > > > > ;c:\as2\openas2-0.9.3\bin\bcmail-jdk14-125.jar;c:\as2\openas2-0.9.3\bin\OpenAS2-0.9.jar > > ;c:\as2\openas2-0.9.3\bin\openas2-lib.jar" > > > -Dwrapper.key="OHvcyZp4gvSEIzyu" -Dwrapper.port=32000 > > > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > > > -Dwrapper.debug="TRUE" - Dwrapper.pid=1000 > -Dwrapper.version="3.2.3" > > > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > > > -Dwrapper.cpu.timeout="10" - Dwrapper.jvmid=1 > > > org.tanukisoftware.wrapper.WrapperSimpleApp > > > org.openas2.app.OpenAS2Server c:\as2\openas2-0.9.3\config.xml > > > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | JVM started > (PID=4772) > > > > > > INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperManager class > > > initialized by thread: main Using classloader: > > > sun.misc.Launcher$AppClassLoader@a39137 > > > <mailto:sun.misc.Launcher$AppClassLoader@a39137 > <mailto:sun.misc.Launcher$AppClassLoader@a39137> > > <mailto:sun.misc.Launcher$AppClassLoader@a39137 > <mailto:sun.misc.Launcher$AppClassLoader@a39137>> > > > > > > snip > > > |
|
From: Rodolfo W. <rwi...@gm...> - 2008-01-21 11:47:15
|
Leif I'm using the version 0.9.3 of the OpenAS2. I downloaded from sourceforge website but it was 1 year ago. (http://sourceforge.net/projects/openas2/) Thank you for you help. Regards, Rodolfo 2008/1/19, Leif Mortenson <le...@ta...>: > > Rodolfo, > You sent me the binary class file, not the source java file. Also this > is really outside the scope of "wrapper" support. But to be able to > help, I would most likely need more than just the single source file. > Where are you downloading the jar you are using from? What is its > version? > > Cheers, > Leif > > Rodolfo Wittmann wrote: > > Leif, > > > > Attached is the source file of StreamCommandProcessor of the OpenAS2. > > > > Regards, > > Rodolfo Wittmann > > > > 2008/1/17, Leif Mortenson <le...@ta... > > <mailto:le...@ta...>>: > > > > Rodolfo, > > Do you have the source for the > org.openas2.app.StreamCommandProcessor > > class? > > > > I assume this is the source of that project: http://www.openas2.org/ > > > > I took a quick look at their CVS repository, but don't see that > class. > > http://openas2.cvs.sourceforge.net/openas2/ > > <http://openas2.cvs.sourceforge.net/openas2/> > > > > The source distribution for the particular version you are using > > might be useful. > > > > Cheers, > > Leif > > > > Rodolfo Wittmann wrote: > > > Leif, > > > > > > I don't know what is the handle has problem. How can I indetify > > it ?? > > > > > > Regards, > > > Rodolfo > > > > > > > > > 2008/1/10, Leif Mortenson <le...@ta... > > <mailto:le...@ta...> > > > <mailto: le...@ta... <mailto:le...@ta... > >>>: > > > > > > Rodolfo, > > > From your log file, the Wrapper is launching your Java > > application > > > correctly. But the application is throwing an error as it > > starts up: > > > --- > > > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | 12/19/07 18:24:10 > > - OpenAS2 > > > Started - > > > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | > > > org.openas2.WrappedException : > > > java.io.IOException: The handle is invalid > > > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > > > org.openas2.app.StreamCommandProcessor.processCommand > > > (StreamCommandProcessor.java :81) > > > > > > INFO | jvm 1 | 2007/12/19 18:24:10 | at > > > org.openas2.app.OpenAS2Server.start(OpenAS2Server.java :60) > > > > > > --- > > > > > > Without knowing more about what is happening there, it is > > difficult > > > to help. Common problems when running as a service are with > > > accessing network resources. You need to specify an account > to > > > run as to get that working. Do know what that failed > > handle is? > > > > > > Cheers, > > > Leif > > > > > > > > > Rodolfo Wittmann wrote: > > > > > > > > Hi, > > > > > > > > > > > > > > > > I'm configuring Java Service Wrapper to run Open AS2 as > > service on > > > > Windows 2003 Server. > > > > > > > > > > > > > > > > I did all needed configuration on file wrapper.conf. > > Running in the > > > > console, the program is working fine (running the wrapper > bat > > > file) . > > > > I installed service by running the install bat. Until here > all > > > is fine. > > > > > > > > > > > > > > > > But when a I try to run the service, the service don't > start. > > > > > > > > The following is the Debug reported: > > > > > > > > > > > > > > > > STATUS | wrapper | 2007/12/19 18:24:08 | --> Wrapper > > Started as > > > Service > > > > > > > > DEBUG | wrapper | 2007/12/19 18:24:08 | Using tick timer. > > > > > > > > DEBUG | wrapperp | 2007/12/19 18:24:09 | server listening > on > > > port 32000. > > > > > > > > STATUS | wrapper | 2007/12/19 18:24:09 | Launching a JVM... > > > > > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | command: > "C:\Program > > > > Files\Java\jre1.5.0_07\bin\java" - > > > > Djava.library.path="c:\as2\openas2-0.9.3\bin" -classpath > > > > "c:\as2\openas2- > > > > > 0.9.3\bin\wrapper.jar;c:\as2\openas2-0.9.3\bin\activation.jar > ;c:\as2\openas2-0.9.3\bin\mail.jar > > ;c:\as2\openas2-0.9.3\bin\bcprov-jdk14-125.jar > > > > > > > > > ;c:\as2\openas2-0.9.3\bin\bcmail-jdk14-125.jar;c:\as2\openas2- > 0.9.3\bin\OpenAS2-0.9.jar > > > ;c:\as2\openas2-0.9.3\bin\openas2-lib.jar" > > > > -Dwrapper.key="OHvcyZp4gvSEIzyu" -Dwrapper.port=32000 > > > > -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 > > > > -Dwrapper.debug="TRUE" - Dwrapper.pid=1000 > > -Dwrapper.version="3.2.3" > > > > -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE" > > > > -Dwrapper.cpu.timeout="10" - Dwrapper.jvmid=1 > > > > org.tanukisoftware.wrapper.WrapperSimpleApp > > > > org.openas2.app.OpenAS2Server c:\as2\openas2- > 0.9.3\config.xml > > > > > > > > DEBUG | wrapper | 2007/12/19 18:24:09 | JVM started > > (PID=4772) > > > > > > > > INFO | jvm 1 | 2007/12/19 18:24:09 | WrapperManager > class > > > > initialized by thread: main Using classloader: > > > > sun.misc.Launcher$AppClassLoader@a39137 > > > > <mailto:sun.misc.Launcher$AppClassLoader@a39137 > > <mailto:sun.misc.Launcher$AppClassLoader@a39137> > > > <mailto:sun.misc.Launcher$AppClassLoader@a39137 > > <mailto:sun.misc.Launcher$AppClassLoader@a39137>> > > > > > > > > snip > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |