To Install Jboss and Tomcat as windows service using the batch files run.bat and shutdown.bat


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\server\jvm.dll -Djava.class.path=C:\j2sdk1.4.2_07\lib\tools.jar;C:\jboss-3.2.2\bin\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.JBossResourceException: Unexpected throwable while trying to create a connection: ; - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(

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.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

picasothakkarAuthor Commented:
Its urgent could some one help me on this please

try checking <connection-url> in mysql-ds.xml. should have the correct database name!

did you check the aspectj jar files in server/default/lib directory? you can try checking the contents of the jar to make sure the class that is not being found is in one of the jars. also check in all jar directories within the subdirs under deploy, to see if one of the deployed apps can find it.

If you are using Ms SQL then, msutil.jar is missing in your lib directory

Hope it helps you


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Application Servers

From novice to tech pro — start learning today.