picasothakkar
asked on
To Install Jboss and Tomcat as windows service using the batch files run.bat and shutdown.bat
Hi,
I have installed Jboss 3.2.2 as windows service using the following command
JbossService.exe -install JBoss C:\j2sdk1.4.2_07\jre\bin\s erver\jvm. dll -Djava.class.path=C:\j2sdk 1.4.2_07\l ib\tools.j ar;C:\jbos s-3.2.2\bi n\run.jar -start org.jboss.Main -stop org.jboss.Main -method systemExit -out C:\jboss-3.2.2\logs\stdout .log -err C:\jboss-3.2.2\logs\stderr .log -current C:\jboss-3.2.2\bin
The service has been successfully installed but its not working properly. It throwing the following errors in log file
10:13:30,812 ERROR [STDERR] org.jboss.resource.JBossRe sourceExce ption: Unexpected throwable while trying to create a connection: ; - nested throwable: (java.lang.reflect.Undecla redThrowab leExceptio n)
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect ionmanager .InternalM anagedConn ectionPool .getConnec tion(Inter nalManaged Connection Pool.java: 243)
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect ionmanager .JBossMana gedConnect ionPool$Ba sePool.get Connection (JBossMana gedConnect ionPool.ja va:496)
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect ionmanager .BaseConne ctionManag er2.getMan agedConnec tion(BaseC onnectionM anager2.ja va:425)
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect ionmanager .TxConnect ionManager .getManage dConnectio n(TxConnec tionManage r.java:318 )
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect ionmanager .BaseConne ctionManag er2.alloca teConnecti on(BaseCon nectionMan ager2.java :477)
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect ionmanager .BaseConne ctionManag er2$Connec tionManage rProxy.all ocateConne ction(Base Connection Manager2.j ava:814)
Is there a way to install the service using the batch files which I run to start and stop the Jboss (Run.bat and Shutdown.bat). I think If I install service using the batch files, my application which is depenedent on the Jboss will work fine.
Please let me know How to do this.
Thanks
I have installed Jboss 3.2.2 as windows service using the following command
JbossService.exe -install JBoss C:\j2sdk1.4.2_07\jre\bin\s
The service has been successfully installed but its not working properly. It throwing the following errors in log file
10:13:30,812 ERROR [STDERR] org.jboss.resource.JBossRe
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect
10:13:30,812 ERROR [STDERR] at org.jboss.resource.connect
Is there a way to install the service using the batch files which I run to start and stop the Jboss (Run.bat and Shutdown.bat). I think If I install service using the batch files, my application which is depenedent on the Jboss will work fine.
Please let me know How to do this.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER