Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java Enterprise System Installation Guide for Microsoft Windows 

Chapter 9
Starting and Stopping Components

This chapter provides instructions for starting and stopping Sun Java™ Enterprise System (Java ES) components that have been installed and configured. You can use the procedures in this chapter to verify that the components are operational.

This chapter includes the following sections:


Prerequisites

Before using the procedures in this chapter, you should have completed all the post-installation configuration tasks specified in Chapter 7, "Configuring Components After Installation".


Note

If you used the Configure Automatically During Installation option, see the summary.txt file in the installation root location for information regarding each product.



Startup Sequence for Java Enterprise System

Directory Server and your web container (Web Server or an application server) should be started first to start other services. Sun Java Enterprise System creates instances of these services during installation. Since Portal Server and Access Manager run inside the web container, they can be accessed only when you start the web container.


Starting and Stopping Access Manager

Access Manager depends on Directory Server and a web container to function as expected. Access Manager can be deployed into the following web containers:

By default, the web container is started when you complete your installation. Directory Server must also be running for Access Manager to function.

Access Manager does not have any start or stop entries in the Services Panel. Neither does it have any script, .exe, or .bat files.


Starting and Stopping Administration Server

Administration Server depends on Directory Server to function. By default, the Administration Server is started when you complete your installation.

You can also start and stop Administration Server by accessing the .bat file in the bin folder of the install directory. The other option is to start it from the Services.

    To Start Administration Server From Start Menu
  1. Choose Start > Sun Microsystems > Administration Server > Start Server.
    To Start Administration Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Sun Java System Administration Server from the Services list and do any of the following:
    • Right-click and select Start.
    • Click the Start service icon.
    • Select Start from the Action Menu.
    To Start Administration Server From start-admin.bat
  1. Go to INSTALLDIR]\Server-Root.
  2. Click start-admin.bat to start the Administration Server processes.

    Note

    To restart Administration Server, click [INSTALLDIR]\Server-Root\restart-admin.bat.


    To Stop Administration Server From the Console
  1. From the System Server Console tree view pane on the left, click DOMAINNAME] > [HOSTNAME] > Server Groups to expand each of the nodes.
  2. Click Administration Server.
  3. The Administration Server Console appears on the left.

  4. Click Open to view the task tab.
  5. Click Stop Server from the task tab and the Administration Server is shut down.
    To Stop Administration Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services
  4. Select Sun Java System Administration Server from the Services list and do one of the following:
    • Right-click and select Stop.
    • Click the Stop service icon.
    • Select Stop from the Action Menu.
    To Stop Administration Server From stop-admin.bat
  1. Go to INSTALLDIR]\Server-Root.
  2. Click stop-admin.bat to stop the Administration Server processes.


Starting and Stopping Application Server

Application Server depends on Message Queue to function. By default, the Application Server is started when you complete your installation.

