|
From: Delphine V. <dv...@mi...> - 2006-05-11 08:32:00
|
When I ran my service with the app.bat, it works, I see the jvm to
connect to in the jconsole, but when I ran with net start "Indexation
Application" I don't see anything in the jconsole so I can't connect.
In fact my application is an indexing thread. The application launch a
Timer and then the thread wait for the good time to index. (maybe it may
help you to help me)
Delphine
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: jeudi 11 mai 2006 9:48
To: wra...@li...
Subject: Re: [Wrapper-user] Nothing occurs when starting
***********************
Your mail has been scanned by InterScan VirusWall.
***********-***********
Delphine,
According to the log, the Wrapper has called your application's main
method:
be.microresearch.scheduler.MainService and it completed without any=20
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=20
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=3D-Dcom.sun.management.jmxremote property to
your wrapper.conf. Then rerun your service. Once it is up and in this=20
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=20
up to.
Cheers,
Leif
Delphine VANDERMEYSBRUGGEN wrote:
> I ran net start "Indexation Application" and I set the
> wrapper.debug=3Dtrue
>
> 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=3D"../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=3D"rOdomgWCwBLd3aAS" -Dwrapper.port=3D32000
> -Dwrapper.jvm.port.min=3D31000 -Dwrapper.jvm.port.max=3D31999
> -Dwrapper.debug=3D"TRUE" -Dwrapper.pid=3D768 =
-Dwrapper.version=3D"3.2.0"
> -Dwrapper.native_library=3D"wrapper" -Dwrapper.service=3D"TRUE"
> -Dwrapper.cpu.timeout=3D"10" -Dwrapper.jvmid=3D1
> org.tanukisoftware.wrapper.WrapperSimpleApp
> be.microresearch.scheduler.MainService
> DEBUG | wrapper | 2006/05/11 09:14:07 | JVM started (PID=3D572)
> 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 |=20
> 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 |=20
> 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=3D/127.0.0.1,port=3D32000,localport=3D31002])
> 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=3Dfalse, exitCode=3Dnull
> 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 :=20
> 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 :=20
> 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 =3D =
4
-
> 1(system) =3D 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=20
> fine but that is all of
> the log that you included. Is that everything? I am not able to see=20
> what happens next.
> You are not getting the "Scheduler started" message.
>
> If that is your full log file, try setting the =
wrapper.debug=3Dtrue=20
> property and running
> it again. Your application may be getting stuck as it attempts to=20
> launch the "Scheduler"
> for some reason.
>
> Cheers,
> Leif
>
> Delphine VANDERMEYSBRUGGEN wrote:
> =20
>> In my log file there is:
>>
>> STATUS | wrapper | 2006/05/10 16:53:44 | --> Wrapper Started as
>> =20
> Console
> =20
>> 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 |=20
>> INFO | jvm 1 | 2006/05/10 16:53:47 | Scheduler started
>> =20
> (indexation
> =20
>> 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
>> =20
> Service
> =20
>> 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:
>> =20
>> =20
>>> 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=20
>>> 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
>>> =20
>>> =20
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|