How to export the Java system properties in SiteScope and to test the API SOAP server Apache Axis

  • KM00485748
  • 13-Aug-2013
  • 13-Aug-2013

Summary

This document describes how to export the Java system properties in SiteScope and to test the API SOAP server Apache Axis

Question

How to export the Java system properties in SiteScope and to test the API SOAP server Apache Axis.

Answer

This url must be executed in the web browser

http:// <sis server ip>:8080/SiteScope/jsp/happyaxis.jsp

The output from SiteScope 11.22 for Linux looks like :

Axis Happiness Page
Examining webapp configuration

Needed Components
Found SAAJ API (javax.xml.soap.SOAPMessage) at an unknown location
Found JAX-RPC API (javax.xml.rpc.Service) at /opt/HP/SiteScope/WEB-INF/lib/jaxrpc.jar
Found Apache-Axis (org.apache.axis.transport.http.AxisServlet) at /opt/HP/SiteScope/WEB-INF/lib/axis.jar
Found Jakarta-Commons Discovery (org.apache.commons.discovery.Resource) at /opt/HP/SiteScope/WEB-INF/lib/commons-discovery-0.2.jar
Found Jakarta-Commons Logging (org.apache.commons.logging.Log) at /opt/HP/SiteScope/Tomcat/bin/commons-logging-api-1.1.1.jar
Found Log4j (org.apache.log4j.Layout) at /opt/HP/SiteScope/WEB-INF/lib/log4j.jar
Found IBM's WSDL4Java (com.ibm.wsdl.factory.WSDLFactoryImpl) at /opt/HP/SiteScope/WEB-INF/lib/wsdl4j-1.6.2.jar
Found JAXP implementation (javax.xml.parsers.SAXParserFactory) at an unknown location
Found Activation API (javax.activation.DataHandler) at an unknown location

Optional Components
Found Mail API (javax.mail.internet.MimeMessage) at /opt/HP/SiteScope/WEB-INF/lib/mail.jar
Found XML Security API (org.apache.xml.security.Init) at /opt/HP/SiteScope/WEB-INF/lib/jbossall-client.jar
Found Java Secure Socket Extension (javax.net.ssl.SSLSocketFactory) at an unknown location


The core axis libraries are present. The optional components are present.

Note: Even if everything this page probes for is present, there is no guarantee your web service will work, because there are many configuration options that we do not check for. These tests are necessary but not sufficient


Examining Application Server
Servlet version 2.4
XML Parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML ParserLocation an unknown location
Examining System Properties

