aspose file tools*
The moose likes JBoss/WildFly and the fly likes How to deploy a Java Project on Jboss Server as a web module? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to deploy a Java Project on Jboss Server as a web module?" Watch "How to deploy a Java Project on Jboss Server as a web module?" New topic
Author

How to deploy a Java Project on Jboss Server as a web module?

Ravish Srivastava
Greenhorn

Joined: Sep 05, 2011
Posts: 23
Hi,

How to deploy a Java Project on Jboss Server as a web module?

My Java project only has java class.

Thanks,
RS
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1760
    
    7

Well, typically you would package a simple web application as a web application archive (.war file) and deploy it to an application server or servlet container by copying that .war file to whatever directory the server looks in for stuff to deploy. The structure of a WAR is pretty straightforward, but very important. Google should be able to help you out there. However, you can't just package any old existing Java application as a WAR and expect (in this case) JBoss to know what to do with it. Typically a Java web application contains a deployment descriptor to help the application server / servelt container to figure that stuff out, and the application would more than likely require some modifications as well.

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

For those of you following along at home, see the discussion at http://www.coderanch.com/t/570340/JBoss/deploy-JAVA-application-JBOSS-as


JBoss In Action
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to deploy a Java Project on Jboss Server as a web module?