2007-08-23

Eclipse 3.2.2 with JBoss Server 4.2.1

Since I want to try the new version of JBoss Server, I downloaded the newest Version of it and unzip it to a folder. Just like usual, I go to the eclipse workbench and select file | new | other | server | next, then I can see 2 entries for JBoss server which are the v3.2.x one and the v4.0.

Chosing the 2nd option I get the error :

Missing classpath entry C:\jboss-4.2.1.GA\server\default\lib\javax.servlet.jar

As far as I know, from the version 4.x of the Jboss Server, it already includes the EJB. So the only reason for that error should due to a not correct server definition.

Internet is a good place to find the answer. Thanks to Wolfgang Knauf, we have some new JBoss server definitions here: http://www.informatik.fh-wiesbaden.de/~knauf/public/

There are two different jars for WTP 1.5 and 2.0.

To use the plugin:
  • JBoss 4.0.x: You MUST have installed the EJB3 RC9 to the default configuration so that the plugin can find all required libraries.
    For JBoss 4.0.4 with installer including EJB3 RC8 this is done automatically.
    For EJB3 RC 9 there is no JBoss AS installer, it must be installed to the default configuration manually. Later you can install EJB3 RC9 to any other configuration, the jars from the default configuration are only needed for starting up application clients and for Eclipse.
  • JBoss 4.2.0: the default configuration must be present so that the plugin can find all required libraries (tested for CR1 to GA)
  • JBoss 5.0.0: the default configuration must be present so that the plugin can find all required libraries (tested for Beta2)
  • Delete previous versions of this plugin if already installed.
  • Download org.eclipse.jst.server.jboss.ejb3_1.5.0.v200706052200.jar
  • Copy the file to the subdirectory "plugins" of your eclipse installation.
  • Restart eclipse once with the "-clean" option: "eclipse -clean".
  • Create a new server runtime. You will find the runtimes in the "JBoss" branch, labeled "JBoss 4.0.4 or 4.0.5 with EJB3 RC8 or RC9", "JBoss 4.2.0" or "JBoss 5.0"
So enjoy it!

5 comments:

Anonymous said...

Thx,
you saved my life...

Kallol Biswas said...

this post saved my life too........

vector said...

Thanks, this was really useful

Anonymous said...

This was helpful to me too.
Thank you!

viagra online said...

this kind of topic is good for people to learn more about it, and that people should be every day less ignorant, and medicine for this is the reading of issues like this