Bonjour!

Voilà ça fait maintenant un petit moment que je me torture pour rendre un simple jar en service windows...

J'ai déjà utilisé yajsw mais pas moyen de le faire fonctionner.
Du coup en ce moment je test avec le wrapper de tanuk software.

Ce qui est bien c'est que j'ai un log.
Ce qui est moins bien, c'est que ça ne m'aide pas à résoudre mon problème..

Après je me dit que c'est peut être tout simplement mon .conf qui est mal fait..

Si vous pouviez jeter un oeil?

Logs:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Waiting to start...
WrapperManager Debug: Thread, main, handling the shutdown process.
WrapperManager Debug: shutdownJVM(1) Thread: main
WrapperManager Debug: wait for 0 shutdown locks to be released.
WrapperManager Debug: Backend not connected, not sending packet STOPPED : 1
WrapperManager Debug: calling System.exit(1)
WrapperManager Debug: WrapperManger stopped due to System Exit
WrapperManager Debug: Control event monitor thread stopped.
DEBUG  | wrapper  | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR  | wrapper  | JVM exited while loading the application.
DEBUG  | wrapper  | Preparing to restart with mode 2.
DEBUG  | wrapper  | JVM was only running for 2 seconds leading to a failed restart count of 4.
DEBUG  | wrapper  | Waiting 5 seconds before launching another JVM.
Waiting to start...
DEBUG  | wrapper  | Magic number for file C:\Windows\system32\java.exe: 0x4d5a9000
DEBUG  | wrapper  | Startup Timeouts: wrapper.startup.timeout=30, wrapper.startup.delay.console=0, wrapper.startup.delay.service=0, wrapper.restart.delay=5
DEBUG  | wrapper  | Ping settings: wrapper.ping.interval=5, wrapper.ping.interval.logged=1, wrapper.ping.timeout=30, wrapper.ping.alert.threshold=7
DEBUG  | wrapper  | Shutdown Timeouts: wrapper.startup.timeout=30, wrapper.shutdown.timeout=15, wrapper.jvm_exit.timeout=10, wrapper.jvm_cleanup.timeout=10, wrapper.jvm_terminate.timeout=1
STATUS | wrapper  | Launching a JVM...
DEBUG  | wrapper  | Command: "C:\Windows\system32\java.exe" -Djava.library.path="../lib" -classpath "../lib/wrapper.jar;../lib/KaseServices.jar" -Dwrapper.key="JBP6otD5ThukWJ3W" -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.debug="TRUE" -Dwrapper.pid=944 -Dwrapper.version="3.5.24" -Dwrapper.native_library="wrapper" -Dwrapper.arch="x86" -Dwrapper.service="TRUE" -Dwrapper.cpu.timeout="10" -Dwrapper.jvmid=5 org.tanukisoftware.wrapper.WrapperSimpleApp
DEBUG  | wrapper  | JVM started (PID=2240)
INFO   | jvm 5    | WrapperManager Debug: WrapperManager class initialized by thread: main   Using classloader: sun.misc.Launcher$AppClassLoader@1ac04e8
INFO   | jvm 5    | WrapperManager: Initializing...
INFO   | jvm 5    | WrapperManager Debug: JVM #5
INFO   | jvm 5    | WrapperManager Debug: Running a 32-bit JVM.
INFO   | jvm 5    | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager package information:
INFO   | jvm 5    | WrapperManager Debug:   Implementation Title: org.tanukisoftware.wrapper
INFO   | jvm 5    | WrapperManager Debug:   Implementation Vendor: Tanuki Software, Ltd.
INFO   | jvm 5    | WrapperManager Debug:   Implementation Version: 3.5.24
INFO   | jvm 5    | WrapperManager Debug:   Is Sealed?: False
INFO   | jvm 5    | WrapperManager Debug: org.tanukisoftware.wrapper.WrapperManager protection domain:
INFO   | jvm 5    | WrapperManager Debug:   Location: file:/E:/Kase/wrapper-windows-x86-32-3.5.24/lib/wrapper.jar
INFO   | jvm 5    | WrapperManager Debug:     Size: 121 317
INFO   | jvm 5    | WrapperManager Debug:     MD5: 22616bed647628dc933821959313a3f2
INFO   | jvm 5    | WrapperManager Debug: Registering shutdown hook
INFO   | jvm 5    | WrapperManager Debug: Using wrapper
INFO   | jvm 5    | WrapperManager Debug: Registered MBean with Platform MBean Server: org.tanukisoftware.wrapper:type=WrapperManager
INFO   | jvm 5    | WrapperManager Debug: Load native library.  There are multiple possible file names and the first to be found will be used.  Errors loading non-existing files is normal and is only a problem if they all fail.
INFO   | jvm 5    | WrapperManager Debug:   Attempt to load native library with name: wrapper-windows-x86-32.dll  Result: no wrapper-windows-x86-32 in java.library.path
INFO   | jvm 5    | WrapperManager Debug:   Attempt to load native library with name: wrapper.dll  Result: Success!
INFO   | jvm 5    | WrapperManager Debug:   Successfully loaded native library.
INFO   | jvm 5    | WrapperManager Debug: Loaded localized resources.
INFO   | jvm 5    | WrapperManager Debug: Calling native initialization method.
INFO   | jvm 5    | WrapperJNI Debug: Initializing WrapperManager native library.
INFO   | jvm 5    | WrapperJNI Debug: Java Executable: C:\Windows\SysWOW64\java.exe
INFO   | jvm 5    | WrapperJNI Debug: Native Library: E:\Kase\wrapper-windows-x86-32-3.5.24\lib\wrapper.dll
INFO   | jvm 5    | WrapperJNI Debug: Windows version: 6.1.7601
INFO   | jvm 5    | WrapperManager Debug: Java Version   : 1.7.0_51-b13 Java HotSpot(TM) Client VM
INFO   | jvm 5    | WrapperManager Debug: Java VM Vendor : Oracle Corporation
INFO   | jvm 5    | WrapperManager Debug: OS Name        : Windows Server 2008 R2
INFO   | jvm 5    | WrapperManager Debug: OS Arch        : x86
INFO   | jvm 5    | WrapperManager Debug: 
INFO   | jvm 5    | WrapperManager Debug: Startup runner thread started.
INFO   | jvm 5    | 
INFO   | jvm 5    | WrapperManager Debug: Control event monitor thread started.WrapperSimpleApp Usage:
INFO   | jvm 5    |   java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
INFO   | jvm 5    | 
INFO   | jvm 5    | Where:
INFO   | jvm 5    |   app_class:      The fully qualified class name of the application to run.
INFO   | jvm 5    |   app_arguments:  The arguments that would normally be passed to the
INFO   | jvm 5    |                   application.
INFO   | jvm 5    | 
INFO   | jvm 5    | WrapperManager Debug: WrapperManager.stop(1) called by thread: main
INFO   | jvm 5    | WrapperManager Debug: Backend not connected, not sending packet STOP : 1
INFO   | jvm 5    | WrapperManager Debug: Pausing for 1 000ms to allow a clean shutdown...
INFO   | jvm 5    | WrapperManager Debug: Stopped checking for control events.
INFO   | jvm 5    | WrapperManager Debug: Thread, main, handling the shutdown process.
INFO   | jvm 5    | WrapperManager Debug: shutdownJVM(1) Thread: main
INFO   | jvm 5    | WrapperManager Debug: wait for 0 shutdown locks to be released.
INFO   | jvm 5    | WrapperManager Debug: Backend not connected, not sending packet STOPPED : 1
INFO   | jvm 5    | WrapperManager Debug: calling System.exit(1)
INFO   | jvm 5    | WrapperManager Debug: WrapperManger stopped due to System Exit
INFO   | jvm 5    | WrapperManager Debug: Control event monitor thread stopped.
DEBUG  | wrapper  | JVM process exited with a code of 1, setting the wrapper exit code to 1.
ERROR  | wrapper  | JVM exited while loading the application.
DEBUG  | wrapper  | Preparing to restart with mode 2.
DEBUG  | wrapper  | JVM was only running for 2 seconds leading to a failed restart count of 5.
FATAL  | wrapper  | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
FATAL  | wrapper  |   There may be a configuration problem: please check the logs.
DEBUG  | wrapperp | closing backend server.
STATUS | wrapper  | <-- Wrapper Stopped
ERROR  | wrapperm | The Kase Service service was launched, but failed to start.
ERROR  | wrapperm | Please check the log file more information: E:\Kase\wrapper-windows-x86-32-3.5.24\logs\wrapper.log
DEBUG  | wrapperm | active log file changed: ..\logs\wrapper.log
et mon wrapper.conf
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
#encoding=UTF-8
# Configuration files must begin with a line specifying the encoding
#  of the the file.
 
#********************************************************************
# Wrapper License Properties (Ignored by Community Edition)
#********************************************************************
# Professional and Standard Editions of the Wrapper require a valid
#  License Key to start.  Licenses can be purchased or a trial license
#  requested on the following pages:
# http://wrapper.tanukisoftware.com/purchase
# http://wrapper.tanukisoftware.com/trial
 
# Include file problems can be debugged by removing the first '#'
#  from the following line:
##include.debug
 
# The Wrapper will look for either of the following optional files for a
#  valid License Key.  License Key properties can optionally be included
#  directly in this configuration file.
#include ../conf/wrapper-license.conf
#include ../conf/wrapper-license-%WRAPPER_HOST_NAME%.conf
 
# The following property will output information about which License Key(s)
#  are being found, and can aid in resolving any licensing problems.
#wrapper.license.debug=TRUE
 
#********************************************************************
# Wrapper Localization
#********************************************************************
# Specify the locale which the Wrapper should use.  By default the system
#  locale is used.
#wrapper.lang=en_US # en_US or ja_JP
 
# Specify the location of the Wrapper's language resources.  If these are
#  missing, the Wrapper will default to the en_US locale.
wrapper.lang.folder=../lang
 
#********************************************************************
# Wrapper Java Properties
#********************************************************************
# Java Application
#  Locate the java binary on the system PATH:
wrapper.java.command=java
#  Specify a specific java binary:
#set.JAVA_HOME=/java/path
#wrapper.java.command=%JAVA_HOME%/bin/java
 
