|
From: Leif M. <le...@ta...> - 2003-07-03 15:27:57
|
Mirek, I see your problem. You have the following in your config file: --- # Java Additional Parameters wrapper.java.additional.1=jtapiApp.Main # Application parameters. Add parameters as needed starting from 1 #wrapper.app.parameter.1=jtapiApp.Main --- The wrapper.java.additional.n properties are used to pass arguments to the JVM itself. Is what you really want to be doing is pass the jtapiApp.Main class name as the first argument to the WrapperSimpleApp main method. This is done using the wrapper.app.parameter properties. You had the correct value commented out in your conf file, so you were close. You can see this in your log output. The JVM is being launched with the following parameters: --- java jtapiApp.Main -Xms5m -Xmx64m -Djava.library.path=../lib -classpath ../lib/wrapper.jar:../lib/wrappertest.jar -Dwrapper.key=hJEaoVKN6ELBE6dI -Dwrapper.port=1786 -Dwrapper.debug=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp --- As things are, all of the parameters meant for the JVM are being passed to your class's main method. The reason things are timing out is that the WrapperManager class is never being loaded and initialized. The WrapperSimpleApp will do this behind the scenes. After correcting the wrapper.conf file, the JVM command should look like this: --- java -Xms5m -Xmx64m -Djava.library.path=../lib -classpath ../lib/wrapper.jar:../lib/wrappertest.jar -Dwrapper.key=hJEaoVKN6ELBE6dI -Dwrapper.port=1786 -Dwrapper.debug=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperSimpleApp jtapiApp.Main --- Everything else looks fine. Let me know if you have any other problems getting things running. Cheers, Leif ms...@em... wrote: >Hello Leif, >I'm sending You my wrapper.conf and wrapper.log files. >Class "jtapiApp.Main" which I want to run is part of the jar >archive which is on the CLASSPATH. > >Cheers >Mirek > |