(Ebook - PDF) JBoss Server Development With Eclipse
(Ebook - PDF) JBoss Server Development With Eclipse
(Ebook - PDF) JBoss Server Development With Eclipse
Genuitec, L.L.C.
March, 2002
This article introduces practical J2EE server-side development techniques using Eclipse
with JBoss Server 2.4.4 integrated with Tomcat 4.0.1 (JBoss). We’ll demonstrate how to
install, configure, and run the EASIE JBoss Plugin for Eclipse in preparation to
performing J2EE server-side development. Additionally, use of this plugin with JBoss 3.0
Alpha and Beta will also be discussed.
Introduction
Genuitec recently released the EASIE JBoss Plugin. It is the second in a series of application and
web server plugins for the Eclipse 2.0 IDE. This product extends the Eclipse IDE to include user
controls for managing a JBoss instance from within Eclipse runtime and debug contexts. The
plugin is built on top of Genuitec’s Eclipse Application Server Integration Environment, (EASIE™),
a framework for interfacing Eclipse with Java/J2EE application servers. In this article, we
demonstrate how to install, configure, and run the EASIE JBoss Plugin for Eclipse.
Software Version
Java JDK Sun JDK 1.4 rc 0 or greater
JBoss Server Version 2.4.4 with Tomcat Integration
Version 3.0 Alpha/Beta with Tomcat
Integration
Eclipse IDE Version 2.0 (pre-release) Build 20020125
Figure 1
Select ‘OK’ to activate the plugin. When activated, the plugin installs a JBoss menu to the
Eclipse menubar and UML node-based start and stop icons to the Eclipse toolbar.
Figure 2
Figure 3
Please consult the resources at the end of this article for a comprehensive description of each
configuration property.
When JBoss starts correctly, you should observe console output that reports the startup status of
all the internal services. You will also notice a number of new threads have been created as
children under for the org.jboss.Main program. org.jboss.Main is the Java startup class
for running JBoss.
Pay close attention to the console output if JBoss fails to startup. The most common reason for
startup failure is the port is already bound to another process. If this is the case, either
reconfigure your JBoss configuration to launch JBoss on a different port or terminate the process
using the specified port, which is most likely a forgotten instance of a prior execution of JBoss.
Figure 4
When JBoss is run with JDK 1.3.1, there are no exceptions recorded. It appears that a couple of
the MBeans that are deployed in the default configuration implement both a “getter” and a
“boolean test” for the state manageable property and this violates the new JDK 1.4 MBean
consistency compliance check. The same behavior can be seen when running JBoss through
Eclipse, but obviously it is not the fault of Eclipse or the plugin.
With proper configuration, JBoss 3.0 can be run with the plugin just as successfully as JBoss
2.4.4. A sample of a configuration of the plugin properties, so they directly mimic the run.bat
script settings, for this version of JBoss is depicted below. However, the VM argument setting,
although currently set in the script, appears to be superfluous.
Resources
• The Eclipse.org website to learn more about the Eclipse IDE.
• See the JBoss website for information on downloading a version of JBoss Server.
• The EASIE JBoss Plugin may be downloaded from the Genuitec website.
• The EASIE Overview introduces the Genuitec EASIE framework for Eclipse application
Server plugins.