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.
1. From the Eclipse Main Menu Bar select Window -> Preferences. The Preferences window should appear.
2. Open Server and select Runtime Environments or Installed Runtimes.
3. Click the Add button.
4. The New Server Runtime Environment window should appear. Open OW2 and select JOnAS Runtime 4.x.
5. Click Next. The New Server Runtime Environment (JOnAS Runtime) window should appear.
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 jdk1.4.2_16 for JOnAS 4.
7. Set or browse to the JOnAS Root Directory. This identifies where JOnAS has been installed on your system. The default value suggested for this field comes from the environment variable JONAS_ROOT (if defined).
8. Click Finish. The Installed Server Runtime Environments window should appear with JOnAS Runtime 4.x present.
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.
10. From the Eclipse Main Menu Bar select Window -> Show View -> Other -> Server. The Show View window should appear.
11. Select Servers from Show View.
12. Click OK.
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.
14. Click on OW2 and select JOnAS 4.x.
15. Click on Next. The New Server (JOnAS Server) window should appear.
16. Enter or Browse to the JOnAS Base Directory. This is the directory JOnAS will use for its configuration information and for application deployment. If you type in a value for this field, you must click on the Apply button to set this new value. When completing the browse or clicking on Apply, the adapter will check to see if the specified location exists and create it if necessary. The default value suggested for this field comes from the environment variable JONAS_BASE (if defined). Other fields in this dialog can also be modified and their values will automatically be saved when clicking on Finish.
17. Click Finish. The Server name JOnAS Server 5.0 (or the value you provided if you changed it) will appear in the Servers view.
The new server is ready to use. Go to cheatsheet Using WTP Servers View.
Click on Using Servers View to learn how to start/stop and deploy projects to the JOnAS Server with WTP.