Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie question - how to deploy application to JBoss

 
Simon Yue
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Simon Yue
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Eclipse, can I just use the file -> export to generate WAR file for deployment? Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic