|
From: Leif M. <le...@ta...> - 2009-03-06 16:38:37
|
Zeynep,
1) First let me explain the output in your commandprompt.txt file.
You have copied the Java command line generated by the wrapper as is
and are attempting to run it from a batch file or something? The
problem is that if you do that as is, the WrapperManager class will
attempt to open a control socket back to the Wrapper process. In this
case, the Wrapper process does not exist so the WrapperManager fails
and intentionally exits the JVM.
To run without the Wrapper, copy the full command line as you did, but
remove the "-Dwrapper.key=NNNN" argument. If that does not exist,
then the WrapperManager will run in a standalone mode that lets you
test without the Wrapper process.
2) The main problem is the class not found issue:
INFO | jvm 1 | 2009/03/06 13:38:55 | WrapperSimpleApp: Unable to
locate the class
com.truvo.advertiserLounge.dataProcessing.dataImport.loader.InputHandler:
java.lang.ExceptionInInitializerError
This is of course being caused because your
com.truvo.advertiserLounge.dataProcessing.dataImport.loader.InputHandler
class is not being found on the classpath. Which jar file should it
be located in? My guess is ADVLLoader.jar? I notice that that one
classpath element is "../lib/" while the others are all "../../lib/".
Could that be your problem?
Cheers,
Leif
On Fri, Mar 6, 2009 at 10:43 PM, Gunal, Zeynep <zey...@tr...> wrote:
>
>
> Hi,
>
>
>
> This subject has been kind of discussed before but I couldn’t find a
> solution in the archives.
>
>
>
> When I start the application as a service, this is the error in the log file
> (cf. wrapper.log):
>
>
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | WrapperManager Debug: Startup
> runner thread started.
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | WrapperSimpleApp: Unable to locate
> the class
> com.truvo.advertiserLounge.dataProcessing.dataImport.loader.InputHandler:
> java.lang.ExceptionInInitializerError
>
> INFO | jvm 5 | 2009/03/06 13:39:21 |
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | WrapperSimpleApp Usage:
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | java
> org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_arguments]
>
> INFO | jvm 5 | 2009/03/06 13:39:21 |
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | Where:
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | app_class: The fully
> qualified class name of the application to run.
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | app_arguments: The arguments
> that would normally be passed to the
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | application.
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | WrapperManager Debug:
> WrapperManager.stop(1) called by thread: main
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | WrapperManager Debug: Backend
> socket not connected, not sending packet STOP : 1
>
> INFO | jvm 5 | 2009/03/06 13:39:21 | WrapperManager Debug: Control
> event monitor thread started.
>
> INFO | jvm 5 | 2009/03/06 13:39:22 | WrapperManager Debug: Thread,
> main, handling the shutdown process.
>
> INFO | jvm 5 | 2009/03/06 13:39:22 | WrapperManager Debug:
> shutdownJVM(1) Thread:main
>
> INFO | jvm 5 | 2009/03/06 13:39:22 | WrapperManager Debug: Backend
> socket not connected, not sending packet STOPPED : 1
>
> INFO | jvm 5 | 2009/03/06 13:39:22 | WrapperManager Debug: calling
> System.exit(1)
>
> DEBUG | wrapper | 2009/03/06 13:39:22 | JVM process exited with a code of
> 1, setting the wrapper exit code to 1.
>
> ERROR | wrapper | 2009/03/06 13:39:22 | JVM exited while loading the
> application.
>
>
>
> When I copy/paste the java run command which is in the log file to the
> command line, the following happens (cf. commandprompt.txt):
>
>
>
> WrapperManager Debug: Control event monitor thread started.
>
> WrapperManager Debug: Startup runner thread started.
>
> WrapperManager Debug:
> WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@e2eec8,
> args[]) called by thread: main
>
> WrapperManager Debug: Communications runner thread started.
>
> WrapperManager Debug: Open socket to wrapper...Wrapper-Connection
>
> WrapperManager Error: Failed to connect to the Wrapper at port 32000.
> Cause: java.net.ConnectException: Connection refused: connect
>
>
>
> WrapperManager Error: Exiting JVM...
>
>
>
> My application runs correctly as standalone, and also with the console
> option of Wrapper (cf. commandprompt-console.txt)
>
>
>
> What is it that I am missing? I am sending you the command file
> (installADVLStatisticsService.txt.wasbat) and the config file
> (wrapper_config.properties) in case you would want to see them. I
> desperately need another pair of eyes to pinpoint the problem!
>
>
>
> Thanks for your support,
>
>
>
> Zeynep
|