File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Need the procedure for creating and deploying EAR,WAR files in JBoss3.2.5 Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Need the procedure for creating and deploying EAR,WAR files in JBoss3.2.5 Server " Watch "Need the procedure for creating and deploying EAR,WAR files in JBoss3.2.5 Server " New topic
Author

Need the procedure for creating and deploying EAR,WAR files in JBoss3.2.5 Server

Muthu Ram
Greenhorn

Joined: Oct 08, 2004
Posts: 3
Hi All,
I have installed JBoss3.2.5 Application Server.Just now I've started to use this Application server to deploy JSP,Servlet and EJB applications.
In that help they are using "ant" tool to deploy and run the applications from the command prompt.But i couldnt able to run that tool.Also i dont know how to create and deploy WAR and EAR fines using this Application server.Could you please help me out.
Muthu...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60774
    
  65

Moving to the JBoss forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jeff Shelley
Ranch Hand

Joined: May 21, 2003
Posts: 70
Hi Muthu,
First of all, Ant is a really cool building tool. To install it, you'll need to go download it from apache's site. I think you need to add the bin directory to your path, and maybe set an environment variable to make it work.

You will know it works when you type "ant" at the commnd prompt, and it says "build.xml does not exist" or something like that.

Once and is installed, I'd recommend reading up a little on ant from that same site in the user manual. It's not too bad. Anyway, your build.xml should have targets in it that make your war and ear. That's the "create" part of your question.

For deploying with jboss, it's not that bad. After the ear/war is created, you can put that file into the deploy directory. If you didn't change anything about jboss, it will be here:
${wherever.jboss.is}/server/default/deploy.

Everything is hot-deployed, so if you're running jboss at the time, it will go ballistic with messages as it deploys. If you put a new version of the ear/war in there, it will undeploy the old one and deploy the new one. When it is done, it will tell you, and you should be able to start running the code.

The web server listens on port 8080 by default, so http://localhost:8080/ will be your starting point.


Welcome to jboss! Best of luck!!!

--Jeff


It's almost Friday
Tien Shan
Ranch Hand

Joined: Oct 08, 2004
Posts: 38
Hi Muthu!

I am using a tool called lomboz that does the deploying, starting and stopping the server, etc, for you.

It is easy to useand you should be able to find a download site and some instruction to install.

Having said that, if I could hot-deploy my WARs and EARs, I would switch to Ant. I have yet to learn the basics of Ant, though.

Regards,
tienshan
 
 
subject: Need the procedure for creating and deploying EAR,WAR files in JBoss3.2.5 Server
 
Similar Threads
Deploying web app in Websphere Application Server
Need the procedure for creating and deploying EAR,WAR files in JBoss3.2.5 Server
How to Use the ANT tool in JBoss2.2.5 Application server
JBOSS with JDK1.5 and HTTPS
Type of J2EE application