camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] Commented: (CAMEL-3659) Upgrade to Spring Web Services 2.0
Date Wed, 02 Mar 2011 21:01:36 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001634#comment-13001634
] 

Christian Müller commented on CAMEL-3659:
-----------------------------------------

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.

{code}
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
{code}

{code}
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

{code}

The exception we got:

{code}
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)
{code}

> Upgrade to Spring Web Services 2.0
> ----------------------------------
>
>                 Key: CAMEL-3659
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3659
>             Project: Camel
>          Issue Type: Task
>            Reporter: Richard Kettelerij
>            Assignee: Richard Kettelerij
>             Fix For: 2.7.0
>
>         Attachments: camel-parent-spring-ws-upgrade.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message