Results 1 to 3 of 3

Thread: echo example on weblogic 9.1 ?

  1. #1
    Join Date
    May 2007
    Posts
    1

    Default echo example on weblogic 9.1 ?

    Hi,
    Has anyone successfully deployed and tested the echo example on Weblogic 9.1 - I'm having difficulty? I added a blank weblogic.xml to WEB-INF, created the war, and deployed to weblogic via auto-deploy. However I get a saaj error and it appears to be a conflict with weblogic's saaj. I've read where others have had problems with saaj and weblogic and was wondering if this might be the case as well.

    <May 21, 2007 6:46:05 AM PDT> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@680 11a - name: 'echo.war', context-path: '/echo/services'] Root cause of ServletException.java.lang.NoSuchMethodError: newInstance at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.afterPropertiesSet(SaajSoapMessageFactory.ja va:82)
    at org.springframework.ws.transport.http.MessageDispa tcherServlet.initWebServiceMessageFactory(MessageD ispatcherServlet.java:163)
    at org.springframework.ws.transport.http.MessageDispa tcherServlet.initFrameworkServlet(MessageDispatche rServlet.java:103)
    ...

    I appeared to clear this problem by adding the following to spring-ws-servlet.xml:

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

    <bean id="sunSaaj" class="com.sun.xml.messaging.saaj.soap.MessageFact oryImpl" />


    If I build and run the included echo saaj client I get the following on the server:

    <May 21, 2007 7:21:20 AM PDT> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@65a b67 - name: 'echo.war', context-path: '/echo'] Root cause of ServletException.
    java.lang.NoSuchMethodError: getElementQName
    at org.springframework.ws.soap.saaj.Saaj13Implementat ion.getName(Saaj13Implementation.java:67)
    at org.springframework.ws.soap.saaj.SaajSoapEnvelope. getBody(SaajSoapEnv
    elope.java:49)
    at org.springframework.ws.soap.AbstractSoapMessage.ge tSoapBody(AbstractS
    oapMessage.java:35)
    at org.springframework.ws.soap.AbstractSoapMessage.ge tPayloadSource(Abst
    ractSoapMessage.java:49)
    at org.springframework.ws.server.endpoint.mapping.Pay loadRootQNameEndpoi
    ntMapping.getMessagePayloadElement(PayloadRootQNam eEndpointMapping.java:63)

    Which leads me to believe saaj is still a problem.

    ???
    Thanks for the help!

    sej

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Check the FAQ. There are two answers related to this question.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Apr 2009
    Posts
    1

    Default Outdated documentation?

    Hi, I am trying to get Spring / Metro working under Weblogic 9.1 and have already spent a few days researching the various issues. On the FAQ page it recommends using

    Code:
    <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
        <property name="messageFactory">
            <bean class="com.sun.xml.messaging.saaj.soap.MessageFactoryImpl"/>
        </property>
    </bean>
    but org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory does not seem to exist in any spring jar file in the latest distribution (spring 2.5.6). Does anyone know where this class lives in the latest distribution of spring?

Posting Permissions

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