5 Replies Latest reply on May 25, 2015 7:03 AM by Balaji S

    JBoss AS7 and properties-service.xml

    Balaji S Newbie

      I have the properties-service.xml updated in Jboss4 with the following entries.  Please may I know what are the things have to be followed to update with the below entries and whcih files have to be updated?

       

          <attribute name="Properties">

              javax.net.ssl.trustStore=/app/documentum/ubs0167/dba/config/ubs0167/cacerts

              javax.net.ssl.trustStorePassword=changeit

          </attribute>

        • 1. Re: JBoss AS7 and properties-service.xml
          Balaji S Newbie

          I have the properties-service.xml updated in Jboss4 with the following entries.  If I wanna update properties in JBOSS 7, Please may I know what are the things have to be followed to update with the below entries and whcih files have to be updated?

           

              <attribute name="Properties">

                  javax.net.ssl.trustStore=/app/documentum/ubs0167/dba/config/ubs0167/cacerts

                  javax.net.ssl.trustStorePassword=changeit

              </attribute>

          • 2. Re: JBoss AS7 and properties-service.xml
            Jay SenSharma Master

            In JBoss AS 7 you can either add your system property directly into the configuration file or use the CLI or by manually editing the standalone.xml/host.xml.

             

            <system-properties>

                    <property name="test.prop" value="PropValue"/>

            </system-properties>

             

            ./bin/jboss-cli.sh
            [standalone@localhost:9999 /] /system-property=javax.net.ssl.trustStore:add(value=/app/documentum/ubs0167/dba/config/ubs0167/cacerts)
            [standalone@localhost:9999 /] /system-property= javax.net.ssl.trustStorePassword:add(value=changeit)
            

             

             

             

            You can also pass the system properties file via command line as following:

             

            ./standalone.sh -P=/PATH/TO/test.properties
            
            • 3. Re: JBoss AS7 and properties-service.xml
              Balaji S Newbie

              As you know we have many secetions in the standalone.xml (</extensions>, </managment>, </profile> and etc).

              do we need to insert the below piece of code within any sections of that standalone.xml?

              <system-properties>

                      <property name="test.prop" value="PropValue"/>

              </system-properties>

              • 4. Re: JBoss AS7 and properties-service.xml
                Jay SenSharma Master

                Best place is between the <extensions> and <management> tags as following:

                 

                <extensions>
                   .
                   .
                </extensions>
                
                    <system-properties>
                        <property name="javax.net.ssl.trustStore" value="/app/documentum/ubs0167/dba/config/ubs0167/cacerts"/>
                        <property name="javax.net.ssl.trustStorePassword" value="changeit"/>
                    </system-properties>
                
                <management>
                   .
                   .
                </management>
                

                 

                • 5. Re: JBoss AS7 and properties-service.xml
                  Balaji S Newbie

                  thank you!  I will check and get back to you...

                   

                  any idea, I am getting the below exception and googled the same and seems like we need to add dependencies in configuration files.  please can you provide me some details on this ?

                   

                  java.lang.ExceptionInInitializerError

                  at org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBuilder.java:97)

                  at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:86)

                  at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)

                  at org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration(FileSystemConfigurator.java:116)

                  at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:68)

                  at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:184)

                  at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:150)

                  at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:143)

                  at com.service_now.www.ServiceNow_u_ubs_hr_documentumStub.<init>(ServiceNow_u_ubs_hr_documentumStub.java:163)

                  at com.service_now.www.ServiceNow_u_ubs_hr_documentumStub.<init>(ServiceNow_u_ubs_hr_documentumStub.java:149)

                  at com.service_now.www.ServiceNow_u_ubs_hr_documentumStub.<init>(ServiceNow_u_ubs_hr_documentumStub.java:197)

                  at com.ubs.hrdms.documentum.snow.SnowNotificationCallback.executeAction(SnowNotificationCallback.java:84)

                  at com.ubs.hrdms.common.methodserver.UBSServerMethodBase.execute(UBSServerMethodBase.java:45)

                  at com.documentum.mthdservlet.DfMethodRunner.runIt(Unknown Source)

                  at com.documentum.mthdservlet.AMethodRunner.runAndReturnStatus(Unknown Source)

                  at com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown Source)

                  at com.documentum.mthdservlet.DoMethod.doPost(Unknown Source)

                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                  at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                  at java.lang.Thread.run(Thread.java:722)

                  Caused by: java.lang.ClassCastException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

                  at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)

                  at org.apache.axis2.util.XMLUtils.initSAXFactory(XMLUtils.java:120)

                  at org.apache.axis2.util.XMLUtils.<clinit>(XMLUtils.java:85)

                  ... 32 more