You can also start and stop the Application server by accessing the .bat file in the bin folder of the install directory. You cannot start or stop it from the Services list.

    To Start Application Server Domain
  1. Go to INSTALLDIR]\ApplicationServer\bin.
  2. Execute the following command to start the Application Server Domain:
  3. asadmin start-domain --user <AdminUserID> --password <AdminPassword> <domainName>

    For example, execute the following command to start domain1 with AdminUserID admin and AdminPassword admin123:

    asadmin start-domain --user admin --password admin123 domain1

    To Stop Application Server Domain
  1. Go to INSTALLDIR]\ApplicationServer\bin.
  2. Execute the following command to stop the Application Server Domain:
  3. asadmin stop-domain <domainName>

    For example, execute the following command to stop domain1:

    asadmin stop-domain domain1

    To Start Application Server Instance
  1. Go to INSTALLDIR]\ApplicationServer\bin.
  2. Execute the following command to start the Application Server Instance:
  3. asadmin start-instance --port <AdminPort> --user <AdminUserID> --password <AdminPassword> <instanceName>

    For example, execute the following command to start instance1 on AdminPort 4850 with AdminUserID admin with AdminPassword admin123:

    asadmin start-instance --port 4850 --user admin --password admin123 instance1

    To Stop Application Server Instance
  1. Go to INSTALLDIR]\ApplicationServer\bin.
  2. Execute the following command to stop the Application Server Instance:
  3. asadmin stop-instance --port <AdminPort> --user <AdminUserID> --password <AdminPassword> <instanceName>

    For example, execute the following command to stop instance1 on AdminPort 4850 with AdminUserID admin with AdminPassword admin123:

    asadmin stop-instance --port 4850 --user admin --password admin123 instance1

    To Start Application Server Agent
  1. Go to INSTALLDIR]\ApplicationServer\bin.
  2. Execute the following command to start the Application Server Agent:
  3. asadmin start-node-agent --port <AdminPort> --user <AdminUserID> --password <AdminPassword> <nodeAgentName>

    For example, execute the following command to start [HOSTNAME] on AdminPort 4850 with AdminUserID admin with AdminPassword admin123:

    asadmin start-node-agent --port 4850 --user admin --password admin123 [HOSTNAME]

    To Stop Application Server Agent
  1. Go to INSTALLDIR]\ApplicationServer\bin.
  2. Execute the following command to stop the Application Server Agent:
  3. asadmin stop-node-agent <nodeAgentName>

    For example, execute the following command to stop [HOSTNAME]:

    asadmin stop-node-agent [HOSTNAME]


Starting and Stopping Calendar Server

Calendar Server depends on Directory Server to function. By default, the Calendar Server is started when you complete your installation.

Calender Server has the following services. These are can be started and stopped from control panel service entries.

    To Start Calendar Server From Start Menu
  1. Choose Start > Sun Microsystems > Calendar Server > Start Server.
    To Start Calendar Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select the Calendar Server Service you want to start from the Services list and do one of the following:
    • Right-click and select Start.
    • Click the Start service icon.
    • Select Start from the Action Menu.
    To Start Calendar Server From start-cal.bat
  1. Go to INSTALLDIR]\Calendar Server\bin.
  2. Click start-cal.bat to start the Calendar Server processes.
    To Stop Calendar Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select the Calendar Server Service you want to stop from the Services list and do one of the following:
    • Right-click and select Stop.
    • Click the Stop service icon.
    • Select Stop from the Action Menu.


Starting and Stopping Directory Server

By default, the Directory Server is started when you complete your installation.

You can also start and stop the Directory Server by accessing the .bat file in the bin folder of the install directory. The other option is to start it from the Services list.

Starting Directory Server

    To Start Directory Server From Start Menu
  1. Choose Start > Sun Microsystems > Administration Server > Start Server.
    To Start Directory Sever From Administration Server Console
  1. Choose Start > Sun Microsystems > Administration Server > Administration Server Console 5.2.
  2. The System Server Login screen appears.

  1. Enter the User ID and Password. Select the Administrative URL, then click OK.
  2. The System Server Console appears.

  1. From the System Server Console tree view pane on the left, click DOMAINNAME] > [HOSTNAME] > Server Groups to expand each of the nodes.
  2. Click the Directory Server.
  3. The Directory Server Console appears on the left pane.

  1. Click Open to view the task tab. The server should normally be running.
  2. In case the server was stopped, it can be started by clicking the Start Directory Server button. The Status log is displayed.
    To Start Directory Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Directory Server from the Services list and do one of the following:
    • Right-click and select Start.
    • Click the Start service icon.
    • Select Start from the Action Menu.
    To Start Directory Server From start-slapd.bat
  1. Go to INSTALLDIR]\Server-Root\<Instance Folder>.
  2. Click start-slapd.bat to start the Directory Server processes.

    Note

    To restart Directory Server click [INSTALLDIR]\Server-Root\<Instance Folder>\restart-slapd.bat.


