JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Using the Oracle Java CAPS 6.3 Installation GUI     Java CAPS Documentation
search filter icon
search icon

Document Information

Using the Java CAPS 6.3 Installation GUI

Overview of Installation

Installing the JDK Software and Setting JAVA_HOME

To Install the JDK Software and Set JAVA_HOME on a UNIX System

To Install the JDK Software and Set JAVA_HOME on a Windows System

Installing Java CAPS Using the Java CAPS Installer

To Install Java CAPS Components Using the Java CAPS Installer

Enabling Oracle Advanced Queueing

To Create the Java CAPS Advanced Queue User

To Install Advanced Queueing Support After Installing Java CAPS

To Allow Enterprise Manager to Delete Advanced Queue Messages

Enabling WebLogic JMS for Java CAPS

To Install WebLogic JMS Support After Installing Java CAPS

Adding the GlassFish Server to the NetBeans IDE

To Add the GlassFish Server

Installing Components Using the NetBeans IDE Update Center

To Install Components Using the NetBeans IDE Update Center

Installing Java CAPS Components Using the Java CAPS Uploader

To Install Java CAPS Components Using the Java CAPS Uploader

To Download and Expand ZIP Files Using the Java CAPS Uploader

Installing Plugins Using Enterprise Manager Web Applications Manager

To Install Java CAPS Plugins Using the Enterprise Manager Web Applications Manager

Starting and Stopping Java CAPS

Connecting to the Java CAPS Repository From the NetBeans IDE

To Connect to Java CAPS Repository from the NetBeans IDE

Creating a Windows Service for the GlassFish Domain

To Create the Windows Service

To Start, Stop, and Delete the Service

Increasing the NetBeans IDE Heap Size

To Increase the Heap Size in NetBeans IDE

Importing Java CAPS Sample Projects

To Import a Repository Sample Project

Creating a Windows Service for the GlassFish Domain

After you install Java CAPS, you can create a Windows Service for the Java CAPS domain in GlassFish by running a script that uses a tool provided with GlassFish ES specifically for this purpose. The script in the instructions below requires you to create a password file.

To Create the Windows Service

  1. Create a text file named passwordfile and save it to a local directory. Add the following text to the file:

    AS_ADMIN_ADMINPASSWORD=password

    AS_ADMIN_MASTERPASSWORD=password

    AS_ADMIN_PASSWORD=password


    Note - Substitute the actual values for password in the text above.


  2. Save and close the password file.
  3. Enter the following at the command line.

    Caution

    Caution - This text, and the text in the example below, has been wrapped for readability. When you enter this command, enter it all on one line and substitute a space for each line break.


    C:\WINDOWS\system32\sc.exe create service-name 
    binPath= "fully-qualified-path-to-appservService.exe 
    \"fully-qualified-path-to-asadmin.bat 
    start-domain --user admin --passwordfile 
    fully-qualified-path-to-password-file domain-name\" 
    \"fully-qualified-path-to-asadmin.bat stop-domain domain-name\"" 
    start= auto DisplayName= "display-name"

    where:

    • service-name is the name you want to give the service; for example, “DOMAIN1”.

    • domain-name is the name of the domain you are creating the service for. The default domain is named domain1.

    • display-name is the name of the service as you want it to appear on the Services window.

    The following example creates a service named “Java CAPS DOMAIN1” that starts and stops the domain named domain1, which was installed in the default Java CAPS location. It uses the password file JavaCAPS_Home\appserver\passwordfile. Again, in an actual command line, this would be entered all in one line with spaces in place of the line breaks below.

    C:\\system32\sc.exe create DOMAIN1 
    binPath= "JavaCAPS_Home\appserver\lib\appservServer.exe 
    \"JavaCAPS_Home\appserver\bin\asadmin.bat 
    start-domain --user admin --passwordfile JavaCAPS_Home\appserver\passwordfile 
    domain1\" 
    \"JavaCAPS_Home\appserver\bin\asadmin.bat stop-domain domain1\""
    start= auto DisplayName= "JavaCAPS DOMAIN1"

    The output is [SC] CreateService SUCCESS.

  4. To ensure that the stcms server shuts down properly when GlassFish is running as a Windows server, add the following line to the jvm-options section of JavaCAPS_Home\appserver\domains\DomainName\config\domain.xml:
    <jvm-options>-Dcom.sun.enterprise.server.ss.ASQuickStartup=false</jvm-options>

To Start, Stop, and Delete the Service

In the following commands, DomainName is the name of the domain you are using for Java CAPS. By default, this is domain1.

  1. To start the Service, enter the following at the command prompt:

    net start DomainName


    Note - The output is The SunJavaSystemAppServer DOMAIN1 service is starting.. and The SunJavaSystemAppServer DOMAIN1 service was started successfully.


  2. To stop the Service, enter the following at the command prompt:

    net stop DomainName

  3. To delete the Service, enter the following at the command prompt:

    sc delete DomainName