What kind of "J2EE Project" is this? Is it a webtools project? (Dynamic web project, ejb project, utility project, client project, ear project) or is it one of the jboss-declared projects?
There's no way to add the old jboss projects to the server as of now, except by packaging them, executing the packaging config, and manually deploying to the server.
For debugging, just start the server in debug mode, package the project, right click on the resultant jar / war / ear and run on server.
Thanks for help.
My project come from previous eclipse (3.1).
When I start the server in debug mode in JBoss AS perspective(JBoss Server view). Then go the Java perspective and package the application into ear. Then right click on this ear, from popup menu Run As --> Run on Server, there is a Server Error popup window with the message as:
The selection is not within a valid module.