Stopping Directory Server

    To Stop Directory Server From Console
  1. From the System Server Console tree view pane on the left, click [DOMAINNAME] > [HOSTNAME] > Server Groups to expand each of the nodes.
  2. Click the Directory Server.
  3. The Directory Server Console appears with the task tab visible.

  4. Click Open to view the task tab.
  5. Click the Stop Directory Server from the task tab and the server is shut down. The Status log is displayed.
    To Stop Directory Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Directory Server from the Services list and do one of the following:
    • Right-click and select Stop.
    • Click the Stop service icon.
    • Select Stop from the Action Menu.
    To Stop Directory Server From stop-slapd.bat
  1. Go to INSTALLDIR]\Server-Root\<Instance Folder>.
  2. Click stop-slapd.bat to stop the Directory Server processes.


Starting and Stopping Directory Proxy Server

Directory Proxy Server depends on Administration Server to function. By default, the Directory Proxy Server is started when you complete your installation.

You can also start and stop the Directory Proxy Server through Administration Server Console. The other option is to start it from the Services list.

    To Start Directory Proxy Server From Start Menu
  1. Choose Start > Sun Microsystems > Directory Proxy Server > Start Server.
    To Start Directory Proxy Server From Admin Server
  1. Choose Start > Sun Microsystems > Administration Server > Administration Server Console 5.2.
  2. The System Server Login screen appears.

  3. Enter the User ID and Password. Select the Administrative URL, and then click OK.
  4. The System Server Console appears.

  5. From the System Server Console tree view pane on the left, click [DOMAINNAME] > [HOSTNAME] > Server Groups to expand each of the nodes.
  6. Click the Directory Proxy Server.
  7. The Directory Proxy Server Console appears on the left pane.

  8. Click Open to view the task tab. The server should normally be running.
  9. In case the server was stopped, it can be started by clicking the Start Directory Server button.
    To Start Directory Proxy Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services
  4. Select Directory Proxy Server from the Services list and do one of the following:
    • Right-click and select Start.
    • Click the Start service icon.
    • Select Start from the Action Menu.

      Note

      To check the Directory Proxy Server status click [INSTALLDIR]\Server-Root\dps-[INSTANCE_NAME]\status-dps.exe.


    To Start Directory Proxy Server Instance from start-dps.exe
  1. Go to INSTALLDIR]\Server-Root\dps-[INSTANCE_NAME].
  2. Click start-dps.exe to start the Directory Proxy Server processes.

    Note

    To restart Directory Proxy Server click [INSTALLDIR]\Server-Root\dps-[INSTANCE_NAME]\restart-dps.exe.


    To Stop Directory Proxy Server From Console
  1. From the System Server Console tree view pane on the left, click [DOMAINNAME] > [HOSTNAME] > Server Groups to expand each of the nodes.
  2. Select the Directory Proxy Server.
  3. The Directory Proxy Server Console appears on the left pane.

  4. Click Open to view the task tab.
  5. Click the Stop Directory Proxy Server from the task tab and the server is shut down.
    To Stop Directory Proxy Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services
  4. Select Directory Proxy Server from the Services list and do one of the following:
    • Right-click and select Stop.
    • Click the Stop service icon.
    • Select Stop from the Action Menu.
    To Stop Directory Proxy Server Instance From stop-dps.exe
  1. Go to INSTALLDIR]\Server-Root\dps-[INSTANCE_NAME].
  2. Click stop-dps.exe to stop the Directory Proxy Server processes.


Starting and Stopping HADB Management Agent

The HADB is started by default when Sun Java Enterprise System is successfully configured and running.

The HADBMgmtAgent service should be registered and running in the services panel on successful configuration of HADB. Follow the procedure below to stop the HADB.

    To Stop HADB From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select HADBMgmtAgent service you want to stop from the Services list and do one of the following:
    • Right-click and select Stop.
    • Click the Stop service icon.
    • Select Stop from the Action Menu.


Starting and Stopping Instant Messaging

Instant Messaging depends on Directory Server and Web Server to function. By default, Instant Messaging starts when you complete your installation.

