Helpful Tip #348: Hooking Eclipse 3.3 into a local JBOSS 5 instance for debugging

I set up a JBOSS v. 5 instance on my home computer today so I could play with its new micro-container format and its implementation of EJB3.

I wanted to add it as a server in Eclipse’s list of avaiable runtime environments on my machine, but when I pointed Eclipse to the JBOSS installation, it complained about a missing JAR (mail.jar) in the default configuration’s lib dir, and I was unable to add the server to Eclipse.

After some Googling (yes, googling), I found this bug. Once I patched my local installation with the jboss5.serverdef file attached to the bug I was able to associate the server with my Eclipse projects. I could then use Eclipse to start/stop the server, run in debug mode, and view the JBOSS server log.

3 responses to “Helpful Tip #348: Hooking Eclipse 3.3 into a local JBOSS 5 instance for debugging

  1. Hmm… Not Y!’ing anymore… weird.

  2. How did you path it?

  3. Scott,

    If you mean, how did I find the location to drop the serverdef file, I did a search under my eclipse install directory for the location of the file and replaced the jboss5.serverdef file with the patch from the eclipse project bug site. If you are using Europa or Ganymede then you should find the file here:

    eclipse/plugins/org.eclipse.jst.server.generic.jboss_1.5.205.v200805140145/servers/

    I hope this helps,

    Eric Anderson

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s