MyEclipse
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.
- From MyEclipse menu click on Windows > Preferences.
- Go to MyEclipse Enterprise > Servers > JBoss.
- 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.
- Enable the server.
- Provide the JBoss home directory. Its usually on /usr/local/jboss.
- Server name must be 'default' to match the jboss deploy directory.
- Optional shutdown arguments should be '--shutdown'.
- Click on JDK.
- Provide the JDK installation and its name.
- 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
- Click on Launch.
- Click the Debug mode.
- Click on Paths.
- Append to classpath the bin directory of the Java installation.
- 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