You can also start and stop the Instant Messaging by accessing the .bat file in the bin folder of the install directory. The other option is to start it from the Services list.

    To Start Instant Messaging From Start Menu
  1. Choose Start > Sun Microsystems > Instant Messaging > Start Server.
    To Start Instant Messaging From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Instant Messaging from the Services list and do one of the following:
    1. Right-click and select Start.
    2. Click the Start service icon.
    3. Select Start from the Action Menu.
    To Start Instant Messaging From imadmin.bat
  1. Go to INSTALLDIR]\Instant Messaging\bin.
  2. Run imadmin.bat start to start the Instant Messaging server.
  3. This batch file starts the Sun Java System Instant Messaging Instance.

    To Stop Instant Messaging
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Instant Messaging from the Services list and do one of the following:
    1. Right-click to and select Stop.
    2. Click the Stop service icon.
    3. Select Stop from the Action Menu.
    To Stop Instant Messaging From imadmin.bat
  1. Go to INSTALLDIR]\Instant Messaging\bin.
  2. Run imadmin.bat stop to stop Instant Messaging server.
  3. This batch file stops the Sun Java System Instant Messaging Instance.


Starting and Stopping Message Queue

Message Queue has no dependencies. By default, the Java Enterprise System installer installs Message Queue for automatic startup on Windows. At times, you may want to start or stop the Message Queue service on Windows.

    To Start the Message Queue From the Windows Start Menu
  1. Choose Start > Sun Microsystems > Java ES > Message Queue > Message Broker.
    To Start Message Queue Using Windows Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Message Queue Broker from the Services list, and do one of the following:
    • Right-click and select Start.
    • Click the Start Service icon.
    • Select Start from the Action Menu.
    To Stop Message Queue Using Windows Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Message Queue Broker from the Services list, and do one of the following.
    • Right-click and select Stop.
    • Click the Stop Service icon.
    • Select Message Queue from Services list.


Starting and Stopping Messaging Server

Messaging Server depends on Directory Server and Administration Server. By default all services of Messaging Server is started when you complete your installation in Configure Automatically During Installation mode.

You can also start and stop all services or choose the ones you require by selecting the respective options form Messaging server by using the start-msg.bat or stop-msg.bat file in the [INSTALLDIR]\[Server-Root]\sbin folder. If no options are selected all services are started by default. The other option is to start it from the Services.

    To Start Messaging Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services
  4. Select Messaging Server from Services list.
  5. Select the properties of the service and change the logon to logged on user and do one of the following:
    • Right click and select Start.
    • Click the Start service icon.
    • Select Start from the Action Menu.
    To Start Messaging Server From start-msg.bat
  1. Go to INSTALLDIR]\[server-root]\sbin.
  2. Click start-msg.bat to start the Messaging Server processes.
    To Stop Messaging Server
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Messaging Server from Services list and do one of the following:
    • Right-click and select Stop.
    • Click the Stop service icon.
    • Select Stop from the Action Menu.
    To Stop Messaging Server From stop-msg.bat
  1. Go to INSTALLDIR]\[server-root]\sbin.
  2. Click stop-msg.bat to stop the Messaging Server processes.


Starting and Stopping Portal Server

The Portal Server startup and shutdown mechanisms are part of the startup and shutdown mechanisms for the web container (either Web Server or an application server). Portal Server depends on Directory Server, Access Manager or Access Manager SDK, and a web container.

By default the Portal Server is started when you complete your installation.


Note

As a part of Portal Server, Mobile Access is not stopped and started on its own. When you start Portal Server or Access Manager, Mobile Access is automatically started.



Starting and Stopping Service Registry

Service Registry depends on Application Server to function. By default, the Service Registry is started when you complete your installation.

You can also start and stop the Service Registry through Command prompt.

    To Start Service Registry From Command Prompt

Execute startserv.bat which is in <INSTALLDIR>\ServiceRegistry\domains\registry\bin

    To Stop Service Registry From Command Prompt

Execute stopserv.bat which is in <INSTALLDIR>\ServiceRegistry\domains\registry\bin


Starting and Stopping Web Proxy Server

    To Start Proxy Admin Server Service From Command Prompt

Execute startsvr.bat which is in <INSTALLDIR>\ < admin-service id>\

Default admin-service id is proxy-admserv

    To Stop Proxy Admin Server Service From Command Prompt

