I use Eclipse Juno and I've made 2 projects:
EAR Project -> Export -> Java EE -> EAR file
WEB -> WAR file
in the export
navigation menu. After the WAR is deployed everything works fine. Now the reason I do the whole "Export" thing is because the Run as -> Run on server
does not build and deploy my projects. I thought that is its primary goal. Am I wrong? Is there a way to make this command work as I expected it to? I think it worked this way with Tomcat and web projects...
I know this could be easily done by build script but that is not my point!
Thanks in advance for your help and suggestions.
First of all, check if you have JBoss Tools installed in your Eclipse IDE. You can find them here.
By default JBoss AS Adapter uses .metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss-AS-5.1.0.GA/deploy folder to deploy your project and then register this temp folder in JBoss. In other words, if you are starting JBoss AS from Eclipse, you have to deploy your project to this directory.
You can try this (taken from JBoss community site), helped me too:
Server configuration (in Servers view in your Eclipse IDE)
Deployment > "Use the JBoss Deploy folder"
Save Server configuration
Select your project on server and make a "Ful Publish" using project context menu
Start server
If you have everything configured correctly, the "add and remove" method from the previous answer should be working, too...
Let me know, if you got it working.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With