You are here

Eclipse IDE JBoss Integration

This integration is between hosting JBoss5.0 inside Eclipse Ganymede.

Please do the following software before continuing

There is a video to set up your eclipse and Jboss down below, which takes you through making a simple web application which prints hello world. The steps is quite similar in Windows and Linux.

Adding JBoss to eclipse:
 

  1. Add the server by going to Window->Preferences->server->Installed Runtimes
  2. Click on add to add new server.
  3. Select JBoss v5.0 from JBoss. If you find problem in integration, see the solution below. (This problem happens in one of the version of Ganymede)
  4. Select the Application server Directory and select JDK1.6 for Java.
  5. Click next and finish.

Solution to solve JBoss integration

Eclipse Ganymede has a problem in hosting JBoss 5.0 so change the following file in eclipse server def file. This comes because some of the jars in JBoss has been moved up. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=257823(external link)

To change

  1. Open file "eclipse\plugins\org.eclipse.jst.server.generic.jboss_1.5....\servers\jboss.serverdef"
  2. Find lines "<exclude name="server/default/lib/mail.jar">" and "<archive path="${serverRootDirectory}/server/default/lib/mail.jar">"
  3. They should be changed to "<exclude name="common/lib/mail.jar">" and

"<archive path="${serverRootDirectory}/common/lib/mail.jar">" respectively

Also see the video which details out making a simple web application

 

 

After you follow the video the server should start up with no exceptions. Sometimes the server times out before starting.For this double click on server in Servers window and increase the timeout. Than hit the application from your browser using url http://localhost:8080/HelloWorld(external link) (Please make sure your machine understands localhost or replace it with your machine name or ip)

Add new comment