Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: SAAJ0511 problem with spring-ws

  1. #21
    Join Date
    Jan 2009
    Posts
    3

    Default

    played a little:

    when I delete all my controllers the services work ...,

    but when I create one the services fail.

    Are they fighting against each other ???

  2. #22
    Join Date
    Jan 2009
    Posts
    3

    Default

    resolved by:
    - deleting grails.mime.types xml part in the config.groovy
    - changing urlmappings to

    class UrlMappings {
    static mappings = {
    "/$controller/$action?/$id?"{
    constraints {
    controller(matches:/.*[^(services)].*/)
    }
    }
    "500"(view:'/error')
    }
    }

  3. #23
    Join Date
    Apr 2008
    Location
    London
    Posts
    5

    Exclamation Revisiting SAAJ0511

    Hello Ralph, Arjen

    I have read your trail of posts regarding SAAJ0511 error code.

    I am trying out my first Spring-Ws and seem to have hit the problem
    straightaway . When I use TcpMon, The request goes out correctly , but
    the response falls over because of the above error code.

    I am running my test class in Eclipse, and my JRE is 1.6.0_12 -

    My client pom.xml does nt have any entries for xalan and xerces but somehow xalan version 2.6.0 and xercesImpl 2.6.2 jars get put in. Think it is a transitive dependency.

    version of other jars are :

    spring - 2.5.6
    maven - 2.0.9
    spring-ws - 1.5.6
    jaxen - 1.1
    saaj-api - 1.3
    saaj-impl - 1.3

    I am running this on tomcat 6.0.16 .

    Please find snippet of error logs below. Any help greatly appreciated. I am going around in circles playing with jars, and jre's for the last 8 hours.


    02-Apr-2009 21:43:20 org.springframework.xml.xsd.commons.CommonsXsdSche maCollection afterPropertiesSet
    INFO: Loaded URL [file:/E:/tomcat6/webapps/ecaptain/WEB-INF/classes/spring-ws-xsd/hr.xsd],URL [file:/E:/tomcat6/webapps/ecapt
    ain/WEB-INF/classes/spring-ws-xsd/hr-response.xsd]
    02-Apr-2009 21:43:21 org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory afterPropertiesSet
    INFO: Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
    02-Apr-2009 21:43:21 org.springframework.web.servlet.FrameworkServlet initServletBean
    INFO: FrameworkServlet 'springws': initialization completed in 1141 ms
    02-Apr-2009 21:43:21 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    02-Apr-2009 21:49:05 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    02-Apr-2009 21:49:32 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope

    SEVERE: SAAJ0511: Unable to create envelope from given source

    Thanks

    Kasi

  4. #24
    Join Date
    Apr 2008
    Location
    London
    Posts
    5

    Exclamation SAAJ0511 continues to occur on Java 1.6

    Hello Ralph, Arjen

    I have read your trail of posts regarding SAAJ0511 error code.

    I am trying out my first Spring-Ws and seem to have hit the problem
    straightaway . When I use TcpMon, The request goes out correctly , but
    the response falls over because of the above error code.

    I am running my test class in Eclipse, and my JRE is 1.6.0_12 -

    My client pom.xml does nt have any entries for xalan and xerces but somehow xalan version 2.6.0 and xercesImpl 2.6.2 jars get put in. Think it is a transitive dependency.

    version of other jars are :

    spring - 2.5.6
    maven - 2.0.9
    spring-ws - 1.5.6
    jaxen - 1.1
    saaj-api - 1.3
    saaj-impl - 1.3

    I am running this on tomcat 6.0.16 .

    Please find snippet of error logs below. Any help greatly appreciated. I am going around in circles playing with jars, and jre's for the last 8 hours.


    02-Apr-2009 21:43:20 org.springframework.xml.xsd.commons.CommonsXsdSche maCollection afterPropertiesSet
    INFO: Loaded URL [file:/E:/tomcat6/webapps/ecaptain/WEB-INF/classes/spring-ws-xsd/hr.xsd],URL [file:/E:/tomcat6/webapps/ecapt
    ain/WEB-INF/classes/spring-ws-xsd/hr-response.xsd]
    02-Apr-2009 21:43:21 org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory afterPropertiesSet
    INFO: Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
    02-Apr-2009 21:43:21 org.springframework.web.servlet.FrameworkServlet initServletBean
    INFO: FrameworkServlet 'springws': initialization completed in 1141 ms
    02-Apr-2009 21:43:21 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    02-Apr-2009 21:49:05 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    02-Apr-2009 21:49:32 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source

    Thanks

    Kasi

  5. #25
    Join Date
    Oct 2009
    Location
    Milano
    Posts
    49

    Default

    Hi,
    i've got this SAAJ0511: Unable to create envelope from given source too.

    i'm trying to build up a spring-ws client.

    my pojo were created using org.apache.cxf - cxf-codegen-plugin (version 2.5.2).

    i'm using spring-ws 2.0.4.RELEASE

    i get this exception just by running a simple junit test.

    my configuration is very simple

    <bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
    <property name="contextPath" value="commerce.connect" />
    </bean>

    <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMe ssageFactory" />

    I can't really put my hands on the server side.
    2+2=5

  6. #26
    Join Date
    Feb 2012
    Posts
    15

    Default

    I have added xerces and xalan on the server side and the problem was fixed.
    g.gif

  7. #27
    Join Date
    Feb 2012
    Posts
    1

    Default

    Quote Originally Posted by dtreece View Post
    I am experiencing the same exception as described in this thread. I downloaded the jars (Xerces 2.8.1 and Xalan 2.7.0). I included them in my project dependencies and I am still getting the same Error. What am I missing? I didnt install properly?
    Well, you have to make sure that the more recent versions are actually used. Some app servers override any JAXP libraries you provide in the WAR with their own internal versions. What app server are you running on?

    __________________
    download 5000 backlinks

  8. #28
    Join Date
    Mar 2012
    Posts
    7

    Default

    Thanks! Adding Xerces 2.8.1 an Xalan 2.7.0 does actually work! I'm not getting the exception anymore after days of moving in circles!

  9. #29

    Default fix in .pom file

    If you are using jaxen, you can also fix it by excluding xom in you maven .pom file:
    <dependency>
    <groupId>jaxen</groupId>
    <artifactId>jaxen</artifactId>
    <version>1.1</version>
    <exclusions>
    <exclusion>
    <groupId>xom</groupId>
    <artifactId>xom</artifactId>
    </exclusion>
    </exclusions>
    </dependency>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •