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

Posted on 2006-03-30
Medium Priority
Last Modified: 2010-03-17

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(InternalManagedConnectionPool.java:243)
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:496)
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:425)
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:318)
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:477)
10:13:30,812 ERROR [STDERR]       at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java: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.

Question by:picasothakkar

Author Comment

ID: 16346147
Its urgent could some one help me on this please
LVL 23

Accepted Solution

rama_krishna580 earned 2000 total points
ID: 16362531

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


Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question