java.vendor=Oracle Corporation
sun.java.launcher=SUN_STANDARD
catalina.base=/opt/HP/SiteScope/Tomcat
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
catalina.useNaming=true
os.name=Linux
sun.boot.class.path=/opt/HP/SiteScope/java/lib/resources.jar:/opt/HP/SiteScope/java/lib/rt.jar:/opt/HP/SiteScope/java/lib/sunrsasign.jar:/opt/HP/SiteScope/java/lib/jsse.jar:/opt/HP/SiteScope/java/lib/jce.jar:/opt/HP/SiteScope/java/lib/charsets.jar:/opt/HP/SiteScope/java/lib/jfr.jar:/opt/HP/SiteScope/java/classes
MYPID=3907
com.sun.management.jmxremote=true
java.vm.specification.vendor=Oracle Corporation
java.runtime.version=1.7.0_15-b03
user.name=root
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
sun.net.inetaddr.ttl=0
python.classpath=/opt/HP/SiteScope/WEB-INF/lib/jython.jar:/opt/HP/SiteScope/WEB-INF/lib/xpp3.jar:/opt/HP/SiteScope/WEB-INF/lib/jibx-run.jar:/opt/HP/SiteScope/WEB-INF/lib/jibx-extars.jar:/opt/HP/SiteScope/WEB-INF/lib/jibx-bind.jar:/opt/HP/SiteScope/WEB-INF/lib/bcel.jar:/opt/HP/SiteScope/WEB-INF/lib/log4j.jar:/opt/HP/SiteScope/WEB-INF/lib/commons-httpclient-2.0-final.jar:/opt/HP/SiteScope/WEB-INF/lib/mam-common.jar:/opt/HP/SiteScope/WEB-INF/lib/discovery-common.jar:/opt/HP/SiteScope/WEB-INF/lib/collectors.jar:/opt/HP/SiteScope/WEB-INF/lib/cmdb_shared.jar:/opt/HP/SiteScope/WEB-INF/lib/discovery-library.jar:/opt/HP/SiteScope/WEB-INF/lib/ss_integration_topology_util.jar:/opt/HP/SiteScope/WEB-INF/lib/discovery-content.jar:
tomcat.util.buf.StringCache.byte.enabled=true
org.apache.axis.components.net.SecureSocketFactory=com.mercury.sitescope.util.ssl.RelodableSunJSSESocketFactory
javax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
networkaddress.cache.ttl=86400
user.language=en
java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory
sun.boot.library.path=/opt/HP/SiteScope/java/lib/amd64
com.sun.management.jmxremote.port=28006
java.version=1.7.0_15
user.timezone=Europe/Sofia
sun.arch.data.model=64
java.endorsed.dirs=/opt/HP/SiteScope/java/lib/endorsed
java.rmi.server.randomIDs=true
sun.cpu.isalist=
sun.jnu.encoding=ANSI_X3.4-1968
file.encoding.pkg=sun.io
package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans.
file.separator=/
java.specification.name=Java Platform API Specification
org.uddi4j.logEnabled=false
java.class.version=51.0
user.country=US
PPID=3895
java.home=/opt/HP/SiteScope/java
javax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
java.vm.info=mixed mode
os.version=2.6.32-358.14.1.el6.x86_64
com.sun.management.jmxremote.ssl=false
path.separator=:
java.vm.version=23.7-b01
java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
siteScope.counters.maxNo=1000
failover=false
java.awt.printerjob=sun.print.PSPrinterJob
java.security.policy=../conf/security/sitescope.policy
sun.io.unicode.encoding=UnicodeLittle
awt.toolkit=sun.awt.X11.XToolkit
networkaddress.cache.negative.ttl=0
com.sun.management.jmxremote.authenticate=false
package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
java.naming.factory.url.pkgs=org.apache.naming
user.home=/root
java.specification.vendor=Oracle Corporation
java.library.path=:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
python.packages.paths=python.classpath,java.class.path,sun.boot.class.path
java.vendor.url=http://java.oracle.com/
java.vm.vendor=Oracle Corporation
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i18n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar
java.runtime.name=Java(TM) SE Runtime Environment
sun.java.command=org.apache.catalina.startup.Bootstrap start
java.class.path=../Tomcat/bin/bootstrap.jar:/opt/HP/SiteScope/WEB-INF/lib/jython.jar
python.options.internalTablesImpl=soft
merc.home=..
java.vm.specification.name=Java Virtual Machine Specification
catalina.home=/opt/HP/SiteScope/Tomcat
topaz.home=..
java.vm.specification.version=1.7
sun.os.patch.level=unknown
sun.cpu.endian=little
java.io.tmpdir=/tmp
java.vendor.url.bug=http://bugreport.sun.com/bugreport/
server.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
os.arch=amd64
java.ext.dirs=/opt/HP/SiteScope/java/lib/ext:/usr/java/packages/lib/ext
user.dir=/opt/HP/SiteScope/bin
line.separator=

java.security.manager=
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.util.Arrays.useLegacyMergeSort=true
java.security.auth.login.config=../conf/jaas.config
org.uddi4j.TransportClassName=org.uddi4j.transport.ApacheSOAPTransport
file.encoding=ANSI_X3.4-1968
java.specification.version=1.7

Platform: Apache Tomcat/5.5.33

Test a SOAP Endpoint

http:// <sis server ip address> :8080/SiteScope/services/Version?method=getVersion

Output from SiteScope 11.22 :

<soapenv:Envelope>
 <soapenv:Body>
  <getVersionResponse soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/">
   <getVersionReturn xsi:type="xsd:string">
    Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)
   </getVersionReturn>
  </getVersionResponse>
 </soapenv:Body>
</soapenv:Envelope>