glassfish EMBEDDED Broker start failure:code = 1

You might get this error when you copy the glassfish directory to a different machine, or the existing machine gets a new IP address. The fix is to delete the file under \imq\instances\imqbroker\lock . More on this here:http://old.nabble.com/Glassfish-V2-failed-to-start,-broker%3Dembedded,-failure%3Acode-%3D-1-td17728741.html