# Tell the Wrapper to log the full generated Java command line.
#wrapper.java.command.loglevel=INFO
 
# 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= org.tanukisoftware.wrapper.WrapperSimpleApp
 
 
# Java Classpath (include wrapper.jar)  Add class path elements as
#  needed starting from 1
wrapper.java.classpath.1=../lib/wrapper.jar
wrapper.java.classpath.2=../lib/KaseServices.jar
 
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=../lib
 
# Java Bits.  On applicable platforms, tells the JVM to run in 32 or 64-bit mode.
wrapper.java.additional.auto_bits=TRUE
 
# Java Additional Parameters
wrapper.java.additional.1=
 
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3
 
# Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=512
 
# Application parameters.  Add parameters as needed starting from 1
wrapper.app.parameter.1=
 
#********************************************************************
# Wrapper Logging Properties
#********************************************************************
# Enables Debug output from the Wrapper.
 wrapper.debug=TRUE
 
# Format of output for the console.  (See docs for formats)
wrapper.console.format=PM
 
# Log Level for console output.  (See docs for log levels)
wrapper.console.loglevel=INFO
 
# Log file to use for wrapper output logging.
wrapper.logfile=../logs/wrapper.log
 
# Format of output for the log file.  (See docs for formats)
wrapper.logfile.format=LPTM
 
# Log Level for log file output.  (See docs for log levels)
wrapper.logfile.loglevel=INFO
 
# 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 = 10 megabytes.
wrapper.logfile.maxsize=0
 
