File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Deployment descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deployment descriptor" Watch "Deployment descriptor" New topic

Deployment descriptor

Saurabh Khanna
Ranch Hand

Joined: Apr 03, 2005
Posts: 30
Hi All

Wondering what is the quickest way to write the deployment descriptors for deployment of apps on JBoss? Is there an IDE that makes the process easy?

Why does JBoss need two xml files? ejb-jar.xml and jboss.xml?
Dale Seng
Ranch Hand

Joined: Mar 22, 2004
Posts: 275
I have not deployed any apps that use EJB on JBoss, so I can't speak to whether those JBoss-only EJB xml files are required or not. But I have deployed regular J2EE apps on JBoss and I just ignored the JBoss-only xml files without a problem.

Now, if you are asking for a tool to write your web.xml DD, I haven't seen anything. How would you specify to the container what you wanted to do? I guess there could be some kind of wizard that would ask you what URL you wanted your servlets to use, and on and on, but would that really be easier than just creating the web.xml yourself? It might be nice, though, if there were a syntax checker, though. Maybe even a function that would try to find stuff in your project that you have specified (fully qualified class names, etc).

norman richards
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
XDoclet is the easiest way to not write deployment descriptors.

EJB3 is the easiest way to not need to not write deployment descriptors.
sergio mendez-rueda
Ranch Hand

Joined: May 12, 2005
Posts: 37

Wondering what is the quickest way to write the deployment descriptors for deployment of apps on JBoss? Is there an IDE that makes the process easy?

Hi Saurabh,

Yes there is an IDE: Eclipse 3.1 + lomboz plugin (,,
It features:

+Building Web applications with HTML pages, servlets, JavaServer Page (JSP) files.
+Generation of Web and EJB containers using wizards.
+Generation of EJB test clients using wizards.
+++J2EE Web application archives (EAR), web modules (WAR) files and
Ejb archive (Jar) file deployment support.
+++Integrated EJB 1.1 and 2.0 (Session, Entity and Message Driven Beans)
development with XDoclet.
+Enabling end-to-end local and remote testing of application servers.
+Ability to support almost any Java application server by extendable
server definitions.
+Ability to debug live server-side code (JSP & EJBs) using the
integrated Java debugger.
+Increasing productivity by using wizards and code generators
+Generate Web Services clients form WSDL files (using Apache Axis)

Toto, I don't think we're in Kansas anymore
--Dorothy, from the Wizard of Oz
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 293

NetBeans 4.1 has just released a server module for JBoss 4. You can use that for generating the majority (if not all) of your deployment descriptors. IntelliJ IDEA also has a JBoss 4 plugin that does similar functionality.
I agree. Here's the link:
subject: Deployment descriptor
It's not a secret anymore!