[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss native windows service won't start/stop cleanly

peter.lyons do-not-reply at jboss.com
Tue Jan 6 14:58:00 EST 2009


I am trying to use the JBoss Native Windows Service to start/stop JBoss, but start won't work cleanly (details below), and because of that stop won't work.

System Info: jboss-web-2.1.1-GA, jboss-native-2.0.6-windows-x86-ssl
I have tried on Windows Server 2003 EE SP2 and Windows Server 2008 with identical results.

Here is what I have discovered:

1. The "service.bat" script from JBoss Native has a bug since it references the non-existant "run.bat" file instead of "startup.bat".  I filed bug https://jira.jboss.org/jira/browse/JBNATIVE-71 for this, but it is trivial to workaround just by doing "copy startup.bat run.bat", so this is not causing me any problems.

2. Once that is fixed, "service.bat start", "service.bat stop", and "service.bat install" and "service.bat uninstall" all seem to work correctly.  However, starting the service from the Services Control Panel or via the "net start JBAS50SVC" command both misbehave in the same way.  The actual jboss java process does indeed start and run correctly, but for some reason windows thinks the service started then stopped.  Because of that, you cannot stop the service because windows incorrectly thinks it is not running.  So the fact that "net start JBAS50SVC" does not work cleanly is the problem I am trying to solve. (In the nestat output below, the process listening on port 80 is jboss since I have it configured to listen on that port. Thus this shows it is indeed running)

C:\Program Files\CDE\jboss-web-2.1.1.GA\bin>net start JBAS50SVC
  | The JBoss Application Server 5.0 service is starting.
  | The JBoss Application Server 5.0 service could not be started.
  | 
  | The service did not report an error.
  | 
  | More help is available by typing NET HELPMSG 3534.
  | 
  | C:\Program Files\CDE\jboss-web-2.1.1.GA\bin>netstat -an | find "80"
  |   TCP    0.0.0.0:80             0.0.0.0:0              LISTENING
  |   TCP    0.0.0.0:8009           0.0.0.0:0              LISTENING
  |   TCP    127.0.0.1:8005         0.0.0.0:0              LISTENING
  |   
  | C:\Program Files\CDE\jboss-web-2.1.1.GA\bin>net stop JBAS50SVC
  | The JBoss Application Server 5.0 service is not started.
  | 
  | More help is available by typing NET HELPMSG 3521.


Unfortunately, run.log does not seem to provide any clues:

C:\Program Files\CDE\jboss-web-2.1.1.GA\bin>type run.log
  | Starting JBoss Application Server 5.0 [2009-01-06 09:58:34]
  | Using CATALINA_BASE:   C:\Program Files\CDE\jboss-web-2.1.1.GA
  | Using CATALINA_HOME:   C:\Program Files\CDE\jboss-web-2.1.1.GA
  | Using CATALINA_TMPDIR: C:\Program Files\CDE\jboss-web-2.1.1.GA\temp
  | Using JRE_HOME:        C:\Program Files\CDE\jboss-web-2.1.1.GA\..\cde_winpe_shar
  | e

Anyone have any insights into this problem?  Thanks in advance.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199891#4199891

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199891



More information about the jboss-user mailing list