|
From: <ste...@di...> - 2004-01-22 10:47:59
|
Hi,
I looked around the doc and the sample and tried to have my own creation =
to word as a windows services. I started from the sample and change it =
for my app. The problem is that the sample is using a jar file as a app, =
but mine are straight .class files, should I create a .jar file ?
here is the log dump :
STATUS | wrapper | 2004/01/22 10:04:45 | --> Wrapper Started as Service
STATUS | wrapper | 2004/01/22 10:04:46 | Launching a JVM...
INFO | jvm 1 | 2004/01/22 10:04:46 | WrapperSimpleApp: Unable to =
locate the class MYXMLServer: java.lang.ClassNotFoundException: =
MYXMLServer
INFO | jvm 1 | 2004/01/22 10:04:46 |=20
INFO | jvm 1 | 2004/01/22 10:04:46 | WrapperSimpleApp Usage:
INFO | jvm 1 | 2004/01/22 10:04:46 | java =
org.tanukisoftware.wrapper.WrapperSimpleApp {app_class} [app_parameters]
INFO | jvm 1 | 2004/01/22 10:04:46 |=20
INFO | jvm 1 | 2004/01/22 10:04:46 | Where:
INFO | jvm 1 | 2004/01/22 10:04:46 | app_class: The fully =
qualified class name of the application to run.
INFO | jvm 1 | 2004/01/22 10:04:46 | app_parameters: The =
parameters that would normally be passed to the
INFO | jvm 1 | 2004/01/22 10:04:47 | application.
STATUS | wrapper | 2004/01/22 10:04:49 | <-- Wrapper Stopped
I setup the folder like this :
D:\http\XMLserveur_java -- main folder with the .class =
files of my app (my main class is MYXMLServer.class)
D:\http\XMLserveur_java\bin -- the 3 bach files, the wrapper.exe =
and the wrapper.log file =20
D:\http\XMLserveur_java\conf -- the wrapper.conf file see under =
this
D:\http\XMLserveur_java\lib -- wrapper.jar, =
wrappertest.jar(should'nt be used), Wrapper.dll and 2 jar files for me : =
activation.jar and mail.jar
here is my conf file :
#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
wrapper.java.command=3DC:\Program Files\j2sdk_nb\j2sdk1.4.2\jre\bin\java =
# Java Main class. This class must implement the WrapperListener =
interface
# or guarantee that the WrapperManager class is initialized. Helper
# classes are provided to do this for you. See the Integration section
# of the documentation for details.
wrapper.java.mainclass=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=3D../lib/wrapper.jar
# wrapper.java.classpath.2=3D../lib/wrappertest.jar
wrapper.java.classpath.2=3D../lib/activation.jar
wrapper.java.classpath.3=3D../lib/mail.jar
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=3D../lib
# Java Additional Parameters
#wrapper.java.additional.1=3D
# Initial Java Heap Size (in MB)
wrapper.java.initmemory=3D3
# Maximum Java Heap Size (in MB)
wrapper.java.maxmemory=3D64
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=3DMYXMLServer
#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Format of output for the console. (See docs for formats)
wrapper.console.format=3DPM
# Log Level for console output. (See docs for log levels)
wrapper.console.loglevel=3DINFO
# Log file to use for wrapper output logging.
wrapper.logfile=3D../logs/wrapper.log
# Format of output for the log file. (See docs for formats)
wrapper.logfile.format=3DLPTM
# Log Level for log file output. (See docs for log levels)
wrapper.logfile.loglevel=3DINFO
# Maximum size that the log file will be allowed to grow to before
# the log is rolled. Size is specified in bytes. The default value
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
# 'm' (mb) suffix. For example: 10m =3D 10 megabytes.
wrapper.logfile.maxsize=3D0
# Maximum number of rolled log files which will be allowed before old
# files are deleted. The default value of 0 implies no limit.
wrapper.logfile.maxfiles=3D0
# Log Level for sys/event log output. (See docs for log levels)
wrapper.syslog.loglevel=3DNONE
#********************************************************************
# Wrapper NT Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
# using this configuration file has been installed as a service.
# Please uninstall the service before modifying this section. The
# service can then be reinstalled.
# Name of the service
wrapper.ntservice.name=3DBINGOXMLServer
# Display name of the service
wrapper.ntservice.displayname=3DServeur Socket XML pour le BINGO
# Description of the service
wrapper.ntservice.description=3DServeur Socket XML pour le BINGO
# Service dependencies. Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=3D
# Mode in which the service is installed. AUTO_START or DEMAND_START
wrapper.ntservice.starttype=3DAUTO_START
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=3Dfalse
Thanks for any help you can provide.
St=E9phane Merle |