|
From: Srinivas C. <sch...@si...> - 2004-03-19 18:28:15
|
Thanks for the reply leif. I exactly followed the procedures for usign = Method#1. I also able to succesfully run my application in the console = mode for more than 6 hours with out any problem. Only problem is if I = start the service. Any clue is greatly appreciated. Thanks Srinivas > -----Original Message----- > From: Srinivas Chuthari =20 > Sent: Tuesday, March 16, 2004 4:06 PM > To: 'wra...@li...' > Subject: Issue with the Service...Need help! >=20 >=20 > I am trying to run my application as a service using Wrapper. I did = all the configuration and able to run successfully in console mode. But = if you try to start it as a service, the service will be in start = pending mode ( my application actually start running ) for ever. If I = stop the service it says the service is in start pending and will = eventually stop. > What is wrong ..?=20 > C:\NetLite\bin>Wrapper.exe -t ..\conf\wrapper.conf > wrapper | Starting the SiteLite Network Monitoring service... > wrapper | Waiting to start... > wrapper | Waiting to start... > wrapper | Waiting to start... > wrapper | Waiting to start... > wrapper | Waiting to start... > C:\NetLite\bin>Wrapper.exe -p ..\conf\wrapper.conf > wrapper | The SiteLite Network Monitoring service was in the process = of startin > g. Stopping it... > wrapper | Waiting to stop... > C:\NetLite\bin>Wrapper.exe -c ..\conf\wrapper.conf > wrapper | --> Wrapper Started as Console > wrapperp | server listening on port 32003. > wrapper | Launching a JVM... > Unable to rename log file ../logs/wrapper.log to = ../logs/wrapper.log.1. File is > in use by another application. > wrapper | command: "..\jre\bin\java" -Xms3m -Xmx20m = -Djava.library.path=3D"../lib > " -classpath = "..\lib\AdventNetLogging.jar;..\lib\AdventNetSnmp.jar;..\lib\jep-2. > 24.jar;..\lib\JimiProClasses.zip;..\lib\NetLite.jar" = -Dwrapper.key=3D"a4wZ3sxr3MPB > s2_3" -Dwrapper.port=3D32003 -Dwrapper.debug=3D"TRUE" = -Dwrapper.cpu.timeout=3D"10" -Dw > rapper.jvmid=3D1 com.sitelite.netlite.model.NetLiteMonitor > wrapper | Java Virtual Machine started (PID=3D2264) > jvm 1 | 10.27.20.4 : pr0d5l : 1111 : switch : 1 > wrapper | | wrapper | CTRL-C trapped. Shutting down. > wrapper | wrapperStopProcess(0) called. > Pause reading child output to share cycles. > wrapper | Sending stop signal to JVM > jvm 1 | ifInOctets : .1.3.6.1.2.1.2.2.1.10.1 : Tabular:ifTable:1:false = : Gene > ric Event : 0.0 : NA : false > jvm 1 | In cons table name is ifTable > jvm 1 | ifInOctets : .1.3.6.1.2.1.2.2.1.10.2 : Tabular:ifTable:2:false = : Gene > ric Event : 0.0 : NA : false > jvm 1 | In cons table name is ifTable > jvm 1 | ifInOctets : .1.3.6.1.2.1.2.2.1.10.3 : Tabular:ifTable:3:false = : Gene > ric Event : 0.0 : NA : false > jvm 1 | In cons table name is ifTable >=20 >=20 |
|
From: Leif M. <le...@ta...> - 2004-03-20 03:07:19
|
Srinivas,
If you used Method #1 to integrate with the Wrapper then that is
your problem.
From the log that you sent, you have specified your main class to be:
wrapper.java.mainclass=com.sitelite.netlite.model.NetLiteMonitor
and It does not look like the WrapperManager class is being loaded and
initialized.
If your application is running correctly in console mode, then I assume
that you have
modified one or more of the timeouts to get to run for so long as it
would normally
timeout and kill the JVM after 30 seconds. Extending the startup
timeout will not
work when running as an NT service because the NT ServiceManager will think
that the service never starts.
If you are using Method #1, then you should have something like the
following in
your wrapper.conf:
wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.app.parameter.1=com.sitelite.netlite.model.NetLiteMonitor
There are other settings that need to be set, so please read the
Method #1
documentation. Be sure to start by removing the timeout properties from
your
wrapper.conf file as changing them can have unexpected results.
Posting your wrapper.conf and the wrapper.log from when you try to
start as
an NT service would have made this easier to figure out.
Cheers,
Leif
Srinivas Chuthari wrote:
> Thanks for the reply leif. I exactly followed the procedures for usign
> Method#1. I also able to succesfully run my application in the console
> mode for more than 6 hours with out any problem. Only problem is if I
> start the service. Any clue is greatly appreciated.
>
> Thanks
> Srinivas
>
> -----Original Message-----
> *From: * Srinivas Chuthari
> *Sent: * Tuesday, March 16, 2004 4:06 PM
> *To: * 'wra...@li...'
> *Subject: * Issue with the Service...Need help!
>
>
> I am trying to run my application as a service using Wrapper. I
> did all the configuration and able to run successfully in
> console mode. But if you try to start it as a service, the
> service will be in start pending mode ( my application actually
> start running ) for ever. If I stop the service it says the
> service is in start pending and will eventually stop.
>
> What is wrong ..?
> C:\NetLite\bin>Wrapper.exe -t ..\conf\wrapper.conf
> wrapper | Starting the SiteLite Network Monitoring service...
> wrapper | Waiting to start...
> wrapper | Waiting to start...
> wrapper | Waiting to start...
> wrapper | Waiting to start...
> wrapper | Waiting to start...
> C:\NetLite\bin>Wrapper.exe -p ..\conf\wrapper.conf
> wrapper | The SiteLite Network Monitoring service was in the
> process of startin
> g. Stopping it...
> wrapper | Waiting to stop...
> C:\NetLite\bin>Wrapper.exe -c ..\conf\wrapper.conf
> wrapper | --> Wrapper Started as Console
> wrapperp | server listening on port 32003.
> wrapper | Launching a JVM...
> Unable to rename log file ../logs/wrapper.log to
> ../logs/wrapper.log.1. File is
> in use by another application.
> wrapper | command: "..\jre\bin\java" -Xms3m -Xmx20m
> -Djava.library.path="../lib
> " -classpath
> "..\lib\AdventNetLogging.jar;..\lib\AdventNetSnmp.jar;..\lib\jep-2.
> 24.jar;..\lib\JimiProClasses.zip;..\lib\NetLite.jar"
> -Dwrapper.key="a4wZ3sxr3MPB
> s2_3" -Dwrapper.port=32003 -Dwrapper.debug="TRUE"
> -Dwrapper.cpu.timeout="10" -Dw
> rapper.jvmid=1 com.sitelite.netlite.model.NetLiteMonitor
> wrapper | Java Virtual Machine started (PID=2264)
> jvm 1 | 10.27.20.4 : pr0d5l : 1111 : switch : 1
> wrapper | | wrapper | CTRL-C trapped. Shutting down.
> wrapper | wrapperStopProcess(0) called.
> Pause reading child output to share cycles.
> wrapper | Sending stop signal to JVM
> jvm 1 | ifInOctets : .1.3.6.1.2.1.2.2.1.10.1 :
> Tabular:ifTable:1:false : Gene
> ric Event : 0.0 : NA : false
> jvm 1 | In cons table name is ifTable
> jvm 1 | ifInOctets : .1.3.6.1.2.1.2.2.1.10.2 :
> Tabular:ifTable:2:false : Gene
> ric Event : 0.0 : NA : false
> jvm 1 | In cons table name is ifTable
> jvm 1 | ifInOctets : .1.3.6.1.2.1.2.2.1.10.3 :
> Tabular:ifTable:3:false : Gene
> ric Event : 0.0 : NA : false
> jvm 1 | In cons table name is ifTable
>
>
|