Sunday, January 25, 2009

Running JBoss5 with Eclipse3.4

This is the first of the techy type stuff I mentioned in a previous blog post, and details the steps I went through to get the latest Eclipse download working with the latest JBoss download.
  1. Download the JEE development version of Eclipse and unzip to a local directory.
  2. Download the latest version of JBoss and unzip to a local directory. Ensure there are no spaces in the path to this directory.
  3. Download and install the latest maintenance build for the Web Tools Project (WTP). This is required for support with JBoss5 otherwise you may hit errors later on.
  4. Start the Eclipse workbench
  5. Open the JEE perspective (if not already open)
  6. In the servers tab, right click and select New->Server
  7. Choose JBoss5 from the list
  8. Click 'Next >' and on the next panel enter the location of the JBoss installation you unzipped in step 2. If you get an error saying that mail.jar can't be found then the latest version of WTP hasn't been installed correctly.

  9. Click 'Finish' and the server will appear in the Servers tab.
From here you can start the server which will launch it and send the output to the console. If you get Exceptions being thrown then the first thing to check is whether the JBoss location contains spaces in the path.

If the start takes longer than the configured time allowed then double clicking on the server will open the configuration page which will allow you to increase the startup timeout to a value which allows the server to start within that time.

From here everything should be setup ready to develop applications and deploy them to the server.

Have fun.

1 comment:

Sarah said...

Why would I do this? Why? It makes almost no sense to me. I'm sure it's very clever but it doesn't really sound like fun...