jboss eap comme service avec procrun-s
Bonjour
Je cherche à mettre mon JBOSS EAP 6.4 buildé depuis les sources en tant que service sous Windows7 64 bit grace à la procédure
http://www.mastertheboss.com/jbossas...6-as-a-service
https://blog.matthewurch.ca/?p=280#comment-13769
JBOSS en standalone demarre manuellement
Le service est installé
Mais erreur lors du demarrage en tant que Service
Pas de log JBOSS ? Une idee merci
Code:
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
|
Le service JBOSS_EAP6_SERVICE sest arrêté avec lerreur spécifique au service suivante*:
Fonction incorrecte.
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
<EventID Qualifiers="49152">7024</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x8080000000000000</Keywords>
<TimeCreated SystemTime="2016-07-29T04:17:58.921231500Z" />
<EventRecordID>27279</EventRecordID>
<Correlation />
<Execution ProcessID="976" ThreadID="6124" />
<Channel>System</Channel>
<Computer>PCSORDI</Computer>
<Security />
</System>
- <EventData>
<Data Name="param1">JBOSS_EAP6_SERVICE</Data>
<Data Name="param2">%%1</Data>
<Binary>4A0042004F00530053005F0045004100500036005F0053004500520056004900430045000000</Binary>
</EventData>
</Event> |
Le log Apache donne
Code:
1 2 3 4 5 6 7 8
|
[2016-07-30 07:57:33] [info] [ 9156] Commons Daemon procrun (1.0.15.0 64-bit) started
[2016-07-30 07:57:33] [info] [ 9156] Running 'JBOSS_EAP6_SERVICE' Service...
[2016-07-30 07:57:33] [info] [11500] Starting service...
[2016-07-30 07:57:33] [error] [11500] Failed creating java
[2016-07-30 07:57:33] [error] [11500] ServiceStart returned 1
[2016-07-30 07:57:33] [info] [ 9156] Run service finished.
[2016-07-30 07:57:33] [info] [ 9156] Commons Daemon procrun finished |
Mon JDK est un 64 bit et la version de prunsrv également
Ok apres modification du service.bat --Jvm %CG_PATH_TO_JVM%
"%SERVICE_EXEC%" "//US//%SERVICE_NAME%" --JvmOptions "%JAVA_OPTS%" --JvmMs %JVM_MS% --JvmMx %JVM_MX% --StartMode jvm --StopMode jvm --Jvm %CG_PATH_TO_JVM%
Code:
1 2 3 4 5 6 7 8 9
|
[2016-07-30 10:37:14] [info] [10504] Commons Daemon procrun (1.0.15.0 64-bit) started
[2016-07-30 10:37:15] [info] [10504] Running 'JBOSS_EAP6_SERVICE' Service...
[2016-07-30 10:37:15] [info] [ 5760] Starting service...
[2016-07-30 10:37:15] [error] [ 9916] FindClass org/jboss/modules/Main failed
[2016-07-30 10:37:15] [error] [ 5760] Failed to start Java
[2016-07-30 10:37:15] [error] [ 5760] ServiceStart returned 4
[2016-07-30 10:37:15] [info] [10504] Run service finished.
[2016-07-30 10:37:15] [info] [10504] Commons Daemon procrun finished |
Ajouté sans succes set CLASSPATH=%CLASSPATH%;C:\java\jboss-eap-6.4\bin\client\jboss-cli-client.jar