|
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 |