Create EAR deploy JBoss Server Hello World

Create EAR deploy JBoss Server Hello World

If you want to create enterprise java application to run on JBoss application server with ant build file please have sample application below:

  • Final project structure:

Create EAR deploy JBoss Server Hello World

  • application.xml:

  • web.xml:

  • index.jsp:

  • build.xml:

  • This is simple project where we are creating EAR file and deploy on the JBoss server (Version: 5.1.0). To create ear file: Right click build.xml –> Run As –> Ant Build you will see below output on console:

2014-12-07_2359

As you see above EARDeployment.ear got created inside JBoss deploy folder. Now start your JBoss server you will see below welcome page:

2014-12-08_0006

download Download Project: EARDeployment

For more information about EAR deployment on JBoss please refer this JBoss link 

Leave a Reply

Your email address will not be published. Required fields are marked *