aspose file tools*
The moose likes JBoss/WildFly and the fly likes Newbie question - how to deploy application to JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Newbie question - how to deploy application to JBoss" Watch "Newbie question - how to deploy application to JBoss" New topic
Author

Newbie question - how to deploy application to JBoss

Simon Yue
Greenhorn

Joined: Aug 11, 2009
Posts: 15
I am a newbie in programming.

I create a Enterprise Application Project in Eclipse and has selected JBoss v5.0 as the target runtime. I has also setup JBoss 5.1.0. But when I click the "run" icon, after a while, a windows saying that "Server JBoss v5.0 ... was unable to start within 50 seconds ...". But if I start JBoss first, then click "run" and selected JBoss, the message "... Server port In Use 8080-Http" appears.

What is the correct procedures in deploying Eclipse application to JBoss? Thanks a lot.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

The "correct procedure in deploying" is to manually copy the WAR or EAR file to the server/xxx/deploy directory.

In Eclipse, you will want to make certain that the EAR or WAR project is associated with the server. To do this, in the Server View, right-click on the server and select Add and Remove. In the Add and Remove dialog box, select your project in the Available list and click Add to move it to the Configured list and then click Finish. Then you might also have to right-click on the server and select Publish. You can do the above steps with the server running or stopped. If the server is running, so is your app.


JBoss In Action
Simon Yue
Greenhorn

Joined: Aug 11, 2009
Posts: 15
In Eclipse, can I just use the file -> export to generate WAR file for deployment? Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Newbie question - how to deploy application to JBoss