|
From: Leif M. <le...@ta...> - 2004-04-12 14:50:04
|
Paul,
You have stumbled upon the most common problem that new users have
with the Wrapper. It is caused by having not read the integration
section of
the documentation :-)
The message that you saw has been modified in 3.1.0 so users will now
see the following:
wrapper | Startup failed: Timed out waiting for a signal from the JVM.
wrapper |
wrapper |
------------------------------------------------------------------------
wrapper | Advice:
wrapper | The Wrapper consists of a native component as well as a set
of classes
wrapper | which run within the JVM that it launches. The Java
component of the
wrapper | Wrapper must be initialized promptly after the JVM is
launched or the
wrapper | Wrapper will timeout, as just happened. Most likely the main
class
wrapper | specified in the Wrapper configuration file is not correctly
initializing
wrapper | the Wrapper classes:
wrapper | org.tanukisoftware.wrapper.test.BackgroundThreads
wrapper | While it is possible to do so manually, the Wrapper ships
with helper
wrapper | classes to make this initialization processes automatic.
wrapper | Please review the integration section of the Wrapper's
documentation
wrapper | for the various methods which can be employed to launch an
application
wrapper | within the Wrapper:
wrapper | http://wrapper.tanukisoftware.org/doc/english/integrate.html
wrapper |
------------------------------------------------------------------------
wrapper |
wrapper | JVM did not exit on request, terminated
Also, in general I suggest running in a console until you have
things configured
correctly. There are some problems that only happen when running as a
service
but if it can't be run in a console it won't work when run as a service.
Cheers,
Leif
Goutam Paul wrote:
> Hi,
>
>
>
> Could anyone help me to solve this problem?
>
>
>
> I’m using wrapper to install a small java application as an NT Service.
>
> I successfully installed as an NT service but whenever I tried to
> start the service
>
> I always got the following error message:
>
> Service: Could not start the test Application service on
> local computer.
>
> ERROR 1053 :The service did not respond to the start or
> control request in a timely fashion.
>
>
>
> *FYI :* *I’m using JDK 1.4.2_04 on Windows XP Professional SP1.*
>
>
>
> _Below are my configuration parameters._
>
>
>
> #********************************************************************
>
> # Wrapper Properties
>
> #********************************************************************
>
> # Java Application
>
> wrapper.java.command=C:/j2sdk1.4.2_04/bin/java
>
> wrapper.java.mainclass=Test
>
> wrapper.java.classpath.1=../lib/wrapper.jar
>
> wrapper.java.classpath.2=../lib/test.jar
>
> wrapper.java.library.path.1=../lib
>
> wrapper.java.initmemory=3
>
> wrapper.java.maxmemory=64
>
> wrapper.use_system_time=FALSE
>
> wrapper.console.loglevel=INFO
>
> wrapper.logfile=../logs/wrapper.log
>
> wrapper.logfile.format=LPTM
>
> wrapper.logfile.loglevel=DEBUG
>
> wrapper.logfile.maxsize=0
>
> wrapper.logfile.maxfiles=0
>
> wrapper.syslog.loglevel=NONE
>
> wrapper.ntservice.name=Test
>
> wrapper.ntservice.displayname=Test Application
>
> wrapper.ntservice.description=Test Application
>
> wrapper.ntservice.starttype=DEMAND_START
>
> wrapper.ntservice.interactive=false
>
> wrapper.ntservice.process_priority=NORMAL
>
>
>
> _I usually got the following error message:_
>
>
>
> INFO | jvm 1 | 2004/04/12 11:34:10 | Loop no.29
>
> INFO | jvm 1 | 2004/04/12 11:34:11 | Loop no.30
>
> ERROR | wrapper | 2004/04/12 11:34:12 | Startup failed: Timed out
> waiting for signal from JVM.
>
> ERROR | wrapper | 2004/04/12 11:34:12 | Java Virtual Machine did not
> exit on request, terminated
>
> DEBUG | wrapper | 2004/04/12 11:34:12 | JVM was only running for 31
> seconds leading to a failed restart count of 1.
>
> STATUS | wrapper | 2004/04/12 11:34:18 | Launching a JVM...
>
> DEBUG | wrapper | 2004/04/12 11:34:18 | command:
> "C:\j2sdk1.4.2_04\bin\java" -Xms3m -Xmx64m
> -Djava.library.path="../lib" -classpath
> "../lib/wrapper.jar;../lib/test.jar" -Dwrapper.key="2CYAymJ5BNP0Heop"
> -Dwrapper.port=32000 -Dwrapper.debug="TRUE" -Dwrapper.service="TRUE"
> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=2 Test
>
> DEBUG | wrapper | 2004/04/12 11:34:18 | Java Virtual Machine started
> (PID=2128)
>
> INFO | jvm 2 | 2004/04/12 11:34:18 | Constructor....!
>
> INFO | jvm 2 | 2004/04/12 11:34:18 | Scheduler....!
>
> INFO | jvm 2 | 2004/04/12 11:34:19 | Loop no.1
>
> INFO | jvm 2 | 2004/04/12 11:34:20 | Loop no.2
>
>
>
>
>
>
>
> Thanks & Regards,
>
> Goutam
>
>
>
>
>
>
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.627 / Virus Database: 402 - Release Date: 3/16/2004
>
|