# 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=0
 
# Log Level for sys/event log output.  (See docs for log levels)
wrapper.syslog.loglevel=NONE
 
#********************************************************************
# Wrapper General Properties
#********************************************************************
# Allow for the use of non-contiguous numbered properties
wrapper.ignore_sequence_gaps=TRUE
 
# Do not start if the pid file already exists.
wrapper.pidfile.strict=TRUE
 
# Title to use when running as a console
wrapper.console.title=Kase Service
 
#********************************************************************
# Wrapper JVM Checks
#********************************************************************
# Detect DeadLocked Threads in the JVM. (Requires Standard Edition)
wrapper.check.deadlock=TRUE
wrapper.check.deadlock.interval=60
wrapper.check.deadlock.action=RESTART
wrapper.check.deadlock.output=FULL
 
# Out Of Memory detection.
#  Ignore -verbose:class output to avoid false positives.
wrapper.filter.trigger.1000=[Loaded java.lang.OutOfMemoryError
wrapper.filter.action.1000=NONE
# (Simple match)
wrapper.filter.trigger.1001=java.lang.OutOfMemoryError
# (Only match text in stack traces if -XX:+PrintClassHistogram is being used.)
#wrapper.filter.trigger.1001=Exception in thread "*" java.lang.OutOfMemoryError
#wrapper.filter.allow_wildcards.1001=TRUE
wrapper.filter.action.1001=RESTART
wrapper.filter.message.1001=The JVM has run out of memory.
 
#********************************************************************
# Wrapper Email Notifications. (Requires Professional Edition)
#********************************************************************
# Common Event Email settings.
#wrapper.event.default.email.debug=TRUE
#wrapper.event.default.email.smtp.host=<SMTP_Host>
#wrapper.event.default.email.smtp.port=25
#wrapper.event.default.email.subject=[%WRAPPER_HOSTNAME%:%WRAPPER_NAME%:%WRAPPER_EVENT_NAME%] Event Notification
#wrapper.event.default.email.sender=<Sender email>
#wrapper.event.default.email.recipient=<Recipient email>
 
# Configure the log attached to event emails.
#wrapper.event.default.email.attach_log=TRUE
#wrapper.event.default.email.maillog.lines=50
#wrapper.event.default.email.maillog.format=LPTM
#wrapper.event.default.email.maillog.loglevel=INFO
 
# Enable specific event emails.
#wrapper.event.wrapper_start.email=TRUE
#wrapper.event.jvm_prelaunch.email=TRUE
#wrapper.event.jvm_start.email=TRUE
#wrapper.event.jvm_started.email=TRUE
#wrapper.event.jvm_deadlock.email=TRUE
#wrapper.event.jvm_stop.email=TRUE
#wrapper.event.jvm_stopped.email=TRUE
#wrapper.event.jvm_restart.email=TRUE
#wrapper.event.jvm_failed_invocation.email=TRUE
#wrapper.event.jvm_max_failed_invocations.email=TRUE
#wrapper.event.jvm_kill.email=TRUE
#wrapper.event.jvm_killed.email=TRUE
#wrapper.event.jvm_unexpected_exit.email=TRUE
#wrapper.event.wrapper_stop.email=TRUE
 
# Specify custom mail content
wrapper.event.jvm_restart.email.body=The JVM was restarted.\n\nPlease check on its status.\n
 
#********************************************************************
# Wrapper Windows NT/2000/XP 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.name=Kase Service
 
# Display name of the service
wrapper.displayname=Kase Service
 
# Description of the service
wrapper.description=Gestionnaire XML Kase
 
# Service dependencies.  Add dependencies as needed starting from 1
wrapper.ntservice.dependency.1=
 
# Mode in which the service is installed.  AUTO_START, DELAY_START or DEMAND_START
wrapper.ntservice.starttype=AUTO_START
 
# Allow the service to interact with the desktop.
wrapper.ntservice.interactive=false
Un grand merci!