Starting JBoss AS from Eclipse with JBoss Tools
Skip to end of metadata
Go to start of metadata
You may choose to use Eclipse rather than the command
line to run JBoss AS, and to deploy the examples. If you don't wish to
use Eclipse, you should skip this section.
In order use JBoss AS from Eclipse, you'll need Eclipse Indigo
(Eclipse 3.7) and JBoss Tools 3.3 M2 or newer. If you want to run the
quickstarts from Eclipse, you will also need m2eclipse. You can find
instructions for installing Eclipse, m2eclipse and JBoss Tools on the JBoss Tools Site. Make sure you install the Maven Support and Web and Java EE Development features.
Having successfully installed and started Eclipse, we need to add our JBoss AS instance to it. First, navigate to File -> New -> Other:

Now, locate the New Server Wizard:

And choose JBoss AS 7.0:

Hit Next >, and locate the JBoss AS 7 installation by clicking on Browse ...:

Now, choose the JBoss AS 7 installation directory:

Assuming you selected a valid installation, Eclipse should now allow you to hit Finish:

Now, let's start JBoss AS from Eclipse. If you previously started JBoss AS from the command line, you should stop it there first.
First, we need to make sure the Server tab is on view. Open the Window -> Show View -> Other... dialog:

And select the Server view:

You should see the Server View appear with the JBoss AS server:

Now, we can start the server. Right click on the server in the Server view, and select Start:

You'll see the server output in the Console:

| In order to use JBoss AS from Eclipse, you must first install JBoss AS for your operating system as described in Installing and starting JBoss AS on Linux, Unix or Mac OS X or Installing and starting JBoss AS on Windows. |
Having successfully installed and started Eclipse, we need to add our JBoss AS instance to it. First, navigate to File -> New -> Other:

Now, locate the New Server Wizard:

And choose JBoss AS 7.0:

Hit Next >, and locate the JBoss AS 7 installation by clicking on Browse ...:

Now, choose the JBoss AS 7 installation directory:

Assuming you selected a valid installation, Eclipse should now allow you to hit Finish:

Now, let's start JBoss AS from Eclipse. If you previously started JBoss AS from the command line, you should stop it there first.
First, we need to make sure the Server tab is on view. Open the Window -> Show View -> Other... dialog:

And select the Server view:

You should see the Server View appear with the JBoss AS server:

Now, we can start the server. Right click on the server in the Server view, and select Start:

| If you want to debug your application, you can simply select Debug rather than Start. This will start the server in debug mode, and automatically attach the Eclipse debugger. |

No hay comentarios:
Publicar un comentario