poidasmith / winrun4j

WinRun4J Java Application Launcher
http://winrun4j.sourceforge.net
212 stars 63 forks source link

Starting service gives 1053 #61

Open myio561 opened 10 years ago

myio561 commented 10 years ago

I registered my service from the command line using

C:\FimRoot\priceService>[info] Module Name: C:\FimRoot\priceService\priceService.exe
[info] Module INI: C:\FimRoot\priceService\priceService.ini
[info] Module Dir: C:\FimRoot\priceService\
[info] INI Dir: C:\FimRoot\priceService\
[info] Registering Service...
[info] Service startup mode: SERVICE_AUTO_START

The service is shown in the Windows Service Management Console. Then I attempt to start the service and I always get an Error 1053: service did not respond ... in a timely fashion. I downloaded DebugView and turned on the output.debug.monitor and I see the following log:

[2116] Next user
[10220] [info] Module Name: C:\FimRoot\priceService\priceService.exe
[10220] [info] Module INI: C:\FimRoot\priceService\priceService.ini
[10220] [info] Module Dir: C:\FimRoot\priceService\
[10220] [info] INI Dir: C:\FimRoot\priceService\
[10220] [info] Configured vm.location: (null)
[10220] [info] Found VM: C:\Program Files\Java\jre7\bin\server\jvm.dll
[10220] [info] Expanding Classpath: .
[10220] [info] Expanding Classpath: WEB-INF/classes
[10220] [info] Expanding Classpath: WEB-INF/lib/*
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/akka-actor_2.10-2.1.2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/commons-codec-1.5.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/config-1.0.0.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/dom4j-1.6.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/grizzled-slf4j_2.10-1.0.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/gson-2.2.4.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/guava-13.0.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/hamcrest-core-1.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jackson-annotations-2.2.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jackson-core-2.2.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jackson-databind-2.2.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jackson-module-scala_2.10-2.2.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/javax.servlet-3.0.0.v201112011016.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/javax.servlet-api-3.0.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-http-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-io-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-security-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-server-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-servlet-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-util-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-webapp-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jetty-xml-9.0.6.v20130930.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/JettyStart-1.0.0.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/joda-convert-1.2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/joda-time-2.2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/jsr305-2.0.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/juli-6.0.37.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/junit-4.11.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/juniversalchardet-1.0.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/log4j-1.2.17.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/mime-util-2.1.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/ojdbc6-11.2.0.2.0.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/paranamer-2.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/poi-3.9.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/poi-ooxml-3.9.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/poi-ooxml-schemas-3.9.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/priceService.Intf-1.0.0-SNAPSHOT.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/ProformaGenerator-0.0.1-SNAPSHOT.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/rl_2.10-0.4.4.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scala-actors-2.10.0.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scala-library-2.10.2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scala-reflect-2.10.0.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scalatest_2.10-1.9.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scalatra-common_2.10-2.2.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scalatra_2.10-2.2.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scalaz-concurrent_2.10-7.0.2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scalaz-core_2.10-7.0.2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/scalaz-effect_2.10-7.0.2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/slf4j-api-1.7.5.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/slf4j-log4j12-1.7.0.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/specs2_2.10-2.2.3.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/stax-api-1.0.1.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/WinRun4J.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/WinRun4JTest.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/xml-apis-1.0.b2.jar
[10220] [info] Expanding Classpath: C:\FimRoot\priceService\WEB-INF\lib/xmlbeans-2.3.0.jar
[10220] [info] Generated Classpath: C:\FimRoot\priceService;C:\FimRoot\priceService\WEB-INF\classes;C:\FimRoot\priceService\WEB-INF\lib\akka-actor_2.10-2.1.2.jar;C:\FimRoot\priceService\WEB-INF\lib\commons-codec-1.5.jar;C:\FimRoot\priceService\WEB-INF\lib\config-1.0.0.jar;C:\FimRoot\priceService\WEB-INF\lib\dom4j-1.6.1.jar;C:\FimRoot\priceService\WEB-INF\lib\grizzled-slf4j_2.10-1.0.1.jar;C:\FimRoot\priceService\WEB-INF\lib\gson-2.2.4.jar;C:\FimRoot\priceService\WEB-INF\lib\guava-13.0.1.jar;C:\FimRoot\priceService\WEB-INF\lib\hamcrest-core-1.3.jar;C:\FimRoot\priceService\WEB-INF\lib\jackson-annotations-2.2.3.jar;C:\FimRoot\priceService\WEB-INF\lib\jackson-core-2.2.3.jar;C:\FimRoot\priceService\WEB-INF\lib\jackson-databind-2.2.3.jar;C:\FimRoot\priceService\WEB-INF\lib\jackson-module-scala_2.10-2.2.3.jar;C:\FimRoot\priceService\WEB-INF\lib\javax.servlet-3.0.0.v201112011016.jar;C:\FimRoot\priceService\WEB-INF\lib\javax.servlet-api-3.0.1.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-http-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-io-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-security-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-server-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-servlet-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-util-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-webapp-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\jetty-xml-9.0.6.v20130930.jar;C:\FimRoot\priceService\WEB-INF\lib\JettyStart-1.0.0.jar;C:\FimRoot\priceService\WEB-INF\lib\joda-convert-1.2.jar;C:\FimRoot\priceService\WEB-INF\lib\joda-time-2.2.jar;C:\FimRoot\priceService\WEB-INF\lib\jsr305-2.0.1.jar;C:\FimRoot\priceService\WEB-INF\lib\juli-6.0.37.jar;C:\FimRoot\priceService\WEB-INF\lib\junit-4.11.jar;C:\FimRoot\priceService\WEB-INF\lib\juniversalchardet-1.0.3.jar;C:\FimRoot\priceService\WEB-INF\lib\log4j-1.2.17.jar;C:\FimRoot\priceService\WEB-INF\lib\mime-util-2.1.3.jar;C:\FimRoot\priceService\WEB-INF\lib\ojdbc6-11.2.0.2.0.jar;C:\FimRoot\priceService\WEB-INF\lib\paranamer-2.3.jar;C:\FimRoot\priceService\WEB-INF\lib\poi-3.9.jar;C:\FimRoot\priceService\WEB-INF\lib\poi-ooxml-3.9.jar;C:\FimRoot\priceService\WEB-INF\lib\poi-ooxml-schemas-3.9.jar;C:\FimRoot\priceService\WEB-INF\lib\priceService.Intf-1.0.0-SNAPSHOT.jar;C:\FimRoot\priceService\WEB-INF\lib\ProformaGenerator-0.0.1-SNAPSHOT.jar;C:\FimRoot\priceService\WEB-INF\lib\rl_2.10-0.4.4.jar;C:\FimRoot\priceService\WEB-INF\lib\scala-actors-2.10.0.jar;C:\FimRoot\priceService\WEB-INF\lib\scala-library-2.10.2.jar;C:\FimRoot\priceService\WEB-INF\lib\scala-reflect-2.10.0.jar;C:\FimRoot\priceService\WEB-INF\lib\scalatest_2.10-1.9.1.jar;C:\FimRoot\priceService\WEB-INF\lib\scalatra-common_2.10-2.2.1.jar;C:\FimRoot\priceService\WEB-INF\lib\scalatra_2.10-2.2.1.jar;C:\FimRoot\priceService\WEB-INF\lib\scalaz-concurrent_2.10-7.0.2.jar;C:\FimRoot\priceService\WEB-INF\lib\scalaz-core_2.10-7.0.2.jar;C:\FimRoot\priceService\WEB-INF\lib\scalaz-effect_2.10-7.0.2.jar;C:\FimRoot\priceService\WEB-INF\lib\slf4j-api-1.7.5.jar;C:\FimRoot\priceService\WEB-INF\lib\slf4j-log4j12-1.7.0.jar;C:\FimRoot\priceService\WEB-INF\lib\specs2_2.10-2.2.3.jar;C:\FimRoot\priceService\WEB-INF\lib\stax-api-1.0.1.jar;C:\FimRoot\priceService\WEB-INF\lib\WinRun4J.jar;C:\FimRoot\priceService\WEB-INF\lib\WinRun4JTest.jar;C:\FimRoot\priceService\WEB-INF\lib\xml-apis-1.0.b2.jar;C:\FimRoot\priceService\WEB-INF\lib\xmlbeans-2.3.0.jar
[10220] [info] VM Args:
[10220] [info] vmarg.0=-XX:+UseConcMarkSweepGC
[10220] [info] vmarg.1=-Dport=8081
[10220] [info] vmarg.2=-Dcontext=/
[10220] [info] vmarg.3=-Dname=priceService
[10220] [info] vmarg.4=-Dwar=priceService-1.0.0-SNAPSHOT.war
[10220] [info] vmarg.5=-Djava.class.path=C:\FimRoot\priceService;C:\FimRoot\priceService\WEB-INF\classes;C:\FimRoot\priceService\WEB-INF\lib\akka-actor_2.10-2.1.2.jar;C:\FimRoot\priceService\WEB-INF\lib\commons-codec-1.5.jar;C:\FimRoot\priceService\WEB-INF\lib\config-1.0.0.jar;C:\F
[10220] [info] Registering natives for Native class
[10220] [info] Registering natives for FFI class
[2116] Next user
[2116] Next user
[2116] Next user
[2116] Next user
[2116] Next user
[2116] Next user

I don't know what else to try. I didn't see any obvious errors. Do I have something wrong in my config (shown below):

main.class=com.nextera.fim.jetty.JettyStart

classpath.1=.
classpath.2=WEB-INF/classes
classpath.3=WEB-INF/lib/*

vmarg.1=-XX:+UseConcMarkSweepGC 
vmarg.2=-Dport=8081 
vmarg.3=-Dcontext=/ 
vmarg.4=-Dname=priceService 
vmarg.5=-Dwar=priceService-1.0.0-SNAPSHOT.war 

service.id=Price Service
service.name=.priceService
service.description=Phoenix Pricing Service
service.startup=auto

log=priceService.log
log.level=info
log.file.and.console=true
log.output.debug.monitor=true
antoniobermuda commented 10 years ago

You dont have service.class= in your ini file. If you have implemented Service interface in your startup class?

myio561 commented 10 years ago

No I guess I missed that requirement.