Meaningless Drivel is fun!
The moose likes JBoss/WildFly and the fly likes Eclipse for development with JBoss? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Eclipse for development with JBoss?" Watch "Eclipse for development with JBoss?" New topic

Eclipse for development with JBoss?

john findler

Joined: Jan 23, 2006
Posts: 7
Hi Tom and Scott,

What advice can you give for using the eclipse IDE for development of web components and J2EE applications intended for deployment to JBoss application server? I particularly like the Borland Together Developer 2006 product, which is fully based on Eclipse. Note that like to create deployment descriptors, Ant and other artifacts manually (not via websphere automation tricks) Thanks.
[ February 08, 2006: Message edited by: john findler ]
Tom Marrs
Ranch Hand

Joined: Sep 20, 2000
Posts: 67
First, you're doing the right thing by using Ant - you need to have a build environment outside the IDE to support collaborative development, unit testing, Continuous Integration, and so on.

I've used Eclipse with JBoss before, and it was pretty easy to set up.
You need to add J2EE stubs (HttpServletRequest, and so on) to your CLASSPATH. Copy the following files from $JBOSS_HOME/server/default/lib to your Eclipse project and add them to the project CLASSPATH:

javax.servlet.jar (core Servlets)
javax.servlet.jsp.jar (JSP Taglibs)
jboss-j2ee.jar (core EJBs)

If you need to invoke Stateless Session Beans fro outside the container, you'll also need to copy the following file from $JBOSS_HOME/client/lib to your Eclipse project and add it to the project CLASSPATH:


Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

You might also consider trying the JBoss IDE eclipse plugin.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: Eclipse for development with JBoss?
It's not a secret anymore!