After upgrading jdk. JBoss service stops immediately after starting

Document ID : KB000004614
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

After upgrading jdk. JBoss service stops immediately after starting:

"The JBoss Applicattion Server 4.2.3 service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs."

Cause:

In <jboss>\bin\run_idm.bat and <jboss>\bin\compile_jsp.bat JAVA_HOME was set using double quotes: 

 

JAVA_HOME="C:\jdk1.7.0_80" 

 

Resolution:

In <jboss>\bin\run_idm.bat and <jboss>\bin\compile_jsp.bat set JAVA_HOME without double quotes:

 

JAVA_HOME=C:\jdk1.7.0_80