Announcement Announcement Module
Collapse
No announcement yet.
Websphere & Echo Example Configuration Headache Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Websphere & Echo Example Configuration Headache

    I'm running into a configuration issue with the Echo client and I'm hoping I can get some help. I am running on Websphere 6.0.2 and Java 1.4.2. I (hopefully) updated Xerces and Xalan by using parent last class loading. I think this is confirmed by the Xalan Enviornment Check:

    Code:
    #---- BEGIN writeEnvironmentReport($Revision: 1.29 $): Useful stuff found: ----
    version.DOM.draftlevel=2.0fd
    java.class.path=C:\Program Files\IBM\SDP70\runtimes\base_v6/profiles/default/properties;C:\Program Files\IBM\SDP70\runtimes\base_v6/properties;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/bootstrap.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/j2ee.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/lmproxy.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/urlprotocols.jar
    version.JAXP=1.1 or higher
    java.ext.dirs=C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ext
    #---- BEGIN Listing XML-related jars in: foundclasses.sun.boot.class.path ----
    xml.jar-apparent.version=xml.jar present-unknown-version
    xml.jar-path=C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\xml.jar
    #----- END Listing XML-related jars in: foundclasses.sun.boot.class.path -----
    version.xerces2=Xerces-J 2.9.0
    version.xerces1=not-present
    version.xalan2_2=Xalan Java 2.7.0
    version.xalan1=not-present
    version.ant=Apache Ant version 1.5.4 compiled on August 12 2003
    java.version=1.4.2
    version.DOM=2.0
    version.crimson=not-present
    sun.boot.class.path=C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/dertrjrt.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/java/jre/lib/ext/ibmorb.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/java/jre/lib/ext/ibmext.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\jclSC14\classes.zip;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\core.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\charsets.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\graphics.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\security.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmpkcs.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmorb.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmorbapi.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjcefw.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjssefips.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjgssprovider.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjsseprovider.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjaaslm.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjaasactivelm.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmcertpathprovider.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\server.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\xml.jar
    version.SAX=2.0
    version.xalan2x=Xalan Java 2.7.0
    #----- END writeEnvironmentReport: Useful properties found: -----
    # YAHOO! Your environment seems to be OK.
    The WSDL generation seems to be going fine:

    Code:
     ["Echo" WebService] [/Echo] [Servlet.LOG]: Initializing Spring FrameworkServlet 'spring-ws'
    [7/19/07 10:30:00:531 CDT] 0000001e MessageDispat I org.springframework.web.servlet.FrameworkServlet initServletBean FrameworkServlet 'spring-ws': initialization started
    [7/19/07 10:30:00:593 CDT] 0000001e XmlWebApplica I org.springframework.context.support.AbstractApplicationContext prepareRefresh Refreshing [email protected]37bd37bd: display name [WebApplicationContext for namespace 'spring-ws-servlet']; startup date [Thu Jul 19 10:30:00 CDT 2007]; root of context hierarchy
    [7/19/07 10:30:00:843 CDT] 0000001e XmlBeanDefini I org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-ws-servlet.xml]
    [7/19/07 10:30:02:031 CDT] 0000001e XmlWebApplica I org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory Bean factory for application context [[email protected]37bd37bd]: org.springframework.beans.factory.support.DefaultListableBeanFactory@51bd51bd
    [7/19/07 10:30:02:125 CDT] 0000001e DefaultListab I org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@51bd51bd: defining beans [payloadMapping,validatingInterceptor,loggingInterceptor,echoEndpoint,echo,echoService]; root of factory hierarchy
    [7/19/07 10:30:02:281 CDT] 0000001e PayloadValida I org.springframework.ws.server.endpoint.interceptor.AbstractValidatingInterceptor afterPropertiesSet Validating using ServletContext resource [/WEB-INF/echo.xsd]
    [7/19/07 10:30:02:625 CDT] 0000001e SaajSoapMessa I org.springframework.ws.soap.saaj.SaajSoapMessageFactory afterPropertiesSet Creating SAAJ 1.1 MessageFactory
    [7/19/07 10:30:02:796 CDT] 0000001e MessageDispat I org.springframework.web.servlet.FrameworkServlet initServletBean FrameworkServlet 'spring-ws': initialization completed in 2219 ms
    [7/19/07 10:30:02:828 CDT] 0000001e ServletWrappe A   SRVE0242I: [EchoEar] [/Echo] [spring-ws]: Initialization successful.
    However when I invoke the client I am getting this stacktrace on the server
    Code:
    com.ibm.ws.webservices.engine.utils.XMLUtils getDOMFactory WSWS3227E:  Error: Exception:
                                     java.lang.ClassCastException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl incompatible with javax/xml/parsers/DocumentBuilderFactory
    	at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
    	at com.ibm.ws.webservices.engine.utils.XMLUtils.getDOMFactory(XMLUtils.java:368)
    	at com.ibm.ws.webservices.engine.utils.XMLUtils.<clinit>(XMLUtils.java:143)
    	at java.lang.Class.initializeImpl(Native Method)
    	at java.lang.Class.initialize(Class.java:345)
    	at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:266)
    	at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1029)
    	at com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:605)
    	at com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java:633)
    	at org.springframework.ws.soap.saaj.Saaj11Implementation.getEnvelope(Saaj11Implementation.java:162)
    	at org.springframework.ws.soap.saaj.SaajSoapMessage.getEnvelope(SaajSoapMessage.java:81)
    	at org.springframework.ws.soap.AbstractSoapMessage.getSoapBody(AbstractSoapMessage.java:35)
    	at org.springframework.ws.soap.AbstractSoapMessage.getPayloadSource(AbstractSoapMessage.java:45)
    	at org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping.resolveQName(PayloadRootQNameEndpointMapping.java:55)
    	at org.springframework.ws.server.endpoint.mapping.AbstractQNameEndpointMapping.getLookupKeyForMessage(AbstractQNameEndpointMapping.java:32)
    	at org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping.getEndpointInternal(AbstractMapBasedEndpointMapping.java:105)
    	at org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping.getEndpoint(AbstractEndpointMapping.java:82)
    	at org.springframework.ws.server.MessageDispatcher.getEndpoint(MessageDispatcher.java:237)
    	at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:190)
    	at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:157)
    	at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:86)
    	at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:56)
    	at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:157)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    Any help is greatly appreciated.

    -jason

  • #2
    WebSphere and Xerces

    Did you find a resolution to this problem?

    Originally posted by jgrieb View Post
    I'm running into a configuration issue with the Echo client and I'm hoping I can get some help. I am running on Websphere 6.0.2 and Java 1.4.2. I (hopefully) updated Xerces and Xalan by using parent last class loading. I think this is confirmed by the Xalan Enviornment Check:

    Code:
    #---- BEGIN writeEnvironmentReport($Revision: 1.29 $): Useful stuff found: ----
    version.DOM.draftlevel=2.0fd
    java.class.path=C:\Program Files\IBM\SDP70\runtimes\base_v6/profiles/default/properties;C:\Program Files\IBM\SDP70\runtimes\base_v6/properties;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/bootstrap.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/j2ee.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/lmproxy.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/urlprotocols.jar
    version.JAXP=1.1 or higher
    java.ext.dirs=C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ext
    #---- BEGIN Listing XML-related jars in: foundclasses.sun.boot.class.path ----
    xml.jar-apparent.version=xml.jar present-unknown-version
    xml.jar-path=C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\xml.jar
    #----- END Listing XML-related jars in: foundclasses.sun.boot.class.path -----
    version.xerces2=Xerces-J 2.9.0
    version.xerces1=not-present
    version.xalan2_2=Xalan Java 2.7.0
    version.xalan1=not-present
    version.ant=Apache Ant version 1.5.4 compiled on August 12 2003
    java.version=1.4.2
    version.DOM=2.0
    version.crimson=not-present
    sun.boot.class.path=C:\Program Files\IBM\SDP70\runtimes\base_v6/lib/dertrjrt.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/java/jre/lib/ext/ibmorb.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6/java/jre/lib/ext/ibmext.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\jclSC14\classes.zip;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\core.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\charsets.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\graphics.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\security.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmpkcs.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmorb.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmorbapi.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjcefw.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjssefips.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjgssprovider.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjsseprovider.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjaaslm.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmjaasactivelm.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\ibmcertpathprovider.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\server.jar;C:\Program Files\IBM\SDP70\runtimes\base_v6\java\jre\lib\xml.jar
    version.SAX=2.0
    version.xalan2x=Xalan Java 2.7.0
    #----- END writeEnvironmentReport: Useful properties found: -----
    # YAHOO! Your environment seems to be OK.
    The WSDL generation seems to be going fine:

    Code:
     ["Echo" WebService] [/Echo] [Servlet.LOG]: Initializing Spring FrameworkServlet 'spring-ws'
    [7/19/07 10:30:00:531 CDT] 0000001e MessageDispat I org.springframework.web.servlet.FrameworkServlet initServletBean FrameworkServlet 'spring-ws': initialization started
    [7/19/07 10:30:00:593 CDT] 0000001e XmlWebApplica I org.springframework.context.support.AbstractApplicationContext prepareRefresh Refreshing [email protected]37bd37bd: display name [WebApplicationContext for namespace 'spring-ws-servlet']; startup date [Thu Jul 19 10:30:00 CDT 2007]; root of context hierarchy
    [7/19/07 10:30:00:843 CDT] 0000001e XmlBeanDefini I org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-ws-servlet.xml]
    [7/19/07 10:30:02:031 CDT] 0000001e XmlWebApplica I org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory Bean factory for application context [[email protected]37bd37bd]: org.springframework.beans.factory.support.DefaultListableBeanFactory@51bd51bd
    [7/19/07 10:30:02:125 CDT] 0000001e DefaultListab I org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@51bd51bd: defining beans [payloadMapping,validatingInterceptor,loggingInterceptor,echoEndpoint,echo,echoService]; root of factory hierarchy
    [7/19/07 10:30:02:281 CDT] 0000001e PayloadValida I org.springframework.ws.server.endpoint.interceptor.AbstractValidatingInterceptor afterPropertiesSet Validating using ServletContext resource [/WEB-INF/echo.xsd]
    [7/19/07 10:30:02:625 CDT] 0000001e SaajSoapMessa I org.springframework.ws.soap.saaj.SaajSoapMessageFactory afterPropertiesSet Creating SAAJ 1.1 MessageFactory
    [7/19/07 10:30:02:796 CDT] 0000001e MessageDispat I org.springframework.web.servlet.FrameworkServlet initServletBean FrameworkServlet 'spring-ws': initialization completed in 2219 ms
    [7/19/07 10:30:02:828 CDT] 0000001e ServletWrappe A   SRVE0242I: [EchoEar] [/Echo] [spring-ws]: Initialization successful.
    However when I invoke the client I am getting this stacktrace on the server
    Code:
    com.ibm.ws.webservices.engine.utils.XMLUtils getDOMFactory WSWS3227E:  Error: Exception:
                                     java.lang.ClassCastException: org/apache/xerces/jaxp/DocumentBuilderFactoryImpl incompatible with javax/xml/parsers/DocumentBuilderFactory
    	at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
    	at com.ibm.ws.webservices.engine.utils.XMLUtils.getDOMFactory(XMLUtils.java:368)
    	at com.ibm.ws.webservices.engine.utils.XMLUtils.<clinit>(XMLUtils.java:143)
    	at java.lang.Class.initializeImpl(Native Method)
    	at java.lang.Class.initialize(Class.java:345)
    	at com.ibm.ws.webservices.engine.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:266)
    	at com.ibm.ws.webservices.engine.SOAPPart._getSOAPEnvelope(SOAPPart.java:1029)
    	at com.ibm.ws.webservices.engine.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:605)
    	at com.ibm.ws.webservices.engine.SOAPPart.getEnvelope(SOAPPart.java:633)
    	at org.springframework.ws.soap.saaj.Saaj11Implementation.getEnvelope(Saaj11Implementation.java:162)
    	at org.springframework.ws.soap.saaj.SaajSoapMessage.getEnvelope(SaajSoapMessage.java:81)
    	at org.springframework.ws.soap.AbstractSoapMessage.getSoapBody(AbstractSoapMessage.java:35)
    	at org.springframework.ws.soap.AbstractSoapMessage.getPayloadSource(AbstractSoapMessage.java:45)
    	at org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping.resolveQName(PayloadRootQNameEndpointMapping.java:55)
    	at org.springframework.ws.server.endpoint.mapping.AbstractQNameEndpointMapping.getLookupKeyForMessage(AbstractQNameEndpointMapping.java:32)
    	at org.springframework.ws.server.endpoint.mapping.AbstractMapBasedEndpointMapping.getEndpointInternal(AbstractMapBasedEndpointMapping.java:105)
    	at org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping.getEndpoint(AbstractEndpointMapping.java:82)
    	at org.springframework.ws.server.MessageDispatcher.getEndpoint(MessageDispatcher.java:237)
    	at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:190)
    	at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:157)
    	at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:86)
    	at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:56)
    	at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:157)
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    Any help is greatly appreciated.

    -jason

    Comment


    • #3
      Yes, I did not realize that Websphere has parent-first and parent-last loading for the EAR and the WAR. You have to set it in both.

      Comment

      Working...
      X