|
From: Leif M. <le...@ta...> - 2006-05-11 07:48:21
|
Delphine,
According to the log, the Wrapper has called your application's main
method:
be.microresearch.scheduler.MainService and it completed without any
problems.
There are still non daemon threads running so the Wrapper believes that your
application is running normally.
Why it works in console mode, but not when run as a service? I
can't say.
But it appears to be something that is happening within your application.
You are using 1.5.0. So the jconsole tool should be available. Add the
wrapper.java.additional.1=-Dcom.sun.management.jmxremote property to
your wrapper.conf. Then rerun your service. Once it is up and in this
state,
launch jconsole and then connect to the JVM using JMX. If you look at the
threads page, you should be able to tell what your various threads are
up to.
Cheers,
Leif
Delphine VANDERMEYSBRUGGEN wrote:
> I ran net start "Indexation Application" and I set the
> wrapper.debug=true
>
> In my log there is:
>
> STATUS | wrapper | 2006/05/11 09:14:07 | --> Wrapper Started as Service
> DEBUG | wrapper | 2006/05/11 09:14:07 | Using tick timer.
> DEBUG | wrapperp | 2006/05/11 09:14:07 | server listening on port
> 32000.
> STATUS | wrapper | 2006/05/11 09:14:07 | Launching a JVM...
> DEBUG | wrapper | 2006/05/11 09:14:07 | command:
> "C:\WINDOWS\system32\java.exe" -Xmx256m -Djava.library.path="../lib"
> -classpath
> "../lib/wrappertest.jar;../lib/wrapper.jar;scheduler.jar;../lib/jdic.jar
> ;../lib/jdic_stub.jar;../lib/log4j-1.2.9.jar;../lib/lucene-core-1.9.1.ja
> r;../lib/packager.jar;../lib/PDFBox-0.7.2.jar;../lib/poi-2.5.1-final-200
> 40804.jar" -Dwrapper.key="rOdomgWCwBLd3aAS" -Dwrapper.port=32000
> -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999
> -Dwrapper.debug="TRUE" -Dwrapper.pid=768 -Dwrapper.version="3.2.0"
> -Dwrapper.native_library="wrapper" -Dwrapper.service="TRUE"
> -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=1
> org.tanukisoftware.wrapper.WrapperSimpleApp
> be.microresearch.scheduler.MainService
> DEBUG | wrapper | 2006/05/11 09:14:07 | JVM started (PID=572)
> INFO | jvm 1 | 2006/05/11 09:14:07 | WrapperManager class
> initialized by thread: main Using classloader:
> sun.misc.Launcher$AppClassLoader@a39137
> INFO | jvm 1 | 2006/05/11 09:14:07 | Wrapper (Version 3.2.0)
> http://wrapper.tanukisoftware.org
> INFO | jvm 1 | 2006/05/11 09:14:07 |
> INFO | jvm 1 | 2006/05/11 09:14:07 | Wrapper Manager: JVM #1
> INFO | jvm 1 | 2006/05/11 09:14:07 | Running a 32-bit JVM.
> INFO | jvm 1 | 2006/05/11 09:14:07 | Wrapper Manager: Registering
> shutdown hook
> INFO | jvm 1 | 2006/05/11 09:14:07 | Wrapper Manager: Using wrapper
> INFO | jvm 1 | 2006/05/11 09:14:07 | Load native library. One or
> more attempts may fail if platform specific libraries do not exist.
> INFO | jvm 1 | 2006/05/11 09:14:07 | Loading native library failed:
> wrapper-windows-x86-32.dll Cause: java.lang.UnsatisfiedLinkError: no
> wrapper-windows-x86-32 in java.library.path
> INFO | jvm 1 | 2006/05/11 09:14:07 | Loaded native library:
> wrapper.dll
> INFO | jvm 1 | 2006/05/11 09:14:07 | Calling native initialization
> method.
> INFO | jvm 1 | 2006/05/11 09:14:07 | Initializing WrapperManager
> native library.
> INFO | jvm 1 | 2006/05/11 09:14:07 | Java Executable:
> C:\WINDOWS\system32\java.exe
> INFO | jvm 1 | 2006/05/11 09:14:07 | Windows version: 5.1.2600
> INFO | jvm 1 | 2006/05/11 09:14:07 | Java Version : 1.5.0_06-b05
> Java HotSpot(TM) Client VM
> INFO | jvm 1 | 2006/05/11 09:14:07 | Java VM Vendor : Sun
> Microsystems Inc.
> INFO | jvm 1 | 2006/05/11 09:14:07 |
> INFO | jvm 1 | 2006/05/11 09:14:07 |
> WrapperManager.start(org.tanukisoftware.wrapper.WrapperSimpleApp@f0eed6,
> args[]) called by thread: main
> INFO | jvm 1 | 2006/05/11 09:14:07 | Open socket to
> wrapper...Wrapper-Connection
> INFO | jvm 1 | 2006/05/11 09:14:07 | Failed attempt to bind using
> local port 31000
> INFO | jvm 1 | 2006/05/11 09:14:07 | Failed attempt to bind using
> local port 31001
> INFO | jvm 1 | 2006/05/11 09:14:07 | Opened Socket from 31002 to
> 32000
> INFO | jvm 1 | 2006/05/11 09:14:07 | Send a packet KEY :
> rOdomgWCwBLd3aAS
> INFO | jvm 1 | 2006/05/11 09:14:07 |
> handleSocket(Socket[addr=/127.0.0.1,port=32000,localport=31002])
> DEBUG | wrapperp | 2006/05/11 09:14:07 | accepted a socket from
> 127.0.0.1 on port 31002
> DEBUG | wrapperp | 2006/05/11 09:14:07 | read a packet KEY :
> rOdomgWCwBLd3aAS
> DEBUG | wrapper | 2006/05/11 09:14:07 | Got key from JVM:
> rOdomgWCwBLd3aAS
> DEBUG | wrapperp | 2006/05/11 09:14:07 | send a packet LOW_LOG_LEVEL :
> 1
> DEBUG | wrapperp | 2006/05/11 09:14:07 | send a packet PING_TIMEOUT :
> 30
> DEBUG | wrapperp | 2006/05/11 09:14:07 | send a packet PROPERTIES :
> (Property Values)
> DEBUG | wrapper | 2006/05/11 09:14:07 | Start Application.
> DEBUG | wrapperp | 2006/05/11 09:14:07 | send a packet START : start
> INFO | jvm 1 | 2006/05/11 09:14:07 | Received a packet
> LOW_LOG_LEVEL : 1
> INFO | jvm 1 | 2006/05/11 09:14:07 | Wrapper Manager: LowLogLevel
> from Wrapper is 1
> INFO | jvm 1 | 2006/05/11 09:14:07 | Received a packet PING_TIMEOUT
> : 30
> INFO | jvm 1 | 2006/05/11 09:14:07 | Wrapper Manager: PingTimeout
> from Wrapper is 30000
> INFO | jvm 1 | 2006/05/11 09:14:07 | Received a packet PROPERTIES :
> (Property Values)
> INFO | jvm 1 | 2006/05/11 09:14:07 | Monitoring of the JVM thread
> count will be delayed for 1 seconds.
> INFO | jvm 1 | 2006/05/11 09:14:07 | Received a packet START :
> start
> INFO | jvm 1 | 2006/05/11 09:14:07 | calling listener.start()
> INFO | jvm 1 | 2006/05/11 09:14:07 | WrapperSimpleApp: start(args)
> Will wait up to 2 seconds for the main method to complete.
> INFO | jvm 1 | 2006/05/11 09:14:07 | WrapperSimpleApp: invoking
> main method
> INFO | jvm 1 | 2006/05/11 09:14:09 | Send a packet START_PENDING :
> 5000
> DEBUG | wrapperp | 2006/05/11 09:14:09 | read a packet START_PENDING :
> 5000
> DEBUG | wrapper | 2006/05/11 09:14:09 | JVM signalled a start pending
> with waitHint of 5000 millis.
> INFO | jvm 1 | 2006/05/11 09:14:10 | Send a packet START_PENDING :
> 5000
> INFO | jvm 1 | 2006/05/11 09:14:10 | WrapperSimpleApp: start(args)
> end. Main Completed=false, exitCode=null
> INFO | jvm 1 | 2006/05/11 09:14:10 | returned from listener.start()
> INFO | jvm 1 | 2006/05/11 09:14:10 | Send a packet STARTED :
> DEBUG | wrapperp | 2006/05/11 09:14:10 | read a packet START_PENDING :
> 5000
> DEBUG | wrapper | 2006/05/11 09:14:10 | JVM signalled a start pending
> with waitHint of 5000 millis.
> DEBUG | wrapperp | 2006/05/11 09:14:10 | read a packet STARTED :
> DEBUG | wrapper | 2006/05/11 09:14:10 | JVM signalled that it was
> started.
> DEBUG | wrapperp | 2006/05/11 09:14:10 | send a packet
> SERVICE_CONTROL_CODE : 4
> DEBUG | wrapper | 2006/05/11 09:14:10 | ServiceControlHandler(4)
> DEBUG | wrapper | 2006/05/11 09:14:10 | SERVICE_CONTROL_INTERROGATE
> INFO | jvm 1 | 2006/05/11 09:14:10 | Received a packet
> SERVICE_CONTROL_CODE : 4
> INFO | jvm 1 | 2006/05/11 09:14:10 | Wrapper Manager:
> ServiceControlCode from Wrapper with code 4
> DEBUG | wrapperp | 2006/05/11 09:14:13 | send a packet PING : ping
> INFO | jvm 1 | 2006/05/11 09:14:13 | Received a packet PING : ping
> INFO | jvm 1 | 2006/05/11 09:14:13 | Send a packet PING : ok
> INFO | jvm 1 | 2006/05/11 09:14:13 | Non-daemon thread count = 4 -
> 1(system) = 3
> DEBUG | wrapperp | 2006/05/11 09:14:13 | read a packet PING : ok
> DEBUG | wrapper | 2006/05/11 09:14:13 | Got ping response from JVM
>
>
> Delphine.
>
> -----Original Message-----
> From: wra...@li...
> [mailto:wra...@li...] On Behalf Of Leif
> Mortenson
> Sent: mercredi 10 mai 2006 17:07
> To: wra...@li...
> Subject: Re: [Wrapper-user] Nothing occurs when starting
>
> ***********************
> Your mail has been scanned by InterScan VirusWall.
> ***********-***********
>
>
> Delphine,
> The log you posted shows me that you ran in a console successfully
> then killed the
> app by pressing CTRL-C.
> You then launch the app as a service. It appears to be starting
> fine but that is all of
> the log that you included. Is that everything? I am not able to see
> what happens next.
> You are not getting the "Scheduler started" message.
>
> If that is your full log file, try setting the wrapper.debug=true
> property and running
> it again. Your application may be getting stuck as it attempts to
> launch the "Scheduler"
> for some reason.
>
> Cheers,
> Leif
>
> Delphine VANDERMEYSBRUGGEN wrote:
>
>> In my log file there is:
>>
>> STATUS | wrapper | 2006/05/10 16:53:44 | --> Wrapper Started as
>>
> Console
>
>> STATUS | wrapper | 2006/05/10 16:53:44 | Launching a JVM...
>> INFO | jvm 1 | 2006/05/10 16:53:45 | Wrapper (Version 3.2.0)
>> http://wrapper.tanukisoftware.org
>> INFO | jvm 1 | 2006/05/10 16:53:45 |
>> INFO | jvm 1 | 2006/05/10 16:53:47 | Scheduler started
>>
> (indexation
>
>> begin)
>> STATUS | wrapper | 2006/05/10 16:54:01 | CTRL-C trapped. Shutting
>> down.
>> STATUS | wrapper | 2006/05/10 16:54:03 | <-- Wrapper Stopped
>> STATUS | wrapper | 2006/05/10 16:54:43 | --> Wrapper Started as
>>
> Service
>
>> STATUS | wrapper | 2006/05/10 16:54:43 | Launching a JVM...
>> INFO | jvm 1 | 2006/05/10 16:54:44 | Wrapper (Version 3.2.0)
>> http://wrapper.tanukisoftware.org
>> INFO | jvm 1 | 2006/05/10 16:54:44 |
>>
>>
>> I wrote this in command line:
>>
>> D:\DVA\Indexation\IndexationApplication\bin>App
>>
>> D:\>net start "Indexation Application"
>>
>> -----Original Message-----
>> From: wra...@li...
>> [mailto:wra...@li...] On Behalf Of Leif
>> Mortenson
>> Sent: mercredi 10 mai 2006 16:46
>> To: wra...@li...
>> Subject: Re: [Wrapper-user] Nothing occurs when starting
>>
>> ***********************
>> Your mail has been scanned by InterScan VirusWall.
>> ***********-***********
>>
>>
>> Delphine,
>> What is in your wrapper.log file?
>>
>> Cheers,
>> Leif
>>
>> Delphine VANDERMEYSBRUGGEN wrote:
>>
>>
>>> Hi,
>>>
>>> When I run the App.bat file, it works. My application runs correctly.
>>>
>>> But when I start the service using "net start MyApp" or with the
>>> wrapper.exe or when I go in the control panel and start it manually,
>>> nothing occurs. Just :
>>>
>>> The Indexation Application service is starting..
>>>
>>> The Indexation Application service was started successfully.
>>>
>>> Ok it is started but my application do not runs.
>>>
>>> Have any idea?
>>>
>>> Thanks
>>>
>>> Delphine
>>>
>>>
|