Execute stopsvr.bat which is in <INSTALLDIR>\ < admin-service id>\

Default admin-service id is proxy-admserv

    To Start Proxy Server Service From Command Prompt

Execute startsvr.bat which is in <INSTALLDIR>\ < proxy-service id>\

Default proxy-service id is proxy-server1

    To Stop Proxy Server Service From Command Prompt

Execute stopsvr.bat which is in <INSTALLDIR>\ < proxy-service id>\

Default proxy-service id is proxy-server1

    To Start Sock Server Service From Command Prompt

Execute startsockd.bat which is in <INSTALLDIR>\ < proxy-service id>\

Default proxy-service id is proxy-server1

    To Stop Sock Server Service From Command Prompt

Execute stopsockd.bat which is in <INSTALLDIR>\ < proxy-service id>\

Default proxy-service id is proxy-server1

    To Start Proxy Admin Server service From Start Menu

Start->Programs->Sun Microsystems->Web Proxy Server->Start Admin Server

    To Start Proxy Server Service From Start Menu

Start->Programs->Sun Microsystems->Web Proxy Server->Start Proxy Server

    To Stop Proxy Server Service From Start Menu

Start->Programs->Sun Microsystems->Web Proxy Server->Stop Proxy Server


Starting and Stopping Web Server

Web Server has no dependencies.

    To Start the Web Server From Windows Start Menu Console
  1. Choose Start > Sun Microsystems > Web Server > Start Web Server Administrator Server.
  2. The cmd screen comes up.

    To Start and Stop the Web Server Using Web Server Administration Server
  1. Choose Start > Sun Microsystems > Web Server > Administration Web Server.
  2. The Web Server 6.1 Administration Server Login screen appears.

  3. Enter the User Name and Password, then click OK.
  4. The Web Server 6.1 Administration Server screen appears.

  1. Select a Server from the drop down list, and Click Manage.
  2. The Server Manager screen appears.

  1. Click Server On.
  2. The Web Server is started and a confirmation dialog box appears stating, Success! the server has started up.

  1. To Stop the Web Server, click Server Off.
  2. The Web Server stops and a confirmation dialog box appears stating, Success! the server has been shut down.

    To Start Web Server From Services
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services
  4. Select Web Server 6.1 from Services list and do one of the following:
    • Right-click and select Start.
    • Click the Start service icon.
    • Click Action Menu and click Start option
  5. Select Sun Java System Web Server 6.1 Administration Server and repeat step 4, to start the Web Server.
    To Start Web Server From startsvr.bat
  1. Go to [INSTALLDIR]\WebServer\https-admserv.
  2. Click startsvr.bat to start the Web Server processes.
    To Start Web Server Instance From startsvr.bat
  1. Go to [INSTALLDIR]\WebServer\https-[INSTANCE_NAME].
  2. Click startserv.bat to start the Web Server processes.
    To Stop Web Server
  1. Choose Start > Settings > Control Panel.
  2. Select Administrative Tools.
  3. Select Services.
  4. Select Web Server 6.1 from Services list and do one of the following:
    • Right-click and select Stop.
    • Click the Stop service icon.
    • Select Stop from the Action Menu.
  5. Select Sun Java System Web Server 6.1 Administration Server and repeat step 4, to stop the Web Server.
    To Stop Web Server From stopsvr.bat
  1. Go to [INSTALLDIR]\WebServer\https-admserv\stopsvr.bat.
  2. Click stopsvr.bat to stop the Web Server processes.
    To Stop Web Server Instance From stopsvr.bat
  1. Go to [INSTALLDIR]\WebServer\ https-[INSTANCE_NAME]\stopsvr.bat.
  2. Click stopsvr.bat to stop the Web Server processes.


Next Steps

If you have completed the tasks described in this chapter, you have verified that the Sun Java Enterprise System components that you installed and configured are functional.

You can now begin administering your components. The following documentation can help you get started:



Previous      Contents      Index      Next     


Part No: 819-4280-10.   Copyright 2006 Sun Microsystems, Inc. All rights reserved.