Camel
  1. Camel
  2. CAMEL-3659

Upgrade to Spring Web Services 2.0

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Spring Web Services 2.0 is out. It requires Spring 3 as minimum so it fits Camel 2.7 nicely.

      The upgrade is very simple, we only need to change the version number in the POM of camel-parent. I've run all unit tests and done some manual testing using camel-example-spring-ws and everything looks ok.

        Issue Links

          Activity

          Hide
          Edstrom Johan added a comment -

          Thanks Richard.

          Show
          Edstrom Johan added a comment - Thanks Richard.
          Hide
          Christian Müller added a comment -

          running

          mvn -Pvalidate clean install
          

          in camel/platforms fails with:

          [INFO]  - step 1: Checking if all artifacts exist
          java.lang.Exception: mvn:org.springframework.ws/spring-ws-core/2.0.0.RELEASE is not an OSGi bundle
                  at org.apache.karaf.tooling.features.ValidateFeaturesMojo.validateBundlesAvailable(ValidateFeaturesMojo.java:316)
                  at org.apache.karaf.tooling.features.ValidateFeaturesMojo.validate(ValidateFeaturesMojo.java:214)
                  at org.apache.karaf.tooling.features.ValidateFeaturesMojo.execute(ValidateFeaturesMojo.java:155)
                  at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
                  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
                  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
                  at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
                  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
                  at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
                  at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
                  at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
                  at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
                  at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
                  at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)
                  at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
                  at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:597)
                  at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
                  at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
                  at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
                  at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
          

          We need an OSGIfied version of spring-ws-core. I wonder why the Spring guys didn't release this as an OSGI bundle...

          Show
          Christian Müller added a comment - running mvn -Pvalidate clean install in camel/platforms fails with: [INFO] - step 1: Checking if all artifacts exist java.lang.Exception: mvn:org.springframework.ws/spring-ws-core/2.0.0.RELEASE is not an OSGi bundle at org.apache.karaf.tooling.features.ValidateFeaturesMojo.validateBundlesAvailable(ValidateFeaturesMojo.java:316) at org.apache.karaf.tooling.features.ValidateFeaturesMojo.validate(ValidateFeaturesMojo.java:214) at org.apache.karaf.tooling.features.ValidateFeaturesMojo.execute(ValidateFeaturesMojo.java:155) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) We need an OSGIfied version of spring-ws-core. I wonder why the Spring guys didn't release this as an OSGI bundle...
          Hide
          Richard Kettelerij added a comment - - edited

          No kidding, I thought everything at SpringSource was OSGified? Especially since 1.5.9 was OSGi compatible. But you're right, there's already a ticket https://jira.springsource.org/browse/SWS-681.

          Show
          Richard Kettelerij added a comment - - edited No kidding, I thought everything at SpringSource was OSGified? Especially since 1.5.9 was OSGi compatible. But you're right, there's already a ticket https://jira.springsource.org/browse/SWS-681 .
          Hide
          Richard Kettelerij added a comment -

          Do note that we still have CAMEL-3307 so I wonder how much of an issue this is for the Karaf users?

          Show
          Richard Kettelerij added a comment - Do note that we still have CAMEL-3307 so I wonder how much of an issue this is for the Karaf users?
          Hide
          Christian Müller added a comment -

          Don't worry, I also thought everything at SpringSource is OSGified...
          Every time you change something which affects the features file, it's a good idea to run

          mvm -Pvalidate clean install
          

          in camel/platforms. This ensures all declared dependencies are valid and all dependencies could be resolved.

          I would prefer to revert the changes in #1070022 and #r1070222 (my change from today which fixes the wrong dependency to spring-oxm) and upgrade to spring-ws 2.0.1, if it's out. This version should fix the issue we have with the 2.0.0 version.
          I would not prefer to build an intermediate OSGIfied version by the ServiceMix guys.

          Christian

          Show
          Christian Müller added a comment - Don't worry, I also thought everything at SpringSource is OSGified... Every time you change something which affects the features file, it's a good idea to run mvm -Pvalidate clean install in camel/platforms. This ensures all declared dependencies are valid and all dependencies could be resolved. I would prefer to revert the changes in #1070022 and #r1070222 (my change from today which fixes the wrong dependency to spring-oxm) and upgrade to spring-ws 2.0.1, if it's out. This version should fix the issue we have with the 2.0.0 version. I would not prefer to build an intermediate OSGIfied version by the ServiceMix guys. Christian
          Hide
          Richard Kettelerij added a comment -

          Agreed, would you mind doing the rollback?

          Show
          Richard Kettelerij added a comment - Agreed, would you mind doing the rollback?
          Hide
          Christian Müller added a comment -

          Yeah, but I would wait a bit whether somebody has doubts or a better idea...

          Show
          Christian Müller added a comment - Yeah, but I would wait a bit whether somebody has doubts or a better idea...
          Hide
          Claus Ibsen added a comment -

          Hmm a new SpringWS 2.0.1 release is not around the corner.

          I suggest to add this as a known issue. Then if SpringWS 2.0.1 is released then end users can upgrade and use that if they use Spring-WS in OSGi.

          Show
          Claus Ibsen added a comment - Hmm a new SpringWS 2.0.1 release is not around the corner. I suggest to add this as a known issue. Then if SpringWS 2.0.1 is released then end users can upgrade and use that if they use Spring-WS in OSGi.
          Hide
          Richard Kettelerij added a comment -

          Marking it as a known issue is fine as far as I'm concerned. Perhaps we should mention that folks who do want to use it in OSGi can still use 1.5.9 since the upgrade didn't break anything.

          Show
          Richard Kettelerij added a comment - Marking it as a known issue is fine as far as I'm concerned. Perhaps we should mention that folks who do want to use it in OSGi can still use 1.5.9 since the upgrade didn't break anything.
          Hide
          Claus Ibsen added a comment -

          I have created CAMEL-3735 about the upgrade to Spring WS 2.0.1 having the OSGi fix. I will downgrade the camel-spring-ws feature to use the old 1.5.9 release. Then OSGi users can continue using that working version.

          Show
          Claus Ibsen added a comment - I have created CAMEL-3735 about the upgrade to Spring WS 2.0.1 having the OSGi fix. I will downgrade the camel-spring-ws feature to use the old 1.5.9 release. Then OSGi users can continue using that working version.
          Hide
          Claus Ibsen added a comment -

          Hmm even the old 1.5.9 doesn't work with OSGi. So lets just wait for the Spring WS 2.0.1 release with the fix.

          Show
          Claus Ibsen added a comment - Hmm even the old 1.5.9 doesn't work with OSGi. So lets just wait for the Spring WS 2.0.1 release with the fix.
          Hide
          Richard Kettelerij added a comment -

          Hmm strange, I looked at the manifest a couple of weeks ago and it's full of OSGi stuff.

          Show
          Richard Kettelerij added a comment - Hmm strange, I looked at the manifest a couple of weeks ago and it's full of OSGi stuff.
          Hide
          Christian Müller added a comment -

          When we build a Camel release, is the validate Profile active? If it's active, we will run into this issue. Maybe it's important for Hadrian to know this...

          Show
          Christian Müller added a comment - When we build a Camel release, is the validate Profile active? If it's active, we will run into this issue. Maybe it's important for Hadrian to know this...
          Hide
          Richard Kettelerij added a comment -

          A snippet from the Spring 1.5.9 manifest:

          Spring-WS-Version: 1.5.9
          Implementation-Title: Spring WS Core
          Implementation-Version: 1.5.9
          Built-By: arjen
          Tool: Bnd-0.0.357
          Bundle-Name: Spring WS Core
          Created-By: Apache Maven Bundle Plugin
          Bundle-Vendor: SpringSource
          Implementation-Vendor-Id: org.springframework.ws
          Build-Jdk: 1.6.0_03-p3
          Bundle-Version: 1.5.9
          Bnd-LastModified: 1264761937395
          Bundle-ManifestVersion: 2
          Bundle-Description: Spring Web Services Core package.
          Bundle-SymbolicName: org.springframework.bundle.ws.core
          Import-Package: javax.activation;version="1.1",javax.servlet,javax.ser
          vlet.http,javax.wsdl;resolution:=optional,javax.wsdl.extensions;resol

          It's OSGified.

          Show
          Richard Kettelerij added a comment - A snippet from the Spring 1.5.9 manifest: Spring-WS-Version: 1.5.9 Implementation-Title: Spring WS Core Implementation-Version: 1.5.9 Built-By: arjen Tool: Bnd-0.0.357 Bundle-Name: Spring WS Core Created-By: Apache Maven Bundle Plugin Bundle-Vendor: SpringSource Implementation-Vendor-Id: org.springframework.ws Build-Jdk: 1.6.0_03-p3 Bundle-Version: 1.5.9 Bnd-LastModified: 1264761937395 Bundle-ManifestVersion: 2 Bundle-Description: Spring Web Services Core package. Bundle-SymbolicName: org.springframework.bundle.ws.core Import-Package: javax.activation;version="1.1",javax.servlet,javax.ser vlet.http,javax.wsdl;resolution:=optional,javax.wsdl.extensions;resol It's OSGified.
          Hide
          Christian Müller added a comment -

          I added a warning on the camel-spring-ws component wiki page

          Show
          Christian Müller added a comment - I added a warning on the camel-spring-ws component wiki page
          Hide
          Christian Müller added a comment -

          With 1.5.9,

          mvn -Pvalidate clean install
          

          runs without problems.

          spring-ws-core, spring-ws-support, spring-oxm and spring-xml are valid OSGI bundles.

          @Claus, what do you suggest?

          Show
          Christian Müller added a comment - With 1.5.9, mvn -Pvalidate clean install runs without problems. spring-ws-core, spring-ws-support, spring-oxm and spring-xml are valid OSGI bundles. @Claus, what do you suggest?
          Hide
          Claus Ibsen added a comment -

          Yeah we can downgrade to 1.5.9 to have the validate work. I don't think the release process triggers this profile, so we should be safe anyway.

          The unit tests in camel-itest-karaf cannot load the Spring WS 1.5.9 component. So the test is @Ignored.

          Show
          Claus Ibsen added a comment - Yeah we can downgrade to 1.5.9 to have the validate work. I don't think the release process triggers this profile, so we should be safe anyway. The unit tests in camel-itest-karaf cannot load the Spring WS 1.5.9 component. So the test is @Ignored.
          Hide
          Christian Müller added a comment -

          We decided to downgrade to 1.5.9

          Show
          Christian Müller added a comment - We decided to downgrade to 1.5.9
          Hide
          Christian Müller added a comment -

          I think the problem with the camel-itest-karaf for camel-spring-ws is because bundle [org.springframework.bundle.ws.xml] imports javax.xml.stream;resolution:=optional (which implies version "0.0.0", when I remember right). The Servicemix stax-api bundle exports javax.xml.stream;uses:="javax.xml.stream.events,javax.xml.namespace,javax.xml.stream.util,javax.xml.transform";version=1.0.1.

          I'm not sure how we should solve this.

          Apache ServiceMix :: Specs :: Stax API 1.0 (70)
          -----------------------------------------------
          Manifest-Version = 1.0
          Bnd-LastModified = 1294295628252
          Tool = Bnd-0.0.357
          Built-By = ffang
          Implementation-Version = 1.7.0
          Build-Jdk = 1.6.0_13
          Created-By = Apache Maven Bundle Plugin
          Implementation-Title = Apache ServiceMix
          
          Bundle-Vendor = The Apache Software Foundation
          Bundle-Activator = org.apache.servicemix.specs.locator.Activator
          Bundle-Name = Apache ServiceMix :: Specs :: Stax API 1.0
          Bundle-DocURL = http://www.apache.org/
          Bundle-Description = This pom provides project information that is common to all ServiceMix branches.
          Bundle-SymbolicName = org.apache.servicemix.specs.stax-api-1.0
          Bundle-Version = 1.7.0
          Bundle-License = http://www.apache.org/licenses/LICENSE-2.0.txt
          Bundle-ManifestVersion = 2
          
          Import-Package = 
                  javax.xml.namespace,
                  javax.xml.stream;version=1.0,
                  javax.xml.stream.events;version=1.0,
                  javax.xml.stream.util;version=1.0,
                  javax.xml.transform,
                  org.osgi.framework
          Export-Package = 
                  javax.xml.stream;uses:="javax.xml.stream.events,javax.xml.namespace,javax.xml.stream.util,javax.xml.transform";version=1.0.1,
                  javax.xml.stream.util;uses:="javax.xml.stream,javax.xml.stream.events,javax.xml.namespace";version=1.0.1,
                  javax.xml.stream.events;uses:="javax.xml.namespace,javax.xml.stream";version=1.0.1
          
          Spring XML (124)
          ----------------
          Manifest-Version = 1.0
          Bnd-LastModified = 1264761895862
          Tool = Bnd-0.0.357
          Built-By = arjen
          Spring-WS-Version = 1.5.9
          Implementation-Version = 1.5.9
          Build-Jdk = 1.6.0_03-p3
          Implementation-Vendor-Id = org.springframework.ws
          Created-By = Apache Maven Bundle Plugin
          Implementation-Title = Spring XML
          
          Bundle-Vendor = SpringSource
          Bundle-Name = Spring XML
          Bundle-Description = Various XML support classes for Spring Web Services
          Bundle-SymbolicName = org.springframework.bundle.ws.xml
          Bundle-Version = 1.5.9
          Bundle-ManifestVersion = 2
          
          Import-Package = 
                  javax.xml.namespace,
                  javax.xml.parsers,
                  javax.xml.stream;resolution:=optional,
                  javax.xml.stream.events;resolution:=optional,
                  javax.xml.stream.util;resolution:=optional,
                  javax.xml.transform,
                  javax.xml.transform.dom,
                  javax.xml.transform.sax,
                  javax.xml.transform.stax;resolution:=optional,
                  javax.xml.transform.stream,
                  javax.xml.validation;resolution:=optional,
                  javax.xml.xpath;resolution:=optional,
                  org.apache.commons.logging,
                  org.apache.ws.commons.schema;resolution:=optional,
                  org.apache.ws.commons.schema.extensions;resolution:=optional,
                  org.apache.ws.commons.schema.resolver;resolution:=optional,
                  org.jaxen;resolution:=optional,
                  org.jaxen.dom;resolution:=optional,
                  org.springframework.beans;version="[2.0,4.0)",
                  org.springframework.beans.factory;version="[2.0,4.0)",
                  org.springframework.context;version="[2.0,4.0)",
                  org.springframework.core;version="[2.0,4.0)",
                  org.springframework.core.io;version="[2.0,4.0)",
                  org.springframework.util;version="[2.0,4.0)",
                  org.springframework.xml;version="[1.5.9,1.5.9]",
                  org.springframework.xml.dom;version="[1.5.9,1.5.9]",
                  org.springframework.xml.namespace;version="[1.5.9,1.5.9]",
                  org.springframework.xml.sax;version="[1.5.9,1.5.9]",
                  org.springframework.xml.stream;version="[1.5.9,1.5.9]",
                  org.springframework.xml.transform;version="[1.5.9,1.5.9]",
                  org.springframework.xml.validation;version="[1.5.9,1.5.9]",
                  org.springframework.xml.xpath;version="[1.5.9,1.5.9]",
                  org.springframework.xml.xsd;version="[1.5.9,1.5.9]",
                  org.springframework.xml.xsd.commons;version="[1.5.9,1.5.9]",
                  org.w3c.dom,
                  org.xml.sax,
                  org.xml.sax.ext,
                  org.xml.sax.helpers
          Export-Package = 
                  org.springframework.xml.namespace;uses:="org.springframework.util,javax.xml.namespace,org.w3c.dom";version=1.5.9,
                  org.springframework.xml;uses:="org.springframework.util,org.springframework.core";version=1.5.9,
                  org.springframework.xml.dom;uses:="org.springframework.util,org.w3c.dom,org.xml.sax";version=1.5.9,
                  org.springframework.xml.stream;
                          uses:="org.springframework.xml.namespace,
                                  javax.xml.stream,
                                  javax.xml.namespace,
                                  org.xml.sax,
                                  org.springframework.xml.sax,
                                  org.springframework.util,
                                  javax.xml.stream.util,
                                  javax.xml.stream.events,
                                  org.xml.sax.ext,
                                  org.xml.sax.helpers";
                          version=1.5.9,
                  org.springframework.xml.sax;uses:="org.xml.sax.ext,org.xml.sax,org.springframework.core.io";version=1.5.9,
                  org.springframework.xml.transform;
                          uses:="org.springframework.xml.sax,
                                  org.springframework.core.io,
                                  javax.xml.transform.sax,
                                  org.xml.sax,
                                  org.springframework.xml.stream,
                                  javax.xml.stream,
                                  javax.xml.stream.util,
                                  javax.xml.transform.stream,
                                  org.apache.commons.logging,
                                  org.springframework.util,
                                  javax.xml.transform,
                                  javax.xml.transform.stax,
                                  org.xml.sax.ext,
                                  org.w3c.dom,
                                  org.springframework.xml,
                                  javax.xml.transform.dom";
                          version=1.5.9,
                  org.springframework.xml.xsd;
                          uses:="org.springframework.xml.sax,
                                  org.springframework.util,
                                  org.springframework.core.io,
                                  javax.xml.parsers,
                                  javax.xml.transform.dom,
                                  org.springframework.xml.validation,
                                  org.w3c.dom,
                                  org.xml.sax,
                                  javax.xml.namespace,
                                  org.springframework.xml.namespace,
                                  javax.xml.transform,
                                  org.springframework.beans.factory,
                                  org.springframework.xml";
                          version=1.5.9,
                  org.springframework.xml.xsd.commons;
                          uses:="org.apache.ws.commons.schema,
                                  org.springframework.util,
                                  org.springframework.beans,
                                  org.springframework.core.io,
                                  org.springframework.xml.xsd,
                                  org.apache.ws.commons.schema.extensions,
                                  javax.xml.transform.dom,
                                  org.w3c.dom,
                                  org.springframework.xml.validation,
                                  javax.xml.namespace,
                                  javax.xml.transform,
                                  javax.xml.transform.stream,
                                  org.apache.ws.commons.schema.resolver,
                                  org.springframework.xml.sax,
                                  org.xml.sax,
                                  org.apache.commons.logging,
                                  org.springframework.context,
                                  org.springframework.beans.factory";
                          version=1.5.9,
                  org.springframework.xml.xpath;
                          uses:="org.w3c.dom,
                                  javax.xml.transform,
                                  org.springframework.xml.transform,
                                  javax.xml.transform.dom,
                                  org.jaxen,
                                  org.jaxen.dom,
                                  javax.xml.xpath,
                                  javax.xml.namespace,
                                  org.springframework.xml.namespace,
                                  org.xml.sax,
                                  javax.xml.transform.stream,
                                  javax.xml.transform.sax,
                                  org.springframework.xml,
                                  org.apache.commons.logging,
                                  org.springframework.util,
                                  org.springframework.beans.factory";
                          version=1.5.9,
                  org.springframework.xml.validation;
                          uses:="javax.xml.transform,
                                  javax.xml.transform.stream,
                                  javax.xml.parsers,
                                  javax.xml.transform.dom,
                                  javax.xml.transform.sax,
                                  org.xml.sax.helpers,
                                  org.xml.sax,
                                  org.springframework.xml.sax,
                                  org.springframework.core.io,
                                  javax.xml.validation,
                                  org.springframework.util,
                                  org.springframework.xml.transform,
                                  org.springframework.xml,
                                  org.apache.commons.logging";
                          version=1.5.9
          
          

          The exception we got:

          org.osgi.framework.BundleException: Constraint violation for package 'javax.xml.stream' when resolving module 38.0 between existing import 0.javax.xml.stream BLAMED ON [[38.0] package; (package=javax.xml.stream)] and uses constraint 25.0.javax.xml.stream BLAMED ON [[38.0] package; (&(package=org.springframework.xml.transform)(version>=1.5.9)(version<=1.5.9)), [37.0] package; (package=javax.xml.stream)]
          	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3428)
          	at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
          	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188)
          	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
          	at java.lang.Thread.run(Thread.java:680)
          RE: org.apache.felix.framework.resolver.ResolveException: Constraint violation for package 'javax.xml.stream' when resolving module 39.0 between existing import 25.0.javax.xml.stream BLAMED ON [[39.0] package; (&(package=javax.xml.stream)(version>=1.0.0))] and uses constraint 0.javax.xml.stream BLAMED ON [[39.0] package; (&(package=org.springframework.util.xml)(version>=2.0.0)(!(version>=4.0.0))), [13.0] package; (&(package=javax.xml.stream)(version>=0.0.0))]
          ERROR: Error starting file:bundles/org.springframework.bundle.ws.core_1.5.9.jar (org.osgi.framework.BundleException: Constraint violation for package 'javax.xml.stream' when resolving module 39.0 between existing import 25.0.javax.xml.stream BLAMED ON [[39.0] package; (&(package=javax.xml.stream)(version>=1.0.0))] and uses constraint 0.javax.xml.stream BLAMED ON [[39.0] package; (&(package=org.springframework.util.xml)(version>=2.0.0)(!(version>=4.0.0))), [13.0] package; (&(package=javax.xml.stream)(version>=0.0.0))])
          org.osgi.framework.BundleException: Constraint violation for package 'javax.xml.stream' when resolving module 39.0 between existing import 25.0.javax.xml.stream BLAMED ON [[39.0] package; (&(package=javax.xml.stream)(version>=1.0.0))] and uses constraint 0.javax.xml.stream BLAMED ON [[39.0] package; (&(package=org.springframework.util.xml)(version>=2.0.0)(!(version>=4.0.0))), [13.0] package; (&(package=javax.xml.stream)(version>=0.0.0))]
          	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3428)
          	at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
          	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188)
          	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
          	at java.lang.Thread.run(Thread.java:680)
          ERROR: Error starting file:bundles/org.apache.camel.camel-spring-ws_2.7.0.SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-spring-ws [40]: Unable to resolve 40.0: missing requirement [40.0] package; (&(package=org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0))) - [40.0] package; (&(package=org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0))))
          org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-spring-ws [40]: Unable to resolve 40.0: missing requirement [40.0] package; (&(package=org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0))) - [40.0] package; (&(package=org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0)))
          	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421)
          	at org.apache.felix.framework.Felix.startBundle(Felix.java:1754)
          	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188)
          	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
          	at java.lang.Thread.run(Thread.java:680)
          
          Show
          Christian Müller added a comment - I think the problem with the camel-itest-karaf for camel-spring-ws is because bundle [org.springframework.bundle.ws.xml] imports javax.xml.stream;resolution:=optional (which implies version "0.0.0", when I remember right). The Servicemix stax-api bundle exports javax.xml.stream;uses:="javax.xml.stream.events,javax.xml.namespace,javax.xml.stream.util,javax.xml.transform";version=1.0.1. I'm not sure how we should solve this. Apache ServiceMix :: Specs :: Stax API 1.0 (70) ----------------------------------------------- Manifest-Version = 1.0 Bnd-LastModified = 1294295628252 Tool = Bnd-0.0.357 Built-By = ffang Implementation-Version = 1.7.0 Build-Jdk = 1.6.0_13 Created-By = Apache Maven Bundle Plugin Implementation-Title = Apache ServiceMix Bundle-Vendor = The Apache Software Foundation Bundle-Activator = org.apache.servicemix.specs.locator.Activator Bundle-Name = Apache ServiceMix :: Specs :: Stax API 1.0 Bundle-DocURL = http: //www.apache.org/ Bundle-Description = This pom provides project information that is common to all ServiceMix branches. Bundle-SymbolicName = org.apache.servicemix.specs.stax-api-1.0 Bundle-Version = 1.7.0 Bundle-License = http: //www.apache.org/licenses/LICENSE-2.0.txt Bundle-ManifestVersion = 2 Import-Package = javax.xml.namespace, javax.xml.stream;version=1.0, javax.xml.stream.events;version=1.0, javax.xml.stream.util;version=1.0, javax.xml.transform, org.osgi.framework Export-Package = javax.xml.stream;uses:= "javax.xml.stream.events,javax.xml.namespace,javax.xml.stream.util,javax.xml.transform" ;version=1.0.1, javax.xml.stream.util;uses:= "javax.xml.stream,javax.xml.stream.events,javax.xml.namespace" ;version=1.0.1, javax.xml.stream.events;uses:= "javax.xml.namespace,javax.xml.stream" ;version=1.0.1 Spring XML (124) ---------------- Manifest-Version = 1.0 Bnd-LastModified = 1264761895862 Tool = Bnd-0.0.357 Built-By = arjen Spring-WS-Version = 1.5.9 Implementation-Version = 1.5.9 Build-Jdk = 1.6.0_03-p3 Implementation-Vendor-Id = org.springframework.ws Created-By = Apache Maven Bundle Plugin Implementation-Title = Spring XML Bundle-Vendor = SpringSource Bundle-Name = Spring XML Bundle-Description = Various XML support classes for Spring Web Services Bundle-SymbolicName = org.springframework.bundle.ws.xml Bundle-Version = 1.5.9 Bundle-ManifestVersion = 2 Import-Package = javax.xml.namespace, javax.xml.parsers, javax.xml.stream;resolution:=optional, javax.xml.stream.events;resolution:=optional, javax.xml.stream.util;resolution:=optional, javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stax;resolution:=optional, javax.xml.transform.stream, javax.xml.validation;resolution:=optional, javax.xml.xpath;resolution:=optional, org.apache.commons.logging, org.apache.ws.commons.schema;resolution:=optional, org.apache.ws.commons.schema.extensions;resolution:=optional, org.apache.ws.commons.schema.resolver;resolution:=optional, org.jaxen;resolution:=optional, org.jaxen.dom;resolution:=optional, org.springframework.beans;version= "[2.0,4.0)" , org.springframework.beans.factory;version= "[2.0,4.0)" , org.springframework.context;version= "[2.0,4.0)" , org.springframework.core;version= "[2.0,4.0)" , org.springframework.core.io;version= "[2.0,4.0)" , org.springframework.util;version= "[2.0,4.0)" , org.springframework.xml;version= "[1.5.9,1.5.9]" , org.springframework.xml.dom;version= "[1.5.9,1.5.9]" , org.springframework.xml.namespace;version= "[1.5.9,1.5.9]" , org.springframework.xml.sax;version= "[1.5.9,1.5.9]" , org.springframework.xml.stream;version= "[1.5.9,1.5.9]" , org.springframework.xml.transform;version= "[1.5.9,1.5.9]" , org.springframework.xml.validation;version= "[1.5.9,1.5.9]" , org.springframework.xml.xpath;version= "[1.5.9,1.5.9]" , org.springframework.xml.xsd;version= "[1.5.9,1.5.9]" , org.springframework.xml.xsd.commons;version= "[1.5.9,1.5.9]" , org.w3c.dom, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers Export-Package = org.springframework.xml.namespace;uses:= "org.springframework.util,javax.xml.namespace,org.w3c.dom" ;version=1.5.9, org.springframework.xml;uses:= "org.springframework.util,org.springframework.core" ;version=1.5.9, org.springframework.xml.dom;uses:= "org.springframework.util,org.w3c.dom,org.xml.sax" ;version=1.5.9, org.springframework.xml.stream; uses:="org.springframework.xml.namespace, javax.xml.stream, javax.xml.namespace, org.xml.sax, org.springframework.xml.sax, org.springframework.util, javax.xml.stream.util, javax.xml.stream.events, org.xml.sax.ext, org.xml.sax.helpers"; version=1.5.9, org.springframework.xml.sax;uses:= "org.xml.sax.ext,org.xml.sax,org.springframework.core.io" ;version=1.5.9, org.springframework.xml.transform; uses:="org.springframework.xml.sax, org.springframework.core.io, javax.xml.transform.sax, org.xml.sax, org.springframework.xml.stream, javax.xml.stream, javax.xml.stream.util, javax.xml.transform.stream, org.apache.commons.logging, org.springframework.util, javax.xml.transform, javax.xml.transform.stax, org.xml.sax.ext, org.w3c.dom, org.springframework.xml, javax.xml.transform.dom"; version=1.5.9, org.springframework.xml.xsd; uses:="org.springframework.xml.sax, org.springframework.util, org.springframework.core.io, javax.xml.parsers, javax.xml.transform.dom, org.springframework.xml.validation, org.w3c.dom, org.xml.sax, javax.xml.namespace, org.springframework.xml.namespace, javax.xml.transform, org.springframework.beans.factory, org.springframework.xml"; version=1.5.9, org.springframework.xml.xsd.commons; uses:="org.apache.ws.commons.schema, org.springframework.util, org.springframework.beans, org.springframework.core.io, org.springframework.xml.xsd, org.apache.ws.commons.schema.extensions, javax.xml.transform.dom, org.w3c.dom, org.springframework.xml.validation, javax.xml.namespace, javax.xml.transform, javax.xml.transform.stream, org.apache.ws.commons.schema.resolver, org.springframework.xml.sax, org.xml.sax, org.apache.commons.logging, org.springframework.context, org.springframework.beans.factory"; version=1.5.9, org.springframework.xml.xpath; uses:="org.w3c.dom, javax.xml.transform, org.springframework.xml.transform, javax.xml.transform.dom, org.jaxen, org.jaxen.dom, javax.xml.xpath, javax.xml.namespace, org.springframework.xml.namespace, org.xml.sax, javax.xml.transform.stream, javax.xml.transform.sax, org.springframework.xml, org.apache.commons.logging, org.springframework.util, org.springframework.beans.factory"; version=1.5.9, org.springframework.xml.validation; uses:="javax.xml.transform, javax.xml.transform.stream, javax.xml.parsers, javax.xml.transform.dom, javax.xml.transform.sax, org.xml.sax.helpers, org.xml.sax, org.springframework.xml.sax, org.springframework.core.io, javax.xml.validation, org.springframework.util, org.springframework.xml.transform, org.springframework.xml, org.apache.commons.logging"; version=1.5.9 The exception we got: org.osgi.framework.BundleException: Constraint violation for package 'javax.xml.stream' when resolving module 38.0 between existing import 0.javax.xml.stream BLAMED ON [[38.0] package ; ( package =javax.xml.stream)] and uses constraint 25.0.javax.xml.stream BLAMED ON [[38.0] package ; (&( package =org.springframework.xml.transform)(version>=1.5.9)(version<=1.5.9)), [37.0] package ; ( package =javax.xml.stream)] at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3428) at org.apache.felix.framework.Felix.startBundle(Felix.java:1754) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang. Thread .run( Thread .java:680) RE: org.apache.felix.framework.resolver.ResolveException: Constraint violation for package 'javax.xml.stream' when resolving module 39.0 between existing import 25.0.javax.xml.stream BLAMED ON [[39.0] package ; (&( package =javax.xml.stream)(version>=1.0.0))] and uses constraint 0.javax.xml.stream BLAMED ON [[39.0] package ; (&( package =org.springframework.util.xml)(version>=2.0.0)(!(version>=4.0.0))), [13.0] package ; (&( package =javax.xml.stream)(version>=0.0.0))] ERROR: Error starting file:bundles/org.springframework.bundle.ws.core_1.5.9.jar (org.osgi.framework.BundleException: Constraint violation for package 'javax.xml.stream' when resolving module 39.0 between existing import 25.0.javax.xml.stream BLAMED ON [[39.0] package ; (&( package =javax.xml.stream)(version>=1.0.0))] and uses constraint 0.javax.xml.stream BLAMED ON [[39.0] package ; (&( package =org.springframework.util.xml)(version>=2.0.0)(!(version>=4.0.0))), [13.0] package ; (&( package =javax.xml.stream)(version>=0.0.0))]) org.osgi.framework.BundleException: Constraint violation for package 'javax.xml.stream' when resolving module 39.0 between existing import 25.0.javax.xml.stream BLAMED ON [[39.0] package ; (&( package =javax.xml.stream)(version>=1.0.0))] and uses constraint 0.javax.xml.stream BLAMED ON [[39.0] package ; (&( package =org.springframework.util.xml)(version>=2.0.0)(!(version>=4.0.0))), [13.0] package ; (&( package =javax.xml.stream)(version>=0.0.0))] at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3428) at org.apache.felix.framework.Felix.startBundle(Felix.java:1754) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang. Thread .run( Thread .java:680) ERROR: Error starting file:bundles/org.apache.camel.camel-spring-ws_2.7.0.SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-spring-ws [40]: Unable to resolve 40.0: missing requirement [40.0] package ; (&( package =org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0))) - [40.0] package ; (&( package =org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0)))) org.osgi.framework.BundleException: Unresolved constraint in bundle org.apache.camel.camel-spring-ws [40]: Unable to resolve 40.0: missing requirement [40.0] package ; (&( package =org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0))) - [40.0] package ; (&( package =org.springframework.ws)(version>=3.0.0)(!(version>=4.0.0))) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3421) at org.apache.felix.framework.Felix.startBundle(Felix.java:1754) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1188) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang. Thread .run( Thread .java:680)
          Hide
          Christian Müller added a comment -

          downgrade to 1.5.9
          Committed r1076374

          Show
          Christian Müller added a comment - downgrade to 1.5.9 Committed r1076374
          Hide
          Christian Müller added a comment -

          We will upgrade to Spring WS 2.0.1 with CAMEL-3735

          Show
          Christian Müller added a comment - We will upgrade to Spring WS 2.0.1 with CAMEL-3735

            People

            • Assignee:
              Richard Kettelerij
              Reporter:
              Richard Kettelerij
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development