Advertisement
Guest User

non worknig server.xml file

a guest
Oct 3rd, 2014
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.65 KB | None | 0 0
  1. <server description="new server">
  2.  
  3.     <!-- Enable features -->
  4.     <featureManager>
  5.         <feature>jsp-2.2</feature>
  6.         <feature>ssl-1.0</feature>
  7.         <feature>servlet-3.0</feature>
  8.         <feature>jdbc-4.0</feature>
  9.         <feature>jndi-1.0</feature>
  10.         <feature>restConnector-1.0</feature>
  11.         <feature>appSecurity-2.0</feature>
  12.         <feature>localConnector-1.0</feature>
  13.     </featureManager>
  14.  
  15.     <httpEndpoint host="*" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint">      
  16.         <tcpOptions soReuseAddr="true"/>
  17.     </httpEndpoint>
  18.  
  19.  
  20.     <!-- Declare the IBM Application Center Console application. -->
  21.     <application id="appcenterconsole" location="appcenterconsole.war" name="appcenterconsole" type="war">
  22.         <application-bnd>
  23.             <security-role name="appcenteradmin">
  24.                 <group name="appcentergroup"/>
  25.             </security-role>
  26.         </application-bnd>
  27.     </application>
  28.  
  29.     <!-- Declare the IBM Application Center Services application. -->
  30.     <application id="applicationcenter" location="applicationcenter.war" name="applicationcenter" type="war">
  31.         <application-bnd>
  32.             <security-role name="appcenteradmin">
  33.                 <group name="appcentergroup"/>
  34.             </security-role>
  35.              <security-role name="appcenterdownloaders">
  36.                 <group name="appcenterdownloadersgroup"/>
  37.             </security-role>
  38.         </application-bnd>
  39.         <classloader delegation="parentLast">
  40.             <commonLibrary>
  41.                 <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil_1.0.jar"/>
  42.             </commonLibrary>
  43.         </classloader>
  44.     </application>
  45.  
  46.     <!-- Declare the user registry for the IBM Application Center. -->
  47.     <basicRegistry id="applicationcenter-registry" realm="worklightRealm">
  48.         <user name="ptiwari" password="ptiwari"/>
  49.  
  50.         <!-- The users defined here are members of group "appcentergroup",
  51.             thus have role "appcenteradmin", and can therefore perform
  52.             administrative tasks through the IBM Application Center Console. -->
  53.         <user name="appcenteradmin" password="admin"/>
  54.        
  55.         <group name="appcentergroup">
  56.             <member name="appcenteradmin"/>
  57.             <member name="ptiwari"/>
  58.             <member name="avetter"/>
  59.             <member name="sbhandari"/>
  60.             <member name="rchauhan"/>
  61.         </group>
  62.         <user name="demo" password="demo"/>
  63.         <user name="monitor" password="demo"/>
  64.         <user name="deployer" password="demo"/>
  65.         <user name="operator" password="demo"/>
  66.         <user name="admin" password="admin"/>
  67.        
  68.         <user name="avetter" password="avetter"/>
  69.         <user name="sbhandari" password="sbhandari"/>
  70.         <user name="rchauhan" password="rchauhan"/>
  71.     </basicRegistry>
  72.  
  73.     <!-- Declare the JNDI properties for the IBM Application Center. -->
  74.    
  75.     <!-- Define the AppCenter services endpoint in order for the AppCenter console to be able to invoke the REST service.
  76.            You need to enable this property if the server is behind a reverse proxy
  77.            or if the context root of the Application Center Services application is different from '/applicationcenter'. -->
  78.     <!-- <jndiEntry jndiName="ibm.appcenter.services.endpoint" value='"http://proxyhost:proxyport/applicationcenter"'/> -->
  79.     <!-- The directory with binaries of the 'aapt' program, from the Android SDK's platform-tools package. -->
  80.     <jndiEntry jndiName="android.aapt.dir" value="&quot;/opt/IBM/Worklight/ApplicationCenter/tools/android-sdk&quot;"/>
  81.     <!-- The protocol of the application resources URI. This property is optional. It is only needed if the protocol of the external and internal URI are different. -->
  82.     <!-- <jndiEntry jndiName="ibm.appcenter.proxy.protocol" value='"http"'/> -->
  83.     <!-- The hostname of the application resources URI. -->
  84.     <!-- <jndiEntry jndiName="ibm.appcenter.proxy.host" value='"proxyhost"'/> -->
  85.     <!-- The port of the application resources URI. This property is optional. -->
  86.     <!-- <jndiEntry jndiName="ibm.appcenter.proxy.port" value="proxyport"/> -->
  87.  
  88.     <!-- Declare the jar files for DB2 access through JDBC. -->
  89.     <library id="DB2Lib">
  90.         <fileset dir="${shared.resource.dir}/db2" includes="*.jar"/>
  91.     </library>
  92.  
  93.     <!-- Declare the IBM Application Center database. -->
  94.     <dataSource jndiName="jdbc/AppCenterDS" transactional="false">
  95.         <jdbcDriver libraryRef="DB2Lib"/>
  96.         <properties.db2.jcc databaseName="APPCNTR" driverType="4" password="**********" portNumber="60006" serverName="1.2.3.4" user="username"/>
  97.     </dataSource>
  98.  
  99.     <!-- End of configuration added by IBM Worklight installer. -->
  100.  
  101. <!--
  102.    IBM Worklight requires SSL and declared the "defaultKeyStore" default keystore.
  103.        [Added by IBM Worklight <installWorklightAdmin> Ant task for context root '/wladmin']
  104.    This configuration is the minimum one that you need to create an SSL configuration.
  105.    With this configuration, the Liberty server creates the keystore and the certificate,
  106.    if it does not exist yet, during the SSL initialization.
  107.    The created certificate is a self-signed certificate that is valid for 365 days.
  108.    Do not use the certificates that the Liberty server created for production use.
  109.    For more information see  http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.wlp.core.doc/ae/twlp_sec_ssl.html
  110. -->
  111.    
  112.     <keyStore id="defaultKeyStore" password="{xor}KDAtNDM2ODcrCh4L"/>
  113.    
  114.     <!-- <keyStore id="defaultKeyStore" password="**********"/> -->
  115.  
  116.     <administrator-role>
  117.         <user>ptiwari</user>
  118.     </administrator-role>
  119.  
  120.     <jndiEntry jndiName="ibm.worklight.admin.jmx.host" value="1.2.3.4"/>
  121.     <jndiEntry jndiName="ibm.worklight.admin.jmx.port" value="9443"/>
  122.     <jndiEntry jndiName="ibm.worklight.admin.jmx.user" value="ptiwari"/>
  123.     <jndiEntry jndiName="ibm.worklight.admin.jmx.pwd" value="**********"/>
  124.     <jndiEntry jndiName="ibm.worklight.topology.platform" value="Liberty"/>
  125.     <jndiEntry jndiName="ibm.worklight.topology.clustermode" value="Standalone"/>
  126.    
  127.     <!-- Declare the IBM Worklight Administration database. -->
  128.     <dataSource jndiName="jdbc/WorklightAdminDS" transactional="false">
  129.         <jdbcDriver libraryRef="DB2Lib"/>
  130.         <properties.db2.jcc currentSchema="WLADMIN" databaseName="WRKLGHT" driverType="4" password="**********" portNumber="60006" serverName="1.2.3.4" user="username"/>
  131.     </dataSource>
  132.  
  133.     <!-- Declare the Worklight Administration Console application. -->
  134.     <application id="worklightconsole" location="worklightconsole.war" name="worklightconsole" type="war">
  135.         <application-bnd>
  136.             <security-role name="worklightadmin">
  137.                 <user name="ptiwari"/>
  138.             </security-role>
  139.  
  140.             <security-role name="worklightdeployer">
  141.                 <user name="ptiwari"/>
  142.             </security-role>
  143.  
  144.             <security-role name="worklightmonitor">
  145.                 <user name="ptiwari"/>
  146.             </security-role>
  147.  
  148.             <security-role name="worklightoperator">
  149.                 <user name="ptiwari"/>
  150.             </security-role>
  151.  
  152.         </application-bnd>
  153.  
  154.     </application>
  155.  
  156.     <!-- Declare web container custom properties for the Worklight Administration Console application. -->
  157.     <webContainer deferServletLoad="false" invokeFlushAfterService="false"/>
  158.  
  159.     <!-- Declare the JNDI properties for the Worklight Administration Console. -->
  160.     <!-- <jndiEntry jndiName="worklightconsole/ibm.worklight.admin.environmentid" value="WL_UAT_Server_Config"/> -->
  161.  
  162.     <!-- End of configuration added by IBM Worklight <installWorklightAdmin> ant task for context root '/wladmin'. -->
  163.  
  164.  
  165.     <!-- <basicRegistry id="worklight" realm="worklightRealm"/> -->
  166.  
  167.     <webContainer com.ibm.ws.webcontainer.suppressLoggingServiceRuntimeExcep="true" deferServletLoad="false" invokeFlushAfterService="false"/>
  168. <!--
  169.     change Worklight server side logging:
  170.     change consoleLogLevel to INFO to see Worklight JavaScript Logger API output
  171.     (for example: in Worklight Adapters).
  172. -->
  173.     <logging consoleLogLevel="AUDIT" copySystemStreams="false"/>
  174.     <logging maxFileSize="20" maxFiles="10" traceFileName="trace.log" traceFormat="BASIC" traceSpecification="com.worklight.*=all"/>
  175.  
  176.     <applicationMonitor updateTrigger="mbean"/>
  177. <!--
  178.     Disabling security integration
  179. -->
  180.     <httpSession securityIntegrationEnabled="false"/>
  181. <!--
  182.     Declare the IBM Worklight Admin Services application.
  183. -->
  184.     <application context-root="worklightadmin" id="worklight-management-service" location="worklight-management-service.war" name="WorklightServices" type="war">
  185.         <application-bnd>
  186.             <security-role name="worklightadmin">
  187.                 <user name="ptiwari"/>
  188.                         <user name="admin"/>
  189.             </security-role>
  190.                 <security-role name="worklightdeployer">
  191.                 <user name="ptiwari"/>
  192.                         <user name="deployer"/>
  193.             </security-role>
  194.                 <security-role name="worklightmonitor">
  195.                 <user name="ptiwari"/>
  196.                         <user name="monitor"/>
  197.             </security-role>
  198.                 <security-role name="worklightoperator">
  199.                 <user name="ptiwari"/>
  200.                         <user name="operator"/>
  201.             </security-role>
  202.         </application-bnd>
  203.         <classloader delegation="parentLast">
  204.             <privateLibrary>
  205.                 <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil*.jar"/>
  206.             </privateLibrary>
  207.         </classloader>
  208.     </application>
  209. <!--
  210.     Declare the IBM Worklight Admin Console application.
  211. -->
  212.  
  213. <!--
  214.     ... Worklight Console settings END
  215. -->
  216.    
  217.  
  218.     <library id="worklight-6.2.0">
  219.         <fileset dir="${wlp.user.dir}/shared/resources" includes="worklight-jee-library-6.2.0.jar"/>
  220.         <fileset dir="${wlp.install.dir}/lib" includes="com.ibm.ws.crypto.passwordutil*.jar"/>
  221.     </library>
  222.  
  223.  
  224.     <application context-root="/_analytics" id="_analytics" location="_analytics.war" name="_analytics" type="war">
  225.         <classloader delegation="parentLast"/>
  226.     </application>
  227.  
  228.    
  229.     <!-- Declare the IBM Worklight Server database. -->
  230.     <!-- <dataSource jndiName="MyProject/jdbc/WorklightDS" transactional="false">
  231.        <jdbcDriver libraryRef="DB2Lib"/>
  232.        <properties.db2.jcc currentSchema="WRKLGHT" databaseName="WRKLGHT" driverType="4" password="**********" portNumber="60006" serverName="1.2.3.4" user="username"/>
  233.    </dataSource> -->
  234.  
  235.     <!-- Declare the IBM Worklight Server reports database.-->
  236.     <!-- <dataSource jndiName="MyProject/jdbc/WorklightReportsDS" transactional="false">
  237.        <jdbcDriver libraryRef="DB2Lib"/>
  238.        <properties.db2.jcc currentSchema="WLREPORT" databaseName="WRKLGHT" driverType="4" password="**********" portNumber="60006" serverName="1.2.3.4" user="username"/>
  239.    </dataSource> -->
  240.  
  241.    
  242.  
  243.     <jndiEntry jndiName="MyProject/wl.analytics.queue.size" value="1"/>
  244.  
  245.     <jndiEntry jndiName="MyProject/wl.analytics.url" value="http://localhost:9080/_ana lytics/data"/>
  246.  
  247.  
  248.    <!--  <application context-root="/MyProject" id="MyProject" location="MyProject.war" name="MyProject" type="war">
  249.        <classloader commonLibraryRef="worklight-6.2.0">
  250.            <privateLibrary>
  251.                <fileset dir="${wlp.user.dir}/shared/resources" includes="org.hsqldb.hsqldb_2.2.5.jar"/>
  252.            </privateLibrary>
  253.        </classloader>
  254.    </application> -->
  255.  
  256.     <application id="_MobileBrowserSimulator" location="_MobileBrowserSimulator.war" name="_MobileBrowserSimulator" type="war"/>
  257.  
  258.     <!-- Begin of configuration added by IBM Worklight <configureApplicationServer> ant task for context root '/MyProject'. -->
  259.  
  260.     <!-- Declare the IBM Worklight project runtime application. -->
  261.     <application id="MyProject" name="MyProject" location="MyProject.war" type="war">
  262.         <classloader delegation="parentLast">
  263.             <privateLibrary>
  264.                 <fileset dir="${shared.resource.dir}/MyProject/lib" includes="worklight-jee-library.jar"/>
  265.             </privateLibrary>
  266.         </classloader>
  267.     </application>
  268.  
  269.     <!-- Declare the JNDI properties for the IBM Worklight project runtime. -->
  270.     <jndiEntry jndiName="MyProject/publicWorkLightProtocol" value='"http"'/>
  271.     <jndiEntry jndiName="MyProject/publicWorkLightPort" value='"9080"'/>
  272.     <jndiEntry jndiName="MyProject/ibm.worklight.admin.environmentid" value='"WL_UAT_Config1"'/>
  273.    
  274.  
  275.     <!-- Declare the jar files for DB2 access through JDBC. -->
  276.     <library id="MyProject/DB2Lib">
  277.         <fileset dir="${shared.resource.dir}/MyProject/db2" includes="db2jcc4.jar,db2jcc_license_cu.jar"/>
  278.     </library>
  279.  
  280.     <!-- Declare the IBM Worklight Server database. -->
  281.     <dataSource jndiName="MyProject/jdbc/WorklightDS" transactional="false">
  282.         <jdbcDriver libraryRef="MyProject/DB2Lib"/>
  283.         <properties.db2.jcc databaseName="WRKLGHT" serverName="1.2.3.4" portNumber="60006" user="username" password="**********" currentSchema="WRKLGHT"/>
  284.     </dataSource>
  285.  
  286.     <!-- Declare the IBM Worklight Server reports database. -->
  287.     <dataSource jndiName="MyProject/jdbc/WorklightReportsDS" transactional="false">
  288.         <jdbcDriver libraryRef="MyProject/DB2Lib"/>
  289.         <properties.db2.jcc databaseName="WRKLGHT" serverName="1.2.3.4" portNumber="60006" user="username" password="**********" currentSchema="WLREPORT"/>
  290.     </dataSource>
  291.  
  292.     <!-- End of configuration added by IBM Worklight <configureApplicationServer> ant task for context root '/MyProject'. -->
  293.  
  294. </server>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement