|
From: Stefan M. <ste...@ea...> - 2003-10-17 08:34:18
|
Thanks for your prompt reply
Please find attached my conf file & see below extracts from the log =
file(s)
Any help is greatly appreciated
Have set wrapper.debug=3Dtrue
****************Extract from App.bat************************************
STATUS | wrapper | 2003/10/17 08:49:51 | --> Wrapper Started as Console
DEBUG | wrapperp | 2003/10/17 08:49:51 | server listening on port =
32000.
STATUS | wrapper | 2003/10/17 08:49:52 | Launching a JVM...
DEBUG | wrapper | 2003/10/17 08:49:52 | command: "C:\Program
Files\j2sdk_nb\j2sdk1.4.2\bin\java.exe" -Xms3m -Xmx64m
-Djava.library.path=3D"C:\wrapper_win32_3.0.5/lib" -classpath
"h:/;C:\wrapper_win32_3.0.5/lib/wrapper.jar;C:\jjtds\jtds-0.5.1.jar;C:\my=
SQL
\mysql-connector-java-3.0.8-stable\mysql-connector-java-3.0.8-stable-bin.=
jar
" -Dwrapper.key=3D"vjVwlS9DPWzT8ILN" -Dwrapper.port=3D32000
-Dwrapper.debug=3D"TRUE" -Dwrapper.cpu.timeout=3D"10" =
-Dwrapper.jvmid=3D1
com.eaac.HRWrapper.HRScannerService <myParam#1>...<myParam#n>
....
Loads of other INFO/DEBUG o/p
INFO | jvm 1 | 2003/10/17 08:49:58 | scanHRForChanges
(above INFO line is expected periodic audit trail from within my app)
....
INFO | jvm 1 | 2003/10/17 08:50:06 | scanHRForChanges
STATUS | wrapper | 2003/10/17 08:50:07 | CTRL-C trapped. Shutting =
down.
DEBUG | wrapper | 2003/10/17 08:50:07 | wrapperStopProcess(0) called.
....
INFO | jvm 1 | 2003/10/17 08:50:08 | calling System.exit(0)
DEBUG | wrapper | 2003/10/17 08:50:08 | JVM exited normally.
STATUS | wrapper | 2003/10/17 08:50:08 | <-- Wrapper Stopped
****************Extract from App.bat************************************
****************Extract from log file =
InstallApp-NT.bat*********************
DEBUG | wrapper | 2003/10/17 08:52:04 | Service command:
C:\wrapper_win32_3.0.5\bin\Wrapper.exe -s =
H:\com\eaac\HRWrapper\wrapper.conf
STATUS | wrapper | 2003/10/17 08:52:05 | HR Web SSM Scanner installed.
STATUS | wrapper | 2003/10/17 09:06:00 | HR Web SSM Scanner removed.
****************Extract from log file =
InstallApp-NT.bat*********************
*************Extract from log file =
InstallApp-NT.bat************************
(after hardcoding paths in InstallApp-NT.bat to avoid Env vars)
DEBUG | wrapper | 2003/10/17 09:07:22 | Service command:
C:\wrapper_win32_3.0.5\bin\Wrapper.exe -s =
h:\com\eaac\HRWrapper\wrapper.conf
STATUS | wrapper | 2003/10/17 09:07:23 | HR Web SSM Scanner installed.
*************Extract from log file =
InstallApp-NT.bat************************
PLEASE NOTE
I have also tried your 'out-of-the-box'
TestWrapper.bat & InstallTestWrapper-NT.bat
Same result
If the InstallApp-NT.bat cannot use standard batch file commands for =
setting
up Env variables - Can you correct the example bat files=20
Regards
Stefan Maric
European Aviation Air Charter
01202 581111 x184
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...] On Behalf Of Leif
Mortenson
Sent: 2003-Oct-17 03:37
To: wra...@li...
Subject: Re: [Wrapper-user] Win 2000 Service problem
Stefan,
If your application is working as a console application, but failing =
when run as a service,
your problem is most likely related to a permissions issue or a=20
difference in the environment
variables that are available.
In any case, the first thing you should do when debugging any=20
Wrapper problem is to
look in the wrapper.log file. If nothing is obvious, try adding the=20
following property to your
wrapper.conf and then rerunning your application.
wrapper.debug=3Dtrue
This will cause the wrapper to dump, amongst other things, the full=20
java command line
used to actually launch Java. Compare the command line used to launch=20
the application
as a service versus the one used to launch in console mode.
The most common problem here is setting an environment variable in=20
the batch file
used to install and then run as a service. Environment variables set in =
the batch file
will not be available when run as a service. To do this, you need to=20
add them to the
command line used to install the Wrapper as a service. As follows:
Wrapper.exe -i ..\conf\wrapper.conf set.MY_ENV=3Dtestval
You can also define environment variables within the wrapper.conf=20
using the same
syntax.
Post back whether or not you get things working. If you are still=20
having problems,
then attach your wrapper.conf and the wrapper.log output from a SINGLE=20
run with
debug output enabled.
Cheers,
Leif
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|