Registering the Sun ONE Application Server

The IDE is preconfigured with J2EE Reference Implementation 1.3.1 and Tomcat 4.0 as registered and default servers for J2EE and web tier applications. Ensure that the Sun ONE Application Server is registered and is the default server for both types of applications.


TIP - You can also register application server running on a remote machine. To register the application server on an another machine, type the remote machine's hostname or IP address instead of localhost in the Admin Server Host field below.

To register the application server:

  1. In the IDE, click the Explorer's Runtime tab. Expand the Installed Servers and Sun ONE Application Server 7 nodes.
  2. If you see a localhost:port node under the Sun ONE Application Server 7 node, the application server is already registered, and you can skip the rest of this section.

    Otherwise, right-click the Sun ONE Application Server 7 node and choose Add Admin Server.


    NOTE - Do not use Sun ONE Studio with a Multiple Administration Domain configuration. This can possibly cause the Administration Server Nodes and Instance Server Nodes to not function properly. Additionally, exceptions may be thrown while debugging or restarting the Administration Server.

    The Add Admin Server dialog box appears.

  3. Type localhost in the Admin Server Host field, and your server's Administration Port in the Admin Server Port field.


    NOTE - Port 4848 is the value suggested during installation. If you selected another port number, enter it here. If you do not remember the HTTP server port number of the administrative server, you can inspect the administrative server's configuration file to determine the HTTP server.

    1. Navigate to the install_root/appserv/domains/domain1/admin-server/config directory.
    2. Open the server.xml file in your favorite editor. Look for the element:
    3. <http-listener id="http-listener-1" address="0.0.0.0"
      port="4848"
      ...

    In this case, port 4848 is the administration port number in use.


  4. Type the administrative user name in the User Name field.

  5. NOTE - If you do not remember the administrative user name that was supplied during installation, try the user name "admin". This is the default user name specified in the server configuration dialog during installation. If you still cannot determine the user name, look in the following file:

    install_root/appserv/domains/domain1/admin-server/config/admpw

    This file contains the administrator's user name followed by the encrypted form of the administrative user's password.

    If you do not remember the administrator's password, then you will need to uninstall and reinstall the application server.


  6. Type the password you specified during installation in the User Password field.
  7. Once you Click OK, you should now be able to see the Sun ONE Application Server listed as an installed server.

    If you expand the localhost:port administration server node, you can see the server1 instance.


    NOTE - If you are not able to expand the localhost:port administration server node, that means the IDE was not able to connect to the application server. Make sure the Sun ONE Application Server was started as described in the Starting the Application Server section and try to expand the node again.

You are now ready to set the Sun ONE Application server as a default server.

See also
Setting up Your Development Environment
Starting the Sun ONE Application Server 7
Starting the IDE
Setting Sun ONE Application Server as the Default Server
Starting a Database


Legal Notices