Copyright Bull SA, 2005.

Configure JOnAS with WTP

The following tutorials will allow developers to configure and start a JOnAS Server with Eclipse WTP without leaving their Eclipse IDE. The tutorials will assist you:

Before attempting the tutorial see http://jonas.objectweb.org/current/doc/GettingStarted.html#GettingStarted for instructions to download and install JOnAS.

Configuring a JOnAS Runtime

1. From the Eclipse Main Menu Bar select Window -> Preferences. The Preferences window should appear.

JOnAS Config

2. Open Server and select Installed Runtimes.

JOnAS Config

3. Click the Add button.

4. The New Server Runtime window should appear. Open ObjectWeb and Select JOnAS Runtime 4.6.

JOnAS Config

5. Click Next. The New Server JOnAS Runtime 4.6 window should appear.

JOnAS Config

6. Select a Java Runtime Environment JRE from the pull-down list. If none are shown you will need to install a JRE. Your default may be jrel.5.0. Select jrel.5.0.

7. Set or browse to the JOnAS Installation Directory. This is the same value as the environment variable JONAS_ROOT.

8. Click Finish. The Installed Server Runtime Environments window should appear with JOnAS Runtime 4.6 present.

JOnAS Config

Note: You can select JOnAS to be your default Server Runtime by checking the box to the left of the server name.

9. Click on OK.

The second part of configuring JOnAS with WTP, is to create a new server instance. The following turtorial steps accomplish this.

Create a New Server Instance with WTP

10. From the Eclipse Main Menu Bar select Window -> Show View -> Other -> Server. The Show View window should appear.

JOnAS Config

11. Select Servers from Show View.

12. Click OK.

JOnAS Config

The Servers Tab should appear.

13. Hover the mouse pointer in the Servers view and right click the mouse. Select New. Then select Server. The New Server window should appear.

JOnAS Config

14. Click on ObjectWeb. Select JOnAS Server 4.6

15. Click on Next. The New Server window should appear.

JOnAS Config

16. Complete the box for JOnAS Configruation Directory. This is the JONAS_BASE value used when you installed JOnAS. Type in or use the Browse . . . button.

17. Click Finish. The Server name JOnAS WTP Adapter will appear in the Servers view.

JOnAS Config

The new server is ready to use. Go to cheatsheet Using WTP Servers View.

Using WTP Servers View

Using Servers View

Click on Using Servers View to start the JOnAS Server with WTP.