Whenever you create a domain after the initial Java CAPS installation you need to add the runtime to the new domain in order to deploy any Java CAPS applications on it. This requires you to modify the install.properties files, which contains the domain configuration, and defines where to install and deploy components, as well as how to connect to the application server. You can also specify the new values for the domain name, port number, and username on the command line.
Complete the steps under Creating a New Java CAPS Domain.
Open the file appserver/addons/caps/install.properties in a text editor (where appserver is the home directory for the Java CAPS GlassFish server installation).
Modify the properties in the file to match the properties of the new domain.
You will likely need to change the following properties:
caps.domain.name.
caps.admin.port. This is typically your base port plus 48. You can look the value up in domains/DomainName/config/domain.xml. It is the port number for the admin-listener.
caps.admin.user, if you changed the default administrator user name.
AS_ADMIN_PASSWORD and AS_ADMIN_MASTERPASSWORD, if you changed the default passwords.
In addition, you need to enable the UDDI installation if you require UDDI support, and enable the STCMS installation and specify an operating system if you required STCMS support.
From a command line, navigate to the appserver/bin directory.
Run the following command:
asant -f ../addons/caps/install.xml
Restart the domain.
Continue to Installing Java CAPS JBI Components on a New Domain.