Create and Configure Service Layer
Using a web browser, connect to the Administrative Console using the appropriate server name and 9080 as the default port (Ex: server_name:9080/adminCenter" class="external-link" rel="nofollow") http://server_name:9080/adminCenter).
Note: These instructions assume that a fresh installation of the application server was performed. All configuration settings must use the default settings unless otherwise noted. If the application server has been used for previous deployments, create a new application server specifically for the deployment of the Service Layer environment.
Create the Service Layer Application Server
-
Navigate to /path/to/ibm-liberty/IBM/WebSphere/Liberty/bin.
-
Execute ./server create ServiceLayer.
-
The 'ServiceLayer' directory is created under /path/to/ibm-liberty/IBM/WebSphere/Liberty/usr/servers with a file named 'server.xml' which contains all the configurations.
-
Edit this 'server.xml' file to configure ListenAddress, ListenPorts, Application Library Path, Configuration File Path, Data Sources, etc...
-
Refer to the below 'server.xml' code for the sample configurations for the ServiceLayer.
<?xml version="1.0" encoding="UTF-8"?> <server description="new server"> <!-- Enable features --> <featureManager> <feature>jsp-2.3</feature> <feature>adminCenter-1.0</feature> <feature>websocket-1.1</feature> <feature>jdbc-4.1</feature> <feature>jaxrs-2.0</feature> <feature>jaxws-2.2</feature> <feature>appSecurity-2.0</feature> <feature>restConnector-2.0</feature> <feature>jndi-1.0</feature> <feature>distributedMap-1.0</feature> <feature>el-3.0</feature> <feature>jaxb-2.2</feature> <feature>jaxrsClient-2.0</feature> <feature>json-1.0</feature> <feature>servlet-3.1</feature> <feature>jms-2.0</feature> </featureManager> <variable name="defaultHostName" value="<Machine Host>" /> <basicRegistry id="basic"> <user name="admin" password="Welcome1" /> <user name="nonadmin" password="Welcome1" /> <user name="qatester3" password="qatester3" /> <user name="qatester1" password="qatester1" /> <user name="sladmin" password="sladmin123" /> <group name="POLICY_GRP"> <member name="qatester3"/> <member name="qatester1"/> <member name="sladmin"/> </group> <group name="CLIENT_GRP"> <member name="qatester3"/> </group> <group name="SLADMIN_GRP"> <member name="qatester3"/> </group> <group name="SL_ADMIN"> <member name="qatester3"/> </group> <group name="SL_ADMIN"> <member name="sladmin"/> </group> </basicRegistry> <administrator-role> <user>admin</user> </administrator-role> <remoteFileAccess> <writeDir>${server.config.dir}</writeDir> </remoteFileAccess> <!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" --> <httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9086" httpsPort="9049" /> <!-- Automatically expand WAR files and EAR files --> <applicationManager autoExpand="true"/> <!-- PASService application section --> <webApplication contextRoot="PASService" location="PASService.war"> <classloader delegation="parentFirst"> <commonLibrary> <fileset includes="*" dir="/scratch/oipa/IBM/OIPA/SERVICELAYER/lib/"/> <fileset includes="*" dir="/scratch/oipa/IBM/OIPA/SERVICELAYER/conf/"/> <folder dir="/scratch/oipa/IBM/OIPA/SERVICELAYER/conf"/> <file name="/scratch/oipa/IBM/OIPA/SERVICELAYER/conf/Service.properties"/> </commonLibrary> </classloader> <application-bnd> <security-role name="POLICY_READ"> <group name="POLICY_GRP" /> </security-role> <security-role name="CLIENT_READ"> <group name="CLIENT_GRP" /> </security-role> <security-role name="SL_ADMIN"> <group name="POLICY_GRP"/> <group name="CLIENT_GRP"/> <group name="SLADMIN_GRP"/> <group name="SL_ADMIN"/> </security-role> <security-role name="AllAuthenticated"> <special-subject type="ALL_AUTHENTICATED_USERS" /> </security-role> </application-bnd> </webApplication> <dataSource id="SERVICEDATASOURCE" jndiName="SERVICEDATASOURCE" transactional="false" type="javax.sql.XADataSource"> <jdbcDriver libraryRef="OracleLib"/> <properties.oracle driverType="thin" serverName="db-host" portNumber="db-port" databaseName="db-SID" password="db-password" user="db-user" /> </dataSource> <library id="OracleLib"> <file name="/scratch/oipa/IBM/OIPA/ADMINCONSOLE/lib/ojdbc11-21.3.0.0.jar"/> </library> <!--logging hideMessage="SRVE9967W" /--> </server>
Note:
1. Use the above server.xml file for reference purpose only.
2. Check classloader delegation in server.xml for Service Layer if it is parentLast then change it to parentFirst
3. These instructions assume that a fresh installation of the application server was performed. All configuration settings must use the default settings unless otherwise noted. If the application server has been used for previous deployments, you may want to create a new application server specifically for the deployment of the Service Layer environment.