I am attempting to configure JBoss to run as a Windows Service. Following the 
advice and info I've been able to find on the web, I was able to get it running 
finally. However, it won't completely load. The service starts fine, I can't 
connect to the JMX console. Upon further investigation, I discovered that the 
error log contained the following:

Failed to boot JBoss:
java.lang.ClassNotFoundException: org.jboss.system.server.ServerInfo
at 
org.jboss.mx.loading.UnifiedLoaderRepository3.loadClass(UnifiedLoaderRepository3.java:593)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1192)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:233)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:279)
at org.jboss.system.server.ServerImpl.createMBean(ServerImpl.java:495)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:387)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:534)

I've double-checked my JBOSS_HOME and JAVA_HOME environment variables and done 
everything else I can think of to figure out why this exception is occurring.

JBoss runs fine when started from the command line via the run.bat file, so I 
know my installation is good.

I performed the following steps to install JBoss service:

1) Download and unpack the JavaService utility from 
http://forge.objectweb.org/projects/javaservice
2) Copy the JavaService.exe file to JBoss bin directory and rename it to 
JBossService.exe
3) After considerable trial and error, and lots of Googling, I came up with the 
following install batch to actually install the service

echo off

setlocal JAVA_HOME
setlocal JBOSS_HOME
set JAVA_HOME=c:\Sun\AppServer\jdk
set JBOSS_HOME=c:\jboss-4.0.2

if "%JAVA_HOME%" == "" goto help
if "%JBOSS_HOME%" == "" goto help

net stop JBoss
JBossService -uninstall JBoss
JBossService -install JBoss %JAVA_HOME%\jre\bin\server\jvm.dll -Xms192m 
-Xmx256m 
-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar;%JBOSS_HOME%\bin\shutdown.jar;%JBOSS_HOME%\lib\dom4j.jar
 -start org.jboss.Main -params -c Default -stop org.jboss.Main -method 
systemExit -out %JBOSS_HOME%\bin\out.log -err %JBOSS_HOME%\bin\err.log -current 
%JBOSS_HOME%\bin
net start JBoss
goto end

:help
echo The environment variables %JAVA_HOME% and %JBOSS_HOME% have to be set,
echo JavaService.exe and this script have to be in %%JBOSS_HOME%%\bin.
echo.
echo The Service has NOT been installed
echo.
echo JAVA_HOME = %JAVA_HOME%
echo JBOSS_HOME = %JBOSS_HOME%
echo.

:end

3) I also verified the values of JAVA_HOME and JBOSS_HOME environment 
variables, and rebooted just to be sure.

The service runs fine, but the error log contains the previously posted 
exception.

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

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


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to