|
From: Victor K. <Vic...@se...> - 2004-09-30 07:30:55
|
I'm having problems running my app as a service. The application
opens up a few sockets an logs data to file(s), nothing complicated
to go wrong some I'm assuming it is a config proplem. If anyone
can suggest anything I'd be grateful.
The output below implies my application was started correctly
but the wrapper thought it was frozen. My application works
fine when executed without the wrapper.
$wrapper -c service.conf
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | localhost: Logging in localhost:23 (attempt 1)
jvm 1 | localhost: Logged in
jvm 1 | localhost: Connecting to localhost:4001 (attempt 1)
jvm 1 | localhost: Connected
jvm 1 | localhost: Logging started
wrapper | Startup failed: Timed out waiting for a signal from the JVM.
x5
Heres my service.conf
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.classpath.1=wrapper.jar
wrapper.java.classpath.2=call-logger.jar
wrapper.java.command=java.exe
wrapper.java.library.path.1=.
wrapper.java.additional.1=uk.co.mooed.calllogger.Logger
call-logger.properties
wrapper.ntservice.displayname=FROG Call Logger
wrapper.ntservice.name=FROGCallLogger
wrapper.ntservice.description=Logs calls
wrapper.ntservice.starttype=AUTO_START
wrapper.ntservice.interactive=false
And here is my main
public static void main(String[] args) {
logger=new Logger();
logger.start();
}
Thanks for reading this,
Vic
--
Victor Kirk
Analyst
Serco Integrated Transport
Tel: +44 (0)1642 636894
Fax: +44 (0)1642 636701
--
This message, including attachments, is intended only for the use by the
person(s) to whom it is addressed. It may contain information which is
privileged and confidential. Copying or use by anybody else is not
authorised. If you are not the intended recipient, please contact the sender
as soon as possible. The views expressed in this communication may not
necessarily be the views held by Serco Integrated Transport.
|