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.
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.