It's not a secret anymore!
The moose likes JBoss/WildFly and the fly likes Cannot deploy JBoss on Windows 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Cannot deploy JBoss on Windows 7" Watch "Cannot deploy JBoss on Windows 7" New topic

Cannot deploy JBoss on Windows 7

Daniel Armstrong

Joined: Oct 15, 2009
Posts: 2
I work for a company that uses JBoss to run our software and the software works great on XP and Vista. However when I was testing the software on Windows 7 it failed to deploy mysql. On other operating systems it explodes 'mysqld-nt.exe' to %JBOSS_HOME%/server/default/data/mysql/bin. On Windows 7 I get an error in the server log stating

ERROR [ org.jboss.deployment.MainDeployer] Could not create deployment: file:/%JBOSS_HOME%/server/default/mysqld-service.xml
org.jboss.deployment.DeploymentException: Resource '5-0-51a/Windows_7-x86/mysqld-nt.exe' not found; - nested throwable: (java.util.MissingResourceException: Resource '5-0-51a/Windows_7-x86/mysqld-nt.exe' not found)

JBoss fails to start up due to this. Why would JBoss be trying to run MySQL from a different directory on Windows 7?
Peter Johnson

Joined: May 14, 2008
Posts: 5852

I have been running JBoss AS (4.0.5, 4.2.x and 5.x) on Windows 7 since the first beta, CR 1 and RTM using JDK 5 and 6 without any issues.

I have no idea what you are talking about regarding 'mysqld-nt.exe'. How did you install MySQL? I installed mySQL on my Windows 7 systems without any issue and am using JBoss AS to access the MySQL databases without any issues.

The mysqld-nt.exe file is use to run MySQL as a service - that file should not appear in the JBoss AS directory. On my system it is located at "C:\Program Files\MySQL\MySQL Server 5.1\bin\mysqld.exe". Hmm, different name, what version of MySQL are you running? I have the 64-bit version of MySQL 5.1.37 installed on my 64-bit Windows 7 Professional on my laptop. If I recall correctly, mysql-nt.exe is for an older version of MySQL, perhaps 4.x.

Where did this file come from: file:/%JBOSS_HOME%/server/default/mysqld-service.xml??? It is not part of JBoss AS.

JBoss In Action
Daniel Armstrong

Joined: Oct 15, 2009
Posts: 2
We have mysql bundled in the deployment jars. It explodes it on the first deployment and launches it. This method works great on all OS's other than 7.
I agree. Here's the link:
subject: Cannot deploy JBoss on Windows 7
It's not a secret anymore!