Announcement Announcement Module
Collapse
No announcement yet.
Spring Web Services 1.5.0 Final released Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Web Services 1.5.0 Final released

    Dear Spring community,

    I'm pleased to announce that Spring Web Services 1.5.0 has been released! This final release candidate the following new features over 1.0.3:
    • Two new transports: JMS and email, both for client and server,
    • WSS4J-based WS-Security implementation, which allows for WS-Security on non-SUN JDKs (i.e. WebSphere) and JDK 1.4,
    • WS-Addressing support for both client and server, supporting the August 2004 and final versions of the specification,
    • Native support for Java 6, including JAXP 1.4, and the bundled SAAJ 1.3 and JAXB 2.0,
    • Two new Spring namespaces, which drastically decrease the amount of XML required to configure marshallers and typical Spring-WS constructs,
    • Spring-WS jars are now OSGi bundles,
    • A new, client-side interception mechanism, including WS-Security support,
    • @Endpoints are now @Components, so they are automatically picked up when using Spring 2.5 component scanning
    • A new and improved XSD-to-WSDL generator that inlines included and imported XSDs
    • Support for Spring Security
    • Support for the Java 6 HTTP Server
    • Two new samples, showing Plain Old XML usage and WS-Addressing with the Java 6 HTTP server

    and many small improvements and bug fixes. Check the changelog for more details.

    We recommend upgrading to Spring Web Services 1.5 from all previous versions, in order to benefit from these new features!

    The 1.5 series is 95% backwards compatible, though support for Java 1.3 has been dropped, in favor of Java 1.6. A week from now, we will release 1.0.4, backporting all bugfixes in the 1.5 branch.

    For more information, see http://static.springframework.org/spring-ws/sites/1.5/.

    Cheers,

    Arjen

  • #2
    Maven availability

    Thats great news!

    When should the 1.5.0 release show up in s3browse
    http://s3browse.com/explore/maven.sp.../ws/spring-ws/ or in the main maven repo http://repo1.maven.org/maven2/org/sp.../ws/spring-ws/ ?

    Comment


    • #3
      Maven availability

      The files have been pushed to both locations.

      Thanks!

      Comment


      • #4
        Originally posted by Arjen Poutsma View Post
        Dear Spring community,

        I'm pleased to announce that Spring Web Services 1.5.0 has been released! This final release candidate the following new features over 1.0.3:
        I'm really impressed with this new release. We upgraded painlessly from the last release, and converted everything to use annotations really easily.

        Thanks for all the hard work !

        Comment


        • #5
          What namespaces in 1.5?

          Hey,

          It is mentioned that there are two new namespaces in the 1.5 release, but it doesn't seem like the samples are using any new namespaces. I am curious about these new namespaces and I wonder where I can get information about them?


          Tor

          Comment


          • #6
            The airline sample in 1.5 contains a few examples of the new namespaces, see e.g.
            /airline/src/main/resources/org/springframework/ws/samples/airline/ws/applicationContext-ws.xml:

            Code:
            <oxm:jaxb2-marshaller id="marshaller" contextPath="org.springframework.ws.samples.airline.schema"/>
            
            ...
            
            <sws:marshalling-endpoints/>
            
            <sws:xpath-endpoints>
                <sws:namespace prefix="messages" uri="http://www.springframework.org/spring-ws/samples/airline/schemas/messages"/>
            </sws:xpath-endpoints>
            I can't find any documentation either though

            Comment


            • #7
              The stockquote sample does not work in 1.5.0 release

              Hi,

              I run java 1.6.0_01 and maven 2.0.7.
              The maven build for the sample goes without errors. But once I execute mvn exec:java I always get an error. The root cause is:

              Code:
              Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
                      at java.lang.Class.getDeclaredConstructors0(Native Method)
                      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
                      at java.lang.Class.getConstructor0(Class.java:2671)
                      at java.lang.Class.getDeclaredConstructor(Class.java:1953)
                      at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)
                      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.j
              ava:845)
              I tried adding saaj-api as a runtime dependency but than I get some errors bout jaxb.

              Help

              Comment


              • #8
                The stockquote sample actually works

                My mistake,

                JAVA_HOME was set to java 1.5 and so maven was using java 1.5 instead of 6.
                Now everything works.

                Thanx

                Comment


                • #9
                  Wss4j Version

                  Arjen,

                  which version of Wss4j are the 1.5 binaries built against please, i have resolved some earlier issues trying to get the samples to run, however i am now getting the following exception on the server

                  Code:
                  16:37:32,455 ERROR [[spring-ws]] Servlet.service() for servlet spring-ws threw exception
                  java.lang.NoSuchMethodError: org.apache.ws.security.WSSecurityEngineResult.get(Ljava/lang/Object;)Ljava/lang/Object;
                  	at org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor.processPrincipal(Wss4jSecurityInterceptor.java:573)
                  	at org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor.validateMessage(Wss4jSecurityInterceptor.java:512)
                  	at org.springframework.ws.soap.security.AbstractWsSecurityInterceptor.handleRequest(AbstractWsSecurityInterceptor.java:104)
                  	at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:208)
                  	at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:163)
                  	at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88)
                  	at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57)
                  	at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:197)
                  	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
                  	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:441)
                  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
                  	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                  	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                  	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                  	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                  	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                  	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                  	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                  	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                  	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                  	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                  	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                  	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                  	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                  	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                  	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                  	at java.lang.Thread.run(Unknown Source)
                  and then on the client, understandably i get an exception as well

                  Code:
                  14-Apr-2008 16:37:32 com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType
                  SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message
                  Exception in thread "main" org.springframework.ws.soap.SoapMessageCreationException: Could not create message from InputStream: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
                  	at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.createWebServiceMessage(SaajSoapMessageFactory.java:181)
                  	at org.springframework.ws.transport.AbstractWebServiceConnection.receive(AbstractWebServiceConnection.java:53)
                  	at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:491)
                  	at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:440)
                  	at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:395)
                  	at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:341)
                  	at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:332)
                  	at org.springframework.ws.client.core.WebServiceTemplate.sendSourceAndReceiveToResult(WebServiceTemplate.java:322)
                  	at Client1.getData(Client1.java:31)
                  	at Client1.main(Client1.java:19)
                  Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
                  	at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:600)
                  	at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:273)
                  	at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1_1Impl.java:68)
                  	at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:62)
                  	at org.springframework.ws.soap.saaj.SaajSoapMessageFactory.createWebServiceMessage(SaajSoapMessageFactory.java:164)
                  	... 9 more

                  Comment


                  • #10
                    We use WSS4J 1.5.4, which is shipped with the -with-dependencies distribution.

                    Comment


                    • #11
                      Incomplete samples

                      Some classes of the Airline example (GetFlightsRequest and GetFlightsResponse, for example) were not present in the download (at least as of last week).

                      Comment


                      • #12
                        Originally posted by bgoodfliesh View Post
                        Some classes of the Airline example (GetFlightsRequest and GetFlightsResponse, for example) were not present in the download (at least as of last week).
                        Those are JAXB-generated sources that will be created if you run
                        Code:
                        mvn generate-sources

                        Comment


                        • #13
                          IanB did you find what was causing the problem?
                          I have the same problem...

                          Comment

                          Working...
                          X