I am using Eclipse Helios and JBoss 4.2.0.
I have built a maven project in eclipse. A war file is getting generated in the target as a maven build.
Also I have configured the Jboss server through eclipse. When I right click on JBoss server in eclipse and say “Add or Remove”. it is giving me the following message “There are no resources that can be added or removed from the server”.
Please help me running maven build on JBoss server. So that I can debug my code
One option (although technically not an answer to your question) would be to use the JBoss outside eclipse (which is the option I’d prefer anyways).
I assume you know how to set up a JBoss instance and deploy a war to it, so I’ll only explain the debugging procedure.
In the JBoss’ run.bat/run.conf there’s a debugging line that’s commented by default (I don’t know the exact contents but you should be able to find it). Remove the comment to activate that line and you’re almost good to go. Within that debug config there an option for the port to listen to, which normally is port 8787, as well as a
suspendoption, which by default it set toy. That second option will cause the JBoss to wait for the debugger on startup when set toy, thus set that ton.When the JBoss is running you can attach the Eclipse debugger by creating a “remote Java application” configuration and attach to the port the server listens to (8787 by default).