Friday, April 10, 2009

Running JBoss On MyEclipse On Debug Mode


MyEclipse is one of the standard development environment for all Java Applications. It has a wide range of support for server/client plugins. This section will focus on JBoss server plugin. As of this writing, there were no references on how to glue together the JBoss Server and MyEclipse on Debug mode. Follow the instructions below to properly configure MyEclipse to let your application run in Debug mode successfully.

  1. From MyEclipse menu click on Windows > Preferences.
  2. Go to MyEclipse Enterprise > Servers > JBoss.
  3. There are several versions of JBoss server available. Pick the version that matches what is installed on your machine. Currently its version 4.0.5.
  4. Enable the server.
  5. Provide the JBoss home directory. Its usually on /usr/local/jboss.
  6. Server name must be 'default' to match the jboss deploy directory.
  7. Optional shutdown arguments should be '--shutdown'.
  8. Click on JDK.
  9. Provide the JDK installation and its name.
  10. Under the optional JVM arguments populate it with the following information

-Xms128m -Xmx1024m -Djboss.server.log.dir=/var/log/jboss -Djboss.server.base.dir=/usr/local/htapps/server -Djboss.server.base.url=file:///usr/local/htapps/server

  1. Click on Launch.
  2. Click the Debug mode.
  3. Click on Paths.
  4. Append to classpath the bin directory of the Java installation.
  5. Do not run JBoss from the command line. Run it by clicking on the server icon from MyEclipse and choose JBoss. 

No comments:

Post a Comment