You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Christian Müller <ch...@gmail.com> on 2012/10/13 19:07:29 UTC

feature cxf-specs installation do not install all bundles in SMX 4.5.0

Cross post to dev@servicemix and dev@cxf because I'm not sure who has to
resolve the issue:
The issue is may caused, because the bundle
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0
depends on
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0,
but are listed in the cxf-specs feature in the reverse order.

The default feature boot path for SMX is:
featuresBoot=karaf-framework,config,activemq-broker,activemq-spring,cxf-specs,camel,camel-activemq,camel-cxf,camel-blueprint,war

The cxf-specs is defined as:
    <feature name="cxf-specs" version="2.6.2" resolver='(obr)'>
        <bundle
start-level='9'>mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.9.0</bundle>
        <bundle
start-level='10'>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
        <bundle
start-level='10'>mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.3</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/1.9.0</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0</bundle>
        <bundle start-level='10'>mvn:javax.mail/mail/1.4.4</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0</bundle>

        <bundle
start-level='20'>mvn:org.codehaus.woodstox/stax2-api/3.1.1</bundle>
        <bundle
start-level='20'>mvn:org.codehaus.woodstox/woodstox-core-asl/4.1.4</bundle>

        <bundle
start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2</bundle>
        <bundle
start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.1.1_2</bundle>
    </feature>

The camel-cxf features isn't installed and no error occurs.

The following bundles are also not installed:
-
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0
-
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0
-
mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0

and may be other too...

To reproduce the issue:
- unzip SMX 4.5.0-SNAPSHOT (20121007)
- rename ${SMX_HOME}/etc/jre.properties to
${SMX_HOME}/etc/jre.properties.orig
- rename ${SMX_HOME}/etc/jre.properties.cxf to
${SMX_HOME}/etc/jre.properties
- start SMX

karaf@root> features:list | grep -i cxf-specs
[installed  ] [2.6.2           ] cxf-specs
cxf-2.6.2

karaf@root> features:list | grep -i camel-cxf
[uninstalled] [2.10.1          ] camel-cxf
camel-2.10.1

karaf@root> list -t 0
START LEVEL 100 , List Threshold: 0
   ID   State         Blueprint      Spring    Level  Name
[   0] [Active     ] [            ] [       ] [    0] System Bundle (3.2.2)
[   1] [Active     ] [            ] [       ] [    5] OPS4J Pax Url - wrap:
(1.2.8)
[   2] [Active     ] [            ] [       ] [    5] OPS4J Pax Url - mvn:
(1.2.8)
[   3] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
Service (1.6.9)
[   4] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
API (1.6.9)
[   5] [Active     ] [            ] [       ] [   10] Apache Felix
Configuration Admin Service (1.2.8)
[   6] [Active     ] [            ] [       ] [   10] Apache Felix Bundle
Repository (1.6.4)
[   7] [Active     ] [            ] [       ] [   11] Apache Felix File
Install (3.2.4)
[   8] [Active     ] [            ] [       ] [   20] Apache Aries Proxy
Bundle (0.3.1)
[   9] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
Bundles :: asm (3.3.1.1)
[  10] [Active     ] [Created     ] [       ] [   20] Apache Aries
Blueprint Bundle (0.3.2)
[  11] [Active     ] [            ] [       ] [   20] Apache Aries Util
(0.3.1)
[  12] [Active     ] [Created     ] [       ] [   28] Apache Karaf ::
Deployer :: Blueprint (2.2.9)
[  13] [Active     ] [Created     ] [       ] [   28] Apache Karaf ::
Deployer :: Spring (2.2.9)
[  14] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Diagnostic :: Common (2.2.9)
[  15] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Deployer :: Features (2.2.9)
[  16] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: JAAS
:: Config (2.2.9)
[  17] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Admin
:: Management (2.2.9)
[  18] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: Console (2.2.9)
[  19] [Active     ] [            ] [       ] [   30] Apache Mina SSHD ::
Core (0.7.0)
[  20] [Active     ] [            ] [       ] [   30] Apache Aries JMX
Blueprint Bundle (0.3.0)
[  21] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: Development Commands (2.2.9)
[  22] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Features :: Core (2.2.9)
[  23] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Diagnostic :: Management (2.2.9)
[  24] [Active     ] [            ] [       ] [   30] Apache Aries JMX API
(0.3.0)
[  25] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Jaas
:: Command (2.2.9)
[  26] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Management (2.2.9)
[  27] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Deployer :: Wrap Non OSGi Jar (2.2.9)
[  28] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: JAAS
:: Modules (2.2.9)
[  29] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Admin
:: Command (2.2.9)
[  30] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: PackageAdmin Commands (2.2.9)
[  31] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Diagnostic :: Command (2.2.9)
[  32] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: OSGi Commands (2.2.9)
[  33] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Deployer :: Karaf Archive (.kar) (2.2.9)
[  34] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: SSH (2.2.9)
[  35] [Active     ] [            ] [       ] [   30] Apache MINA Core
(2.0.1)
[  36] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Features :: OBR Resolver (2.2.9)
[  37] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Admin
:: Core (2.2.9)
[  38] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Features :: Command (2.2.9)
[  39] [Active     ] [            ] [       ] [   30] Apache Karaf ::
Diagnostic :: Core (2.2.9)
[  40] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Features :: Management (2.2.9)
[  41] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: Various Commands (2.2.9)
[  42] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: Log Commands (2.2.9)
[  43] [Active     ] [            ] [       ] [   30] Apache Aries JMX Core
(0.3.1)
[  44] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: ConfigAdmin Commands (2.2.9)
[  45] [Active     ] [            ] [       ] [   80] kahadb (5.5.1)
[  46] [Active     ] [            ] [       ] [   80] activemq-pool (5.5.1)
[  47] [Active     ] [            ] [       ] [   80] activemq-console
(5.5.1)
[  48] [Active     ] [            ] [       ] [   80] Apache Aries
Transaction Manager (0.2.0.incubating)
[  49] [Active     ] [            ] [       ] [   80] activemq-ra (5.5.1)
[  50] [Active     ] [Created     ] [       ] [   80] activemq-core (5.5.1)
                                       Fragments: 62
[  51] [Active     ] [Created     ] [       ] [   80] activemq-karaf (5.5.1)
[  52] [Active     ] [            ] [       ] [   80]
geronimo-j2ee-management_1.1_spec (1.0.1)
[  53] [Active     ] [            ] [       ] [   80] Commons Pool (1.5.4)
[  54] [Active     ] [            ] [       ] [   80] geronimo-jms_1.1_spec
(1.1.1)
[  55] [Active     ] [            ] [       ] [   80]
geronimo-annotation_1.0_spec (1.1.1)
[  56] [Active     ] [            ] [       ] [   80] Apache ServiceMix ::
Bundles :: commons-codec (1.3.0.3)
[  57] [Active     ] [            ] [       ] [   80] Commons Collections
(3.2.1)
[  58] [Active     ] [            ] [       ] [   80] Apache ServiceMix
Bundles: velocity-1.6.2 (1.6.2.3)
[  59] [Active     ] [            ] [       ] [   80] Apache ServiceMix
Bundles: oro-2.0.8 (2.0.8.3)
[  60] [Active     ] [            ] [       ] [   80] Apache ServiceMix ::
Bundles :: jasypt (1.6.0.1)
[  61] [Active     ] [            ] [       ] [   80] Apache ServiceMix
Bundles: commons-lang-2.4 (2.4.0.3)
[  62] [Resolved   ] [            ] [       ] [   80] activemq-blueprint
(5.5.1)
                                       Hosts: 50
[  63] [Active     ] [Created     ] [       ] [   80] Apache XBean :: OSGI
Blueprint Namespace Handler (3.7)
[  64] [Active     ] [            ] [       ] [   80] Commons JEXL (2.0.1)
[  65] [Active     ] [Created     ] [       ] [   50] activemq-broker.xml
(0.0.0)
[  66] [Active     ] [            ] [       ] [   30] Spring Beans
(3.0.7.RELEASE)
[  67] [Active     ] [            ] [       ] [   30] Spring Context
Support (3.0.7.RELEASE)
[  68] [Active     ] [            ] [       ] [   30] Spring Context
(3.0.7.RELEASE)
[  69] [Active     ] [            ] [       ] [   30] Spring AOP
(3.0.7.RELEASE)
[  70] [Active     ] [            ] [       ] [   30] Spring Expression
Language (3.0.7.RELEASE)
[  71] [Active     ] [            ] [       ] [   30] Spring ASM
(3.0.7.RELEASE)
[  72] [Active     ] [            ] [       ] [   30] Spring Core
(3.0.7.RELEASE)
[  73] [Active     ] [            ] [       ] [   30] Apache ServiceMix ::
Bundles :: aopalliance (1.0.0.5)
[  74] [Active     ] [            ] [       ] [   30] spring-osgi-core
(1.2.1)
[  75] [Active     ] [            ] [       ] [   30] spring-osgi-io (1.2.1)
[  76] [Active     ] [            ] [       ] [   30]
spring-osgi-annotation (1.2.1)
[  77] [Active     ] [            ] [       ] [   30] spring-osgi-extender
(1.2.1)
[  78] [Active     ] [            ] [       ] [   30] Apache ServiceMix ::
Bundles :: cglib (2.1.0.3_7)
[  79] [Active     ] [            ] [       ] [   80] activemq-spring
(5.5.1)
[  80] [Active     ] [            ] [       ] [   80] Apache XBean ::
Spring (3.7)
[  81] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
Specs :: Stax API 1.0 (1.9.0)
[  82] [Active     ] [            ] [       ] [   10] JavaMail API (compat)
(1.4.4)
[  83] [Active     ] [            ] [       ] [    9] Apache Geronimo OSGI
factory registry (1.1)
[  84] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
Bundles :: jaxb-impl (2.2.1.1_2)
[  85] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
Bundles :: jaxb-xjc (2.2.1.1_2)
[  86] [Active     ] [            ] [       ] [   10] Web Services Metadata
2.0 (1.1.3)
[  87] [Active     ] [            ] [       ] [   20] Stax2 API (3.1.1)
[  88] [Active     ] [            ] [       ] [   20] Woodstox
XML-processor (4.1.4)
[  89] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
Specs :: JSR-311 API 1.1.1 (1.9.0)
[  90] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
Specs :: JAXB API 2.2 (1.9.0)
[  91] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
Specs :: Activation API 1.4 (1.9.0)
[  92] [Active     ] [            ] [       ] [   50] camel-core (2.10.1)
[  93] [Active     ] [Created     ] [       ] [   50] camel-karaf-commands
(2.10.1)
[  94] [Active     ] [            ] [       ] [   30] Spring Transaction
(3.0.7.RELEASE)
[  95] [Active     ] [            ] [       ] [   50] camel-spring (2.10.1)
[  96] [Active     ] [Created     ] [       ] [   50] camel-blueprint
(2.10.1)
[  97] [Active     ] [            ] [       ] [   30] Jetty :: Continuation
(7.5.4.v20111024)
[  98] [Active     ] [            ] [       ] [   30] Jetty :: JNDI Naming
(7.5.4.v20111024)
[  99] [Active     ] [            ] [       ] [   30] Jetty :: IO Utility
(7.5.4.v20111024)
[ 100] [Active     ] [            ] [       ] [   30] Jetty :: Security
(7.5.4.v20111024)
[ 101] [Active     ] [            ] [       ] [   30] Jetty :: Servlet
Handling (7.5.4.v20111024)
[ 102] [Active     ] [            ] [       ] [   30] Jetty :: Asynchronous
HTTP Client (7.5.4.v20111024)
[ 103] [Active     ] [            ] [       ] [   30] Jetty :: Server Core
(7.5.4.v20111024)
[ 104] [Active     ] [            ] [       ] [   30] Jetty :: Http Utility
(7.5.4.v20111024)
[ 105] [Active     ] [            ] [       ] [   30] Jetty :: Plus
(7.5.4.v20111024)
[ 106] [Active     ] [            ] [       ] [   30] Jetty :: JMX
Management (7.5.4.v20111024)
[ 107] [Active     ] [            ] [       ] [   30] Jetty :: Utilities
(7.5.4.v20111024)
[ 108] [Active     ] [            ] [       ] [   30] Jetty :: XML
utilities (7.5.4.v20111024)
[ 109] [Active     ] [            ] [       ] [   30] Jetty :: Websocket
(7.5.4.v20111024)
[ 110] [Active     ] [            ] [       ] [   30] Jetty :: Webapp
Application Support (7.5.4.v20111024)
[ 111] [Active     ] [            ] [       ] [   30] Jetty :: Utility
Servlets and Filters (7.5.4.v20111024)
[ 112] [Active     ] [            ] [       ] [   30]
geronimo-servlet_2.5_spec (1.1.2)
[ 113] [Active     ] [            ] [       ] [   30] OPS4J Pax Web - API
(1.0.11)
[ 114] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
Runtime (1.0.11)
[ 115] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
Service SPI (1.0.11)
[ 116] [Active     ] [            ] [       ] [   30] OPS4J Pax Web - Jetty
(1.0.11)
[ 117] [Active     ] [            ] [       ] [   30] Spring Web Servlet
(3.0.7.RELEASE)
[ 118] [Active     ] [            ] [       ] [   30] Spring Web
(3.0.7.RELEASE)
[ 119] [Active     ] [            ] [       ] [   30] Spring JMS
(3.0.7.RELEASE)
[ 120] [Active     ] [            ] [       ] [   10] geronimo-jta_1.1_spec
(1.1.1)
[ 121] [Active     ] [            ] [       ] [   50] camel-jms (2.10.1)
[ 122] [Active     ] [            ] [       ] [   50] activemq-camel (5.5.1)
[ 123] [Installed  ] [            ] [       ] [   40] Apache CXF Karaf
Commands (2.6.2)
[ 124] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
Core (2.6.2)
[ 125] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
Management (2.6.2)
[ 126] [Installed  ] [            ] [       ] [   40] Apache CXF API (2.6.2)
[ 127] [Installed  ] [            ] [       ] [   30] XmlSchema Core (2.0.3)
[ 128] [Installed  ] [            ] [       ] [   30] Apache ServiceMix ::
Bundles :: wsdl4j (1.6.2.6)
[ 129] [Resolved   ] [            ] [       ] [   30] Apache ServiceMix ::
Bundles :: FastInfoset (1.2.7.4)
[ 130] [Installed  ] [            ] [       ] [   30] Apache ServiceMix ::
Bundles :: xmlresolver (1.2.0.5)
[ 131] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
JAXB DataBinding (2.6.2)
[ 132] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
XML Binding (2.6.2)
[ 133] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
SOAP Binding (2.6.2)
[ 134] [Installed  ] [            ] [       ] [   30] OPS4J Pax Web -
Extender - Whiteboard (1.0.11)
[ 135] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
HTTP Transport (2.6.2)
[ 136] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Shell
:: Web Commands (2.2.9)
[ 137] [Active     ] [            ] [       ] [   30] OPS4J Pax Url - war
(1.2.8)
[ 138] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
Extender - WAR (1.0.11)
[ 139] [Active     ] [            ] [       ] [   30] OPS4J Pax Web - Jsp
Support (1.0.11)
[ 140] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
FileInstall Deployer (1.0.11)
[ 141] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
Management :: MBeans :: Web (2.2.9)

karaf@root> feature:install camel-cxf
Error executing command: Can not resolve feature:
Unsatisfied requirement(s):
---------------------------

package:(&(package=javax.xml.ws.wsaddressing)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend

package:(&(package=javax.xml.ws.spi.http)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend

package:(&(package=javax.xml.ws.handler.soap)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend
   package:(&(package=javax.xml.ws)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend

package:(&(package=javax.xml.ws.handler)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend
   package:(&(package=javax.xml.ws.soap)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend
   package:(&(package=javax.xml.soap))
      Apache CXF Runtime JAX-WS Frontend
   package:(&(package=javax.xml.ws.http)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend
   package:(&(package=javax.xml.ws.spi)(version>=2.2.0)(!(version>=3.0.0)))
      Apache CXF Runtime JAX-WS Frontend

Best,
Christian

--

Re: feature cxf-specs installation do not install all bundles in SMX 4.5.0

Posted by Christian Müller <ch...@gmail.com>.
Ok, thanks for the clarification Freeman. I will repeat my test to see
whether it works with the default jre.properties configuration.

Best,
Christian

On Mon, Oct 15, 2012 at 3:03 AM, Freeman Fang <fr...@gmail.com>wrote:

> Hi Christian,
>
> First of all, for the SMX distribution, you shouldn't copy
> jre.properties.cxf to jre.properties, you should just use default
> jre.properties as is, it's fine-tuned for the SMX distribution, with the
> default jre.properties, all should be OK. And yeah, we should remove
> jre.properties.cxf from SMX distribution as it just cause confusion, create
> SMX4-1262[1] to track it.
>
> Secondly, the dependency="true" for the spec api bundle is intended here,
> it works with fetuture attribute resolver='(obr)' which can prevent to
> install unnecessary bundle if the package already available in the
> container. For the SMX 4.5(SNAPSHOT), we endorse jaxws/saaj/jaxb(etc) spec
> api jars so those package already exported from system bundle 0,  have
>  dependency="true" can prevent install those unnecessary spec api bundles.
>
> [1]https://issues.apache.org/jira/browse/SMX4-1262
>
> Freeman
> -------------
> Freeman(Yue) Fang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://fusesource.com | http://www.redhat.com/
> Twitter: freemanfang
> Blog: http://freemanfang.blogspot.com
> http://blog.sina.com.cn/u/1473905042
> weibo: http://weibo.com/u/1473905042
>
> On 2012-10-14, at 下午11:19, Christian Müller wrote:
>
> > I have the same issue, if I add the CXF "wss4j" feature to the features
> > boot path and start SMX (./servicemix clean). The feature is defined as:
> >
> >    <feature name="wss4j" version="1.6.7" resolver='(obr)'>
> >        <feature version="2.6.2">cxf-specs</feature>
> >        <bundle start-level='25'
> > dependency="true">mvn:joda-time/joda-time/1.6.2</bundle>
> >        <bundle start-level='25'
> >
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.5.1_2</bundle>
> >        <bundle start-level='25'
> >
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.18_1</bundle>
> >        <bundle
> >
> start-level='25'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
> >        <bundle start-level='30'
> >
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_5</bundle>
> >        <bundle start-level='30'
> >
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_4</bundle>
> >        <bundle start-level='30'
> >
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_5</bundle>
> >        <bundle start-level='30'
> > dependency="true">mvn:org.apache.santuario/xmlsec/1.5.2</bundle>
> >        <bundle
> > start-level='30'>mvn:org.apache.ws.security/wss4j/1.6.7</bundle>
> >    </feature>
> >
> > karaf@root> features:list | grep -i wss4j
> > [installed  ] [1.6.7           ] wss4j
> > cxf-2.6.2
> >
> > karaf@root> list -t 0 | grep -i xerces
> > karaf@root> list -t 0 | grep -i xalan
> > karaf@root> list -t 0 | grep -i saaj
> > [  54] [Active     ] [            ] [       ] [   10] Apache ServiceMix
> ::
> > Specs :: SAAJ API 1.3 (1.9.0)
> >
> > I miss saaj-impl...
> >
> > Now, when I deploy my service [1] which use wss4j, it fails with the
> stack
> > trace:
> > 17:16:24,976 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> > interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
> > 17:16:24,979 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> > interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
> > 17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> > interceptor
> org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
> > 17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> > interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
> > 17:16:24,984 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> > interceptor
> >
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
> > 17:16:29,991 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> > interceptor
> >
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
> > 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> > interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
> > 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> > interceptor
> org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
> > 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> > interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
> > 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> > interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
> > 17:16:29,993 | WARN  | vice/SecureProxy | PhaseInterceptorChain
> > | 115 - org.apache.cxf.cxf-api - 2.6.2 | Interceptor for {
> > http://services.samples/xsd}SecureProxy has thrown exception, unwinding
> now
> > org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
> >        at
> >
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:139)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
> >        at
> >
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:101)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
> >        at
> >
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[115:org.apache.cxf.cxf-api:2.6.2]
> >        at
> >
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[115:org.apache.cxf.cxf-api:2.6.2]
> >        at
> >
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
> >        at
> >
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
> >        at
> >
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
> >        at
> >
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
> >        at
> >
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:221)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
> >        at
> >
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:141)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
> >        at
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:713)[80:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
> >        at
> >
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:197)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
> >        at
> >
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
> >        at
> >
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
> >        at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)[68:org.eclipse.jetty.security:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
> >        at
> >
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.Server.handle(Server.java:345)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[72:org.eclipse.jetty.http:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)[72:org.eclipse.jetty.http:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[71:org.eclipse.jetty.server:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[67:
> org.eclipse.jetty.io:7
> > .5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[67:
> org.eclipse.jetty.io:7
> > .5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[75:org.eclipse.jetty.util:7.5.4.v20111024]
> >        at
> >
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[75:org.eclipse.jetty.util:7.5.4.v20111024]
> >        at java.lang.Thread.run(Thread.java:680)[:1.6.0_35]
> > Caused by: javax.xml.soap.SOAPException: Unable to create message factory
> > for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
> >        at
> >
> javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89)[54:org.apache.servicemix.specs.saaj-api-1.3:1.9.0]
> >        at
> >
> org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
> >        at
> >
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.getFactory(SAAJInInterceptor.java:145)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
> >        at
> >
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:127)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
> >        ... 36 more
> >
> >
> > When I remove the 'dependency="true"' statements from this feature, the
> > "wss4j" feature and all bundles are installed as expected and I can
> deploy
> > my service without this issue.
> >
> > Is there a documentation what 'dependency="true"' means?
> >
> > [1]
> >
> https://github.com/muellerc/esbperformance/tree/master/servicemix-osgi/secure-proxy
> >
> > Best,
> > Christian
>
>


--

Re: feature cxf-specs installation do not install all bundles in SMX 4.5.0

Posted by Freeman Fang <fr...@gmail.com>.
Hi Christian,

First of all, for the SMX distribution, you shouldn't copy jre.properties.cxf to jre.properties, you should just use default jre.properties as is, it's fine-tuned for the SMX distribution, with the default jre.properties, all should be OK. And yeah, we should remove jre.properties.cxf from SMX distribution as it just cause confusion, create SMX4-1262[1] to track it.

Secondly, the dependency="true" for the spec api bundle is intended here, it works with fetuture attribute resolver='(obr)' which can prevent to install unnecessary bundle if the package already available in the container. For the SMX 4.5(SNAPSHOT), we endorse jaxws/saaj/jaxb(etc) spec api jars so those package already exported from system bundle 0,  have  dependency="true" can prevent install those unnecessary spec api bundles.

[1]https://issues.apache.org/jira/browse/SMX4-1262

Freeman
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-10-14, at 下午11:19, Christian Müller wrote:

> I have the same issue, if I add the CXF "wss4j" feature to the features
> boot path and start SMX (./servicemix clean). The feature is defined as:
> 
>    <feature name="wss4j" version="1.6.7" resolver='(obr)'>
>        <feature version="2.6.2">cxf-specs</feature>
>        <bundle start-level='25'
> dependency="true">mvn:joda-time/joda-time/1.6.2</bundle>
>        <bundle start-level='25'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.5.1_2</bundle>
>        <bundle start-level='25'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.18_1</bundle>
>        <bundle
> start-level='25'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_5</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_4</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_5</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.santuario/xmlsec/1.5.2</bundle>
>        <bundle
> start-level='30'>mvn:org.apache.ws.security/wss4j/1.6.7</bundle>
>    </feature>
> 
> karaf@root> features:list | grep -i wss4j
> [installed  ] [1.6.7           ] wss4j
> cxf-2.6.2
> 
> karaf@root> list -t 0 | grep -i xerces
> karaf@root> list -t 0 | grep -i xalan
> karaf@root> list -t 0 | grep -i saaj
> [  54] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: SAAJ API 1.3 (1.9.0)
> 
> I miss saaj-impl...
> 
> Now, when I deploy my service [1] which use wss4j, it fails with the stack
> trace:
> 17:16:24,976 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
> 17:16:24,979 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
> 17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
> 17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
> 17:16:24,984 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
> 17:16:29,991 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
> 17:16:29,993 | WARN  | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Interceptor for {
> http://services.samples/xsd}SecureProxy has thrown exception, unwinding now
> org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:139)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:101)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[115:org.apache.cxf.cxf-api:2.6.2]
>        at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[115:org.apache.cxf.cxf-api:2.6.2]
>        at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:221)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:141)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:713)[80:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:197)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
>        at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
>        at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
>        at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)[68:org.eclipse.jetty.security:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
>        at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.Server.handle(Server.java:345)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[72:org.eclipse.jetty.http:7.5.4.v20111024]
>        at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)[72:org.eclipse.jetty.http:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[67:org.eclipse.jetty.io:7
> .5.4.v20111024]
>        at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[67:org.eclipse.jetty.io:7
> .5.4.v20111024]
>        at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[75:org.eclipse.jetty.util:7.5.4.v20111024]
>        at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[75:org.eclipse.jetty.util:7.5.4.v20111024]
>        at java.lang.Thread.run(Thread.java:680)[:1.6.0_35]
> Caused by: javax.xml.soap.SOAPException: Unable to create message factory
> for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
>        at
> javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89)[54:org.apache.servicemix.specs.saaj-api-1.3:1.9.0]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.getFactory(SAAJInInterceptor.java:145)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:127)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        ... 36 more
> 
> 
> When I remove the 'dependency="true"' statements from this feature, the
> "wss4j" feature and all bundles are installed as expected and I can deploy
> my service without this issue.
> 
> Is there a documentation what 'dependency="true"' means?
> 
> [1]
> https://github.com/muellerc/esbperformance/tree/master/servicemix-osgi/secure-proxy
> 
> Best,
> Christian


Re: feature cxf-specs installation do not install all bundles in SMX 4.5.0

Posted by Freeman Fang <fr...@gmail.com>.
Hi Christian,

First of all, for the SMX distribution, you shouldn't copy jre.properties.cxf to jre.properties, you should just use default jre.properties as is, it's fine-tuned for the SMX distribution, with the default jre.properties, all should be OK. And yeah, we should remove jre.properties.cxf from SMX distribution as it just cause confusion, create SMX4-1262[1] to track it.

Secondly, the dependency="true" for the spec api bundle is intended here, it works with fetuture attribute resolver='(obr)' which can prevent to install unnecessary bundle if the package already available in the container. For the SMX 4.5(SNAPSHOT), we endorse jaxws/saaj/jaxb(etc) spec api jars so those package already exported from system bundle 0,  have  dependency="true" can prevent install those unnecessary spec api bundles.

[1]https://issues.apache.org/jira/browse/SMX4-1262

Freeman
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042

On 2012-10-14, at 下午11:19, Christian Müller wrote:

> I have the same issue, if I add the CXF "wss4j" feature to the features
> boot path and start SMX (./servicemix clean). The feature is defined as:
> 
>    <feature name="wss4j" version="1.6.7" resolver='(obr)'>
>        <feature version="2.6.2">cxf-specs</feature>
>        <bundle start-level='25'
> dependency="true">mvn:joda-time/joda-time/1.6.2</bundle>
>        <bundle start-level='25'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.5.1_2</bundle>
>        <bundle start-level='25'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.18_1</bundle>
>        <bundle
> start-level='25'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_5</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_4</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_5</bundle>
>        <bundle start-level='30'
> dependency="true">mvn:org.apache.santuario/xmlsec/1.5.2</bundle>
>        <bundle
> start-level='30'>mvn:org.apache.ws.security/wss4j/1.6.7</bundle>
>    </feature>
> 
> karaf@root> features:list | grep -i wss4j
> [installed  ] [1.6.7           ] wss4j
> cxf-2.6.2
> 
> karaf@root> list -t 0 | grep -i xerces
> karaf@root> list -t 0 | grep -i xalan
> karaf@root> list -t 0 | grep -i saaj
> [  54] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: SAAJ API 1.3 (1.9.0)
> 
> I miss saaj-impl...
> 
> Now, when I deploy my service [1] which use wss4j, it fails with the stack
> trace:
> 17:16:24,976 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
> 17:16:24,979 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
> 17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
> 17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
> 17:16:24,984 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
> interceptor
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
> 17:16:29,991 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
> 17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
> interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
> 17:16:29,993 | WARN  | vice/SecureProxy | PhaseInterceptorChain
> | 115 - org.apache.cxf.cxf-api - 2.6.2 | Interceptor for {
> http://services.samples/xsd}SecureProxy has thrown exception, unwinding now
> org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:139)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:101)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[115:org.apache.cxf.cxf-api:2.6.2]
>        at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[115:org.apache.cxf.cxf-api:2.6.2]
>        at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:221)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:141)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:713)[80:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
>        at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:197)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
>        at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
>        at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
>        at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
>        at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)[68:org.eclipse.jetty.security:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
>        at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.Server.handle(Server.java:345)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[72:org.eclipse.jetty.http:7.5.4.v20111024]
>        at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)[72:org.eclipse.jetty.http:7.5.4.v20111024]
>        at
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[71:org.eclipse.jetty.server:7.5.4.v20111024]
>        at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[67:org.eclipse.jetty.io:7
> .5.4.v20111024]
>        at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[67:org.eclipse.jetty.io:7
> .5.4.v20111024]
>        at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[75:org.eclipse.jetty.util:7.5.4.v20111024]
>        at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[75:org.eclipse.jetty.util:7.5.4.v20111024]
>        at java.lang.Thread.run(Thread.java:680)[:1.6.0_35]
> Caused by: javax.xml.soap.SOAPException: Unable to create message factory
> for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
>        at
> javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89)[54:org.apache.servicemix.specs.saaj-api-1.3:1.9.0]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.getFactory(SAAJInInterceptor.java:145)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        at
> org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:127)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
>        ... 36 more
> 
> 
> When I remove the 'dependency="true"' statements from this feature, the
> "wss4j" feature and all bundles are installed as expected and I can deploy
> my service without this issue.
> 
> Is there a documentation what 'dependency="true"' means?
> 
> [1]
> https://github.com/muellerc/esbperformance/tree/master/servicemix-osgi/secure-proxy
> 
> Best,
> Christian


Re: feature cxf-specs installation do not install all bundles in SMX 4.5.0

Posted by Christian Müller <ch...@gmail.com>.
I have the same issue, if I add the CXF "wss4j" feature to the features
boot path and start SMX (./servicemix clean). The feature is defined as:

    <feature name="wss4j" version="1.6.7" resolver='(obr)'>
        <feature version="2.6.2">cxf-specs</feature>
        <bundle start-level='25'
dependency="true">mvn:joda-time/joda-time/1.6.2</bundle>
        <bundle start-level='25'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.5.1_2</bundle>
        <bundle start-level='25'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.18_1</bundle>
        <bundle
start-level='25'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_5</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_4</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_5</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.santuario/xmlsec/1.5.2</bundle>
        <bundle
start-level='30'>mvn:org.apache.ws.security/wss4j/1.6.7</bundle>
    </feature>

karaf@root> features:list | grep -i wss4j
[installed  ] [1.6.7           ] wss4j
cxf-2.6.2

karaf@root> list -t 0 | grep -i xerces
karaf@root> list -t 0 | grep -i xalan
karaf@root> list -t 0 | grep -i saaj
[  54] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
Specs :: SAAJ API 1.3 (1.9.0)

I miss saaj-impl...

Now, when I deploy my service [1] which use wss4j, it fails with the stack
trace:
17:16:24,976 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
17:16:24,979 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
17:16:24,984 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
17:16:29,991 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
17:16:29,993 | WARN  | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Interceptor for {
http://services.samples/xsd}SecureProxy has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:139)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:101)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[115:org.apache.cxf.cxf-api:2.6.2]
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[115:org.apache.cxf.cxf-api:2.6.2]
        at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:221)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:141)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:713)[80:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
        at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:197)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
        at
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)[68:org.eclipse.jetty.security:7.5.4.v20111024]
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.Server.handle(Server.java:345)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[72:org.eclipse.jetty.http:7.5.4.v20111024]
        at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)[72:org.eclipse.jetty.http:7.5.4.v20111024]
        at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[67:org.eclipse.jetty.io:7
.5.4.v20111024]
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[67:org.eclipse.jetty.io:7
.5.4.v20111024]
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[75:org.eclipse.jetty.util:7.5.4.v20111024]
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[75:org.eclipse.jetty.util:7.5.4.v20111024]
        at java.lang.Thread.run(Thread.java:680)[:1.6.0_35]
Caused by: javax.xml.soap.SOAPException: Unable to create message factory
for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
        at
javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89)[54:org.apache.servicemix.specs.saaj-api-1.3:1.9.0]
        at
org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.getFactory(SAAJInInterceptor.java:145)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:127)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        ... 36 more


When I remove the 'dependency="true"' statements from this feature, the
"wss4j" feature and all bundles are installed as expected and I can deploy
my service without this issue.

Is there a documentation what 'dependency="true"' means?

[1]
https://github.com/muellerc/esbperformance/tree/master/servicemix-osgi/secure-proxy

Best,
Christian

Re: feature cxf-specs installation do not install all bundles in SMX 4.5.0

Posted by Christian Müller <ch...@gmail.com>.
I have the same issue, if I add the CXF "wss4j" feature to the features
boot path and start SMX (./servicemix clean). The feature is defined as:

    <feature name="wss4j" version="1.6.7" resolver='(obr)'>
        <feature version="2.6.2">cxf-specs</feature>
        <bundle start-level='25'
dependency="true">mvn:joda-time/joda-time/1.6.2</bundle>
        <bundle start-level='25'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.opensaml/2.5.1_2</bundle>
        <bundle start-level='25'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.18_1</bundle>
        <bundle
start-level='25'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xmlresolver/1.2_5</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xerces/2.9.1_5</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.bcel/5.2_4</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan/2.7.1_5</bundle>
        <bundle start-level='30'
dependency="true">mvn:org.apache.santuario/xmlsec/1.5.2</bundle>
        <bundle
start-level='30'>mvn:org.apache.ws.security/wss4j/1.6.7</bundle>
    </feature>

karaf@root> features:list | grep -i wss4j
[installed  ] [1.6.7           ] wss4j
cxf-2.6.2

karaf@root> list -t 0 | grep -i xerces
karaf@root> list -t 0 | grep -i xalan
karaf@root> list -t 0 | grep -i saaj
[  54] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
Specs :: SAAJ API 1.3 (1.9.0)

I miss saaj-impl...

Now, when I deploy my service [1] which use wss4j, it fails with the stack
trace:
17:16:24,976 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
17:16:24,979 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
17:16:24,982 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
17:16:24,984 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleMessage on
interceptor
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
17:16:29,991 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor@42e57c4c
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.interceptor.StaxInInterceptor@73e48fa7
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.transport.https.CertConstraintsInterceptor@cc6798
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@70e98812
17:16:29,992 | DEBUG | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Invoking handleFault on
interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@79b9950e
17:16:29,993 | WARN  | vice/SecureProxy | PhaseInterceptorChain
| 115 - org.apache.cxf.cxf-api - 2.6.2 | Interceptor for {
http://services.samples/xsd}SecureProxy has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:139)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:101)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)[115:org.apache.cxf.cxf-api:2.6.2]
        at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[115:org.apache.cxf.cxf-api:2.6.2]
        at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:130)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:221)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:141)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:713)[80:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]
        at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:197)[122:org.apache.cxf.cxf-rt-transports-http:2.6.2]
        at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
        at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
        at
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)[68:org.eclipse.jetty.security:7.5.4.v20111024]
        at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:117)[85:org.ops4j.pax.web.pax-web-jetty:1.0.11]
        at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409)[69:org.eclipse.jetty.servlet:7.5.4.v20111024]
        at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.Server.handle(Server.java:345)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[72:org.eclipse.jetty.http:7.5.4.v20111024]
        at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)[72:org.eclipse.jetty.http:7.5.4.v20111024]
        at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)[71:org.eclipse.jetty.server:7.5.4.v20111024]
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)[67:org.eclipse.jetty.io:7
.5.4.v20111024]
        at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)[67:org.eclipse.jetty.io:7
.5.4.v20111024]
        at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)[75:org.eclipse.jetty.util:7.5.4.v20111024]
        at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)[75:org.eclipse.jetty.util:7.5.4.v20111024]
        at java.lang.Thread.run(Thread.java:680)[:1.6.0_35]
Caused by: javax.xml.soap.SOAPException: Unable to create message factory
for SOAP: Provider org.apache.axis2.saaj.MessageFactoryImpl not found
        at
javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:89)[54:org.apache.servicemix.specs.saaj-api-1.3:1.9.0]
        at
org.apache.cxf.binding.soap.saaj.SAAJFactoryResolver.createMessageFactory(SAAJFactoryResolver.java:56)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.getFactory(SAAJInInterceptor.java:145)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        at
org.apache.cxf.binding.soap.saaj.SAAJInInterceptor$SAAJPreInInterceptor.handleMessage(SAAJInInterceptor.java:127)[121:org.apache.cxf.cxf-rt-bindings-soap:2.6.2]
        ... 36 more


When I remove the 'dependency="true"' statements from this feature, the
"wss4j" feature and all bundles are installed as expected and I can deploy
my service without this issue.

Is there a documentation what 'dependency="true"' means?

[1]
https://github.com/muellerc/esbperformance/tree/master/servicemix-osgi/secure-proxy

Best,
Christian

Re: feature cxf-specs installation do not install all bundles in SMX 4.5.0

Posted by Christian Müller <ch...@gmail.com>.
Changing the "cxf-specs" feature to the following solved the issue (I'm not
sure what the meaning of 'dependency="true"' is):

    <feature name="cxf-specs" version="2.6.2" resolver='(obr)'>
        <bundle
start-level='9'>mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.9.0</bundle>
        <bundle
start-level='10'>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
        <bundle
start-level='10'>mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.3</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/1.9.0</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0</bundle>
        <bundle start-level='10'>mvn:javax.mail/mail/1.4.4</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0</bundle>

        <bundle
start-level='20'>mvn:org.codehaus.woodstox/stax2-api/3.1.1</bundle>
        <bundle
start-level='20'>mvn:org.codehaus.woodstox/woodstox-core-asl/4.1.4</bundle>

        <bundle
start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2</bundle>
        <bundle
start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.1.1_2</bundle>
    </feature>

Best,
Christian

On Sat, Oct 13, 2012 at 7:07 PM, Christian Müller <
christian.mueller@gmail.com> wrote:

> Cross post to dev@servicemix and dev@cxf because I'm not sure who has to
> resolve the issue:
> The issue is may caused, because the bundle
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0
> depends on
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0,
> but are listed in the cxf-specs feature in the reverse order.
>
> The default feature boot path for SMX is:
>
> featuresBoot=karaf-framework,config,activemq-broker,activemq-spring,cxf-specs,camel,camel-activemq,camel-cxf,camel-blueprint,war
>
> The cxf-specs is defined as:
>     <feature name="cxf-specs" version="2.6.2" resolver='(obr)'>
>         <bundle
> start-level='9'>mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.9.0</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.3</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/1.9.0</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0</bundle>
>         <bundle start-level='10'>mvn:javax.mail/mail/1.4.4</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0</bundle>
>
>         <bundle
> start-level='20'>mvn:org.codehaus.woodstox/stax2-api/3.1.1</bundle>
>         <bundle
> start-level='20'>mvn:org.codehaus.woodstox/woodstox-core-asl/4.1.4</bundle>
>
>         <bundle
> start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2</bundle>
>         <bundle
> start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.1.1_2</bundle>
>     </feature>
>
> The camel-cxf features isn't installed and no error occurs.
>
> The following bundles are also not installed:
> -
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0
> -
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0
> -
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0
>
> and may be other too...
>
> To reproduce the issue:
> - unzip SMX 4.5.0-SNAPSHOT (20121007)
> - rename ${SMX_HOME}/etc/jre.properties to
> ${SMX_HOME}/etc/jre.properties.orig
> - rename ${SMX_HOME}/etc/jre.properties.cxf to
> ${SMX_HOME}/etc/jre.properties
> - start SMX
>
> karaf@root> features:list | grep -i cxf-specs
> [installed  ] [2.6.2           ] cxf-specs
> cxf-2.6.2
>
> karaf@root> features:list | grep -i camel-cxf
> [uninstalled] [2.10.1          ] camel-cxf
> camel-2.10.1
>
> karaf@root> list -t 0
> START LEVEL 100 , List Threshold: 0
>    ID   State         Blueprint      Spring    Level  Name
> [   0] [Active     ] [            ] [       ] [    0] System Bundle (3.2.2)
> [   1] [Active     ] [            ] [       ] [    5] OPS4J Pax Url -
> wrap: (1.2.8)
> [   2] [Active     ] [            ] [       ] [    5] OPS4J Pax Url - mvn:
> (1.2.8)
> [   3] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
> Service (1.6.9)
> [   4] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
> API (1.6.9)
> [   5] [Active     ] [            ] [       ] [   10] Apache Felix
> Configuration Admin Service (1.2.8)
> [   6] [Active     ] [            ] [       ] [   10] Apache Felix Bundle
> Repository (1.6.4)
> [   7] [Active     ] [            ] [       ] [   11] Apache Felix File
> Install (3.2.4)
> [   8] [Active     ] [            ] [       ] [   20] Apache Aries Proxy
> Bundle (0.3.1)
> [   9] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
> Bundles :: asm (3.3.1.1)
> [  10] [Active     ] [Created     ] [       ] [   20] Apache Aries
> Blueprint Bundle (0.3.2)
> [  11] [Active     ] [            ] [       ] [   20] Apache Aries Util
> (0.3.1)
> [  12] [Active     ] [Created     ] [       ] [   28] Apache Karaf ::
> Deployer :: Blueprint (2.2.9)
> [  13] [Active     ] [Created     ] [       ] [   28] Apache Karaf ::
> Deployer :: Spring (2.2.9)
> [  14] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Common (2.2.9)
> [  15] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Deployer :: Features (2.2.9)
> [  16] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: JAAS
> :: Config (2.2.9)
> [  17] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Admin :: Management (2.2.9)
> [  18] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Console (2.2.9)
> [  19] [Active     ] [            ] [       ] [   30] Apache Mina SSHD ::
> Core (0.7.0)
> [  20] [Active     ] [            ] [       ] [   30] Apache Aries JMX
> Blueprint Bundle (0.3.0)
> [  21] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Development Commands (2.2.9)
> [  22] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: Core (2.2.9)
> [  23] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Management (2.2.9)
> [  24] [Active     ] [            ] [       ] [   30] Apache Aries JMX API
> (0.3.0)
> [  25] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Jaas
> :: Command (2.2.9)
> [  26] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Management (2.2.9)
> [  27] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Deployer :: Wrap Non OSGi Jar (2.2.9)
> [  28] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: JAAS
> :: Modules (2.2.9)
> [  29] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Admin :: Command (2.2.9)
> [  30] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: PackageAdmin Commands (2.2.9)
> [  31] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Command (2.2.9)
> [  32] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: OSGi Commands (2.2.9)
> [  33] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Deployer :: Karaf Archive (.kar) (2.2.9)
> [  34] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: SSH (2.2.9)
> [  35] [Active     ] [            ] [       ] [   30] Apache MINA Core
> (2.0.1)
> [  36] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: OBR Resolver (2.2.9)
> [  37] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Admin :: Core (2.2.9)
> [  38] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: Command (2.2.9)
> [  39] [Active     ] [            ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Core (2.2.9)
> [  40] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: Management (2.2.9)
> [  41] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Various Commands (2.2.9)
> [  42] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Log Commands (2.2.9)
> [  43] [Active     ] [            ] [       ] [   30] Apache Aries JMX
> Core (0.3.1)
> [  44] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: ConfigAdmin Commands (2.2.9)
> [  45] [Active     ] [            ] [       ] [   80] kahadb (5.5.1)
> [  46] [Active     ] [            ] [       ] [   80] activemq-pool (5.5.1)
> [  47] [Active     ] [            ] [       ] [   80] activemq-console
> (5.5.1)
> [  48] [Active     ] [            ] [       ] [   80] Apache Aries
> Transaction Manager (0.2.0.incubating)
> [  49] [Active     ] [            ] [       ] [   80] activemq-ra (5.5.1)
> [  50] [Active     ] [Created     ] [       ] [   80] activemq-core (5.5.1)
>                                        Fragments: 62
> [  51] [Active     ] [Created     ] [       ] [   80] activemq-karaf
> (5.5.1)
> [  52] [Active     ] [            ] [       ] [   80]
> geronimo-j2ee-management_1.1_spec (1.0.1)
> [  53] [Active     ] [            ] [       ] [   80] Commons Pool (1.5.4)
> [  54] [Active     ] [            ] [       ] [   80]
> geronimo-jms_1.1_spec (1.1.1)
> [  55] [Active     ] [            ] [       ] [   80]
> geronimo-annotation_1.0_spec (1.1.1)
> [  56] [Active     ] [            ] [       ] [   80] Apache ServiceMix ::
> Bundles :: commons-codec (1.3.0.3)
> [  57] [Active     ] [            ] [       ] [   80] Commons Collections
> (3.2.1)
> [  58] [Active     ] [            ] [       ] [   80] Apache ServiceMix
> Bundles: velocity-1.6.2 (1.6.2.3)
> [  59] [Active     ] [            ] [       ] [   80] Apache ServiceMix
> Bundles: oro-2.0.8 (2.0.8.3)
> [  60] [Active     ] [            ] [       ] [   80] Apache ServiceMix ::
> Bundles :: jasypt (1.6.0.1)
> [  61] [Active     ] [            ] [       ] [   80] Apache ServiceMix
> Bundles: commons-lang-2.4 (2.4.0.3)
> [  62] [Resolved   ] [            ] [       ] [   80] activemq-blueprint
> (5.5.1)
>                                        Hosts: 50
> [  63] [Active     ] [Created     ] [       ] [   80] Apache XBean :: OSGI
> Blueprint Namespace Handler (3.7)
> [  64] [Active     ] [            ] [       ] [   80] Commons JEXL (2.0.1)
> [  65] [Active     ] [Created     ] [       ] [   50] activemq-broker.xml
> (0.0.0)
> [  66] [Active     ] [            ] [       ] [   30] Spring Beans
> (3.0.7.RELEASE)
> [  67] [Active     ] [            ] [       ] [   30] Spring Context
> Support (3.0.7.RELEASE)
> [  68] [Active     ] [            ] [       ] [   30] Spring Context
> (3.0.7.RELEASE)
> [  69] [Active     ] [            ] [       ] [   30] Spring AOP
> (3.0.7.RELEASE)
> [  70] [Active     ] [            ] [       ] [   30] Spring Expression
> Language (3.0.7.RELEASE)
> [  71] [Active     ] [            ] [       ] [   30] Spring ASM
> (3.0.7.RELEASE)
> [  72] [Active     ] [            ] [       ] [   30] Spring Core
> (3.0.7.RELEASE)
> [  73] [Active     ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: aopalliance (1.0.0.5)
> [  74] [Active     ] [            ] [       ] [   30] spring-osgi-core
> (1.2.1)
> [  75] [Active     ] [            ] [       ] [   30] spring-osgi-io
> (1.2.1)
> [  76] [Active     ] [            ] [       ] [   30]
> spring-osgi-annotation (1.2.1)
> [  77] [Active     ] [            ] [       ] [   30] spring-osgi-extender
> (1.2.1)
> [  78] [Active     ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: cglib (2.1.0.3_7)
> [  79] [Active     ] [            ] [       ] [   80] activemq-spring
> (5.5.1)
> [  80] [Active     ] [            ] [       ] [   80] Apache XBean ::
> Spring (3.7)
> [  81] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: Stax API 1.0 (1.9.0)
> [  82] [Active     ] [            ] [       ] [   10] JavaMail API
> (compat) (1.4.4)
> [  83] [Active     ] [            ] [       ] [    9] Apache Geronimo OSGI
> factory registry (1.1)
> [  84] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
> Bundles :: jaxb-impl (2.2.1.1_2)
> [  85] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
> Bundles :: jaxb-xjc (2.2.1.1_2)
> [  86] [Active     ] [            ] [       ] [   10] Web Services
> Metadata 2.0 (1.1.3)
> [  87] [Active     ] [            ] [       ] [   20] Stax2 API (3.1.1)
> [  88] [Active     ] [            ] [       ] [   20] Woodstox
> XML-processor (4.1.4)
> [  89] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: JSR-311 API 1.1.1 (1.9.0)
> [  90] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: JAXB API 2.2 (1.9.0)
> [  91] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: Activation API 1.4 (1.9.0)
> [  92] [Active     ] [            ] [       ] [   50] camel-core (2.10.1)
> [  93] [Active     ] [Created     ] [       ] [   50] camel-karaf-commands
> (2.10.1)
> [  94] [Active     ] [            ] [       ] [   30] Spring Transaction
> (3.0.7.RELEASE)
> [  95] [Active     ] [            ] [       ] [   50] camel-spring (2.10.1)
> [  96] [Active     ] [Created     ] [       ] [   50] camel-blueprint
> (2.10.1)
> [  97] [Active     ] [            ] [       ] [   30] Jetty ::
> Continuation (7.5.4.v20111024)
> [  98] [Active     ] [            ] [       ] [   30] Jetty :: JNDI Naming
> (7.5.4.v20111024)
> [  99] [Active     ] [            ] [       ] [   30] Jetty :: IO Utility
> (7.5.4.v20111024)
> [ 100] [Active     ] [            ] [       ] [   30] Jetty :: Security
> (7.5.4.v20111024)
> [ 101] [Active     ] [            ] [       ] [   30] Jetty :: Servlet
> Handling (7.5.4.v20111024)
> [ 102] [Active     ] [            ] [       ] [   30] Jetty ::
> Asynchronous HTTP Client (7.5.4.v20111024)
> [ 103] [Active     ] [            ] [       ] [   30] Jetty :: Server Core
> (7.5.4.v20111024)
> [ 104] [Active     ] [            ] [       ] [   30] Jetty :: Http
> Utility (7.5.4.v20111024)
> [ 105] [Active     ] [            ] [       ] [   30] Jetty :: Plus
> (7.5.4.v20111024)
> [ 106] [Active     ] [            ] [       ] [   30] Jetty :: JMX
> Management (7.5.4.v20111024)
> [ 107] [Active     ] [            ] [       ] [   30] Jetty :: Utilities
> (7.5.4.v20111024)
> [ 108] [Active     ] [            ] [       ] [   30] Jetty :: XML
> utilities (7.5.4.v20111024)
> [ 109] [Active     ] [            ] [       ] [   30] Jetty :: Websocket
> (7.5.4.v20111024)
> [ 110] [Active     ] [            ] [       ] [   30] Jetty :: Webapp
> Application Support (7.5.4.v20111024)
> [ 111] [Active     ] [            ] [       ] [   30] Jetty :: Utility
> Servlets and Filters (7.5.4.v20111024)
> [ 112] [Active     ] [            ] [       ] [   30]
> geronimo-servlet_2.5_spec (1.1.2)
> [ 113] [Active     ] [            ] [       ] [   30] OPS4J Pax Web - API
> (1.0.11)
> [ 114] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Runtime (1.0.11)
> [ 115] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Service SPI (1.0.11)
> [ 116] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Jetty (1.0.11)
> [ 117] [Active     ] [            ] [       ] [   30] Spring Web Servlet
> (3.0.7.RELEASE)
> [ 118] [Active     ] [            ] [       ] [   30] Spring Web
> (3.0.7.RELEASE)
> [ 119] [Active     ] [            ] [       ] [   30] Spring JMS
> (3.0.7.RELEASE)
> [ 120] [Active     ] [            ] [       ] [   10]
> geronimo-jta_1.1_spec (1.1.1)
> [ 121] [Active     ] [            ] [       ] [   50] camel-jms (2.10.1)
> [ 122] [Active     ] [            ] [       ] [   50] activemq-camel
> (5.5.1)
> [ 123] [Installed  ] [            ] [       ] [   40] Apache CXF Karaf
> Commands (2.6.2)
> [ 124] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> Core (2.6.2)
> [ 125] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> Management (2.6.2)
> [ 126] [Installed  ] [            ] [       ] [   40] Apache CXF API
> (2.6.2)
> [ 127] [Installed  ] [            ] [       ] [   30] XmlSchema Core
> (2.0.3)
> [ 128] [Installed  ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: wsdl4j (1.6.2.6)
> [ 129] [Resolved   ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: FastInfoset (1.2.7.4)
> [ 130] [Installed  ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: xmlresolver (1.2.0.5)
> [ 131] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> JAXB DataBinding (2.6.2)
> [ 132] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> XML Binding (2.6.2)
> [ 133] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> SOAP Binding (2.6.2)
> [ 134] [Installed  ] [            ] [       ] [   30] OPS4J Pax Web -
> Extender - Whiteboard (1.0.11)
> [ 135] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> HTTP Transport (2.6.2)
> [ 136] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Web Commands (2.2.9)
> [ 137] [Active     ] [            ] [       ] [   30] OPS4J Pax Url - war
> (1.2.8)
> [ 138] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Extender - WAR (1.0.11)
> [ 139] [Active     ] [            ] [       ] [   30] OPS4J Pax Web - Jsp
> Support (1.0.11)
> [ 140] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> FileInstall Deployer (1.0.11)
> [ 141] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Management :: MBeans :: Web (2.2.9)
>
> karaf@root> feature:install camel-cxf
> Error executing command: Can not resolve feature:
> Unsatisfied requirement(s):
> ---------------------------
>
> package:(&(package=javax.xml.ws.wsaddressing)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.spi.http)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.handler.soap)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>    package:(&(package=javax.xml.ws)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.handler)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.soap)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>    package:(&(package=javax.xml.soap))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.http)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>    package:(&(package=javax.xml.ws.spi)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> Best,
> Christian
>
> --
>
>
>


--

Re: feature cxf-specs installation do not install all bundles in SMX 4.5.0

Posted by Christian Müller <ch...@gmail.com>.
Changing the "cxf-specs" feature to the following solved the issue (I'm not
sure what the meaning of 'dependency="true"' is):

    <feature name="cxf-specs" version="2.6.2" resolver='(obr)'>
        <bundle
start-level='9'>mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.9.0</bundle>
        <bundle
start-level='10'>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
        <bundle
start-level='10'>mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.3</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
        <bundle start-level='10'
dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/1.9.0</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0</bundle>
        <bundle start-level='10'>mvn:javax.mail/mail/1.4.4</bundle>
        <bundle
start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0</bundle>

        <bundle
start-level='20'>mvn:org.codehaus.woodstox/stax2-api/3.1.1</bundle>
        <bundle
start-level='20'>mvn:org.codehaus.woodstox/woodstox-core-asl/4.1.4</bundle>

        <bundle
start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2</bundle>
        <bundle
start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.1.1_2</bundle>
    </feature>

Best,
Christian

On Sat, Oct 13, 2012 at 7:07 PM, Christian Müller <
christian.mueller@gmail.com> wrote:

> Cross post to dev@servicemix and dev@cxf because I'm not sure who has to
> resolve the issue:
> The issue is may caused, because the bundle
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0
> depends on
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0,
> but are listed in the cxf-specs feature in the reverse order.
>
> The default feature boot path for SMX is:
>
> featuresBoot=karaf-framework,config,activemq-broker,activemq-spring,cxf-specs,camel,camel-activemq,camel-cxf,camel-blueprint,war
>
> The cxf-specs is defined as:
>     <feature name="cxf-specs" version="2.6.2" resolver='(obr)'>
>         <bundle
> start-level='9'>mvn:org.apache.geronimo.specs/geronimo-osgi-registry/1.1</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/1.9.0</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.geronimo.specs/geronimo-annotation_1.0_spec/1.1.1</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.geronimo.specs/geronimo-ws-metadata_2.0_spec/1.1.3</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.stax-api-1.0/1.9.0</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxb-api-2.2/1.9.0</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0</bundle>
>         <bundle start-level='10'
> dependency="true">mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0</bundle>
>         <bundle start-level='10'>mvn:javax.mail/mail/1.4.4</bundle>
>         <bundle
> start-level='10'>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0</bundle>
>
>         <bundle
> start-level='20'>mvn:org.codehaus.woodstox/stax2-api/3.1.1</bundle>
>         <bundle
> start-level='20'>mvn:org.codehaus.woodstox/woodstox-core-asl/4.1.4</bundle>
>
>         <bundle
> start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-impl/2.2.1.1_2</bundle>
>         <bundle
> start-level='20'>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc/2.2.1.1_2</bundle>
>     </feature>
>
> The camel-cxf features isn't installed and no error occurs.
>
> The following bundles are also not installed:
> -
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.saaj-api-1.3/1.9.0
> -
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jaxws-api-2.2/1.9.0
> -
> mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.jsr311-api-1.1.1/1.9.0
>
> and may be other too...
>
> To reproduce the issue:
> - unzip SMX 4.5.0-SNAPSHOT (20121007)
> - rename ${SMX_HOME}/etc/jre.properties to
> ${SMX_HOME}/etc/jre.properties.orig
> - rename ${SMX_HOME}/etc/jre.properties.cxf to
> ${SMX_HOME}/etc/jre.properties
> - start SMX
>
> karaf@root> features:list | grep -i cxf-specs
> [installed  ] [2.6.2           ] cxf-specs
> cxf-2.6.2
>
> karaf@root> features:list | grep -i camel-cxf
> [uninstalled] [2.10.1          ] camel-cxf
> camel-2.10.1
>
> karaf@root> list -t 0
> START LEVEL 100 , List Threshold: 0
>    ID   State         Blueprint      Spring    Level  Name
> [   0] [Active     ] [            ] [       ] [    0] System Bundle (3.2.2)
> [   1] [Active     ] [            ] [       ] [    5] OPS4J Pax Url -
> wrap: (1.2.8)
> [   2] [Active     ] [            ] [       ] [    5] OPS4J Pax Url - mvn:
> (1.2.8)
> [   3] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
> Service (1.6.9)
> [   4] [Active     ] [            ] [       ] [    8] OPS4J Pax Logging -
> API (1.6.9)
> [   5] [Active     ] [            ] [       ] [   10] Apache Felix
> Configuration Admin Service (1.2.8)
> [   6] [Active     ] [            ] [       ] [   10] Apache Felix Bundle
> Repository (1.6.4)
> [   7] [Active     ] [            ] [       ] [   11] Apache Felix File
> Install (3.2.4)
> [   8] [Active     ] [            ] [       ] [   20] Apache Aries Proxy
> Bundle (0.3.1)
> [   9] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
> Bundles :: asm (3.3.1.1)
> [  10] [Active     ] [Created     ] [       ] [   20] Apache Aries
> Blueprint Bundle (0.3.2)
> [  11] [Active     ] [            ] [       ] [   20] Apache Aries Util
> (0.3.1)
> [  12] [Active     ] [Created     ] [       ] [   28] Apache Karaf ::
> Deployer :: Blueprint (2.2.9)
> [  13] [Active     ] [Created     ] [       ] [   28] Apache Karaf ::
> Deployer :: Spring (2.2.9)
> [  14] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Common (2.2.9)
> [  15] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Deployer :: Features (2.2.9)
> [  16] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: JAAS
> :: Config (2.2.9)
> [  17] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Admin :: Management (2.2.9)
> [  18] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Console (2.2.9)
> [  19] [Active     ] [            ] [       ] [   30] Apache Mina SSHD ::
> Core (0.7.0)
> [  20] [Active     ] [            ] [       ] [   30] Apache Aries JMX
> Blueprint Bundle (0.3.0)
> [  21] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Development Commands (2.2.9)
> [  22] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: Core (2.2.9)
> [  23] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Management (2.2.9)
> [  24] [Active     ] [            ] [       ] [   30] Apache Aries JMX API
> (0.3.0)
> [  25] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: Jaas
> :: Command (2.2.9)
> [  26] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Management (2.2.9)
> [  27] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Deployer :: Wrap Non OSGi Jar (2.2.9)
> [  28] [Active     ] [Created     ] [       ] [   30] Apache Karaf :: JAAS
> :: Modules (2.2.9)
> [  29] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Admin :: Command (2.2.9)
> [  30] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: PackageAdmin Commands (2.2.9)
> [  31] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Command (2.2.9)
> [  32] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: OSGi Commands (2.2.9)
> [  33] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Deployer :: Karaf Archive (.kar) (2.2.9)
> [  34] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: SSH (2.2.9)
> [  35] [Active     ] [            ] [       ] [   30] Apache MINA Core
> (2.0.1)
> [  36] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: OBR Resolver (2.2.9)
> [  37] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Admin :: Core (2.2.9)
> [  38] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: Command (2.2.9)
> [  39] [Active     ] [            ] [       ] [   30] Apache Karaf ::
> Diagnostic :: Core (2.2.9)
> [  40] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Features :: Management (2.2.9)
> [  41] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Various Commands (2.2.9)
> [  42] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Log Commands (2.2.9)
> [  43] [Active     ] [            ] [       ] [   30] Apache Aries JMX
> Core (0.3.1)
> [  44] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: ConfigAdmin Commands (2.2.9)
> [  45] [Active     ] [            ] [       ] [   80] kahadb (5.5.1)
> [  46] [Active     ] [            ] [       ] [   80] activemq-pool (5.5.1)
> [  47] [Active     ] [            ] [       ] [   80] activemq-console
> (5.5.1)
> [  48] [Active     ] [            ] [       ] [   80] Apache Aries
> Transaction Manager (0.2.0.incubating)
> [  49] [Active     ] [            ] [       ] [   80] activemq-ra (5.5.1)
> [  50] [Active     ] [Created     ] [       ] [   80] activemq-core (5.5.1)
>                                        Fragments: 62
> [  51] [Active     ] [Created     ] [       ] [   80] activemq-karaf
> (5.5.1)
> [  52] [Active     ] [            ] [       ] [   80]
> geronimo-j2ee-management_1.1_spec (1.0.1)
> [  53] [Active     ] [            ] [       ] [   80] Commons Pool (1.5.4)
> [  54] [Active     ] [            ] [       ] [   80]
> geronimo-jms_1.1_spec (1.1.1)
> [  55] [Active     ] [            ] [       ] [   80]
> geronimo-annotation_1.0_spec (1.1.1)
> [  56] [Active     ] [            ] [       ] [   80] Apache ServiceMix ::
> Bundles :: commons-codec (1.3.0.3)
> [  57] [Active     ] [            ] [       ] [   80] Commons Collections
> (3.2.1)
> [  58] [Active     ] [            ] [       ] [   80] Apache ServiceMix
> Bundles: velocity-1.6.2 (1.6.2.3)
> [  59] [Active     ] [            ] [       ] [   80] Apache ServiceMix
> Bundles: oro-2.0.8 (2.0.8.3)
> [  60] [Active     ] [            ] [       ] [   80] Apache ServiceMix ::
> Bundles :: jasypt (1.6.0.1)
> [  61] [Active     ] [            ] [       ] [   80] Apache ServiceMix
> Bundles: commons-lang-2.4 (2.4.0.3)
> [  62] [Resolved   ] [            ] [       ] [   80] activemq-blueprint
> (5.5.1)
>                                        Hosts: 50
> [  63] [Active     ] [Created     ] [       ] [   80] Apache XBean :: OSGI
> Blueprint Namespace Handler (3.7)
> [  64] [Active     ] [            ] [       ] [   80] Commons JEXL (2.0.1)
> [  65] [Active     ] [Created     ] [       ] [   50] activemq-broker.xml
> (0.0.0)
> [  66] [Active     ] [            ] [       ] [   30] Spring Beans
> (3.0.7.RELEASE)
> [  67] [Active     ] [            ] [       ] [   30] Spring Context
> Support (3.0.7.RELEASE)
> [  68] [Active     ] [            ] [       ] [   30] Spring Context
> (3.0.7.RELEASE)
> [  69] [Active     ] [            ] [       ] [   30] Spring AOP
> (3.0.7.RELEASE)
> [  70] [Active     ] [            ] [       ] [   30] Spring Expression
> Language (3.0.7.RELEASE)
> [  71] [Active     ] [            ] [       ] [   30] Spring ASM
> (3.0.7.RELEASE)
> [  72] [Active     ] [            ] [       ] [   30] Spring Core
> (3.0.7.RELEASE)
> [  73] [Active     ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: aopalliance (1.0.0.5)
> [  74] [Active     ] [            ] [       ] [   30] spring-osgi-core
> (1.2.1)
> [  75] [Active     ] [            ] [       ] [   30] spring-osgi-io
> (1.2.1)
> [  76] [Active     ] [            ] [       ] [   30]
> spring-osgi-annotation (1.2.1)
> [  77] [Active     ] [            ] [       ] [   30] spring-osgi-extender
> (1.2.1)
> [  78] [Active     ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: cglib (2.1.0.3_7)
> [  79] [Active     ] [            ] [       ] [   80] activemq-spring
> (5.5.1)
> [  80] [Active     ] [            ] [       ] [   80] Apache XBean ::
> Spring (3.7)
> [  81] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: Stax API 1.0 (1.9.0)
> [  82] [Active     ] [            ] [       ] [   10] JavaMail API
> (compat) (1.4.4)
> [  83] [Active     ] [            ] [       ] [    9] Apache Geronimo OSGI
> factory registry (1.1)
> [  84] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
> Bundles :: jaxb-impl (2.2.1.1_2)
> [  85] [Active     ] [            ] [       ] [   20] Apache ServiceMix ::
> Bundles :: jaxb-xjc (2.2.1.1_2)
> [  86] [Active     ] [            ] [       ] [   10] Web Services
> Metadata 2.0 (1.1.3)
> [  87] [Active     ] [            ] [       ] [   20] Stax2 API (3.1.1)
> [  88] [Active     ] [            ] [       ] [   20] Woodstox
> XML-processor (4.1.4)
> [  89] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: JSR-311 API 1.1.1 (1.9.0)
> [  90] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: JAXB API 2.2 (1.9.0)
> [  91] [Active     ] [            ] [       ] [   10] Apache ServiceMix ::
> Specs :: Activation API 1.4 (1.9.0)
> [  92] [Active     ] [            ] [       ] [   50] camel-core (2.10.1)
> [  93] [Active     ] [Created     ] [       ] [   50] camel-karaf-commands
> (2.10.1)
> [  94] [Active     ] [            ] [       ] [   30] Spring Transaction
> (3.0.7.RELEASE)
> [  95] [Active     ] [            ] [       ] [   50] camel-spring (2.10.1)
> [  96] [Active     ] [Created     ] [       ] [   50] camel-blueprint
> (2.10.1)
> [  97] [Active     ] [            ] [       ] [   30] Jetty ::
> Continuation (7.5.4.v20111024)
> [  98] [Active     ] [            ] [       ] [   30] Jetty :: JNDI Naming
> (7.5.4.v20111024)
> [  99] [Active     ] [            ] [       ] [   30] Jetty :: IO Utility
> (7.5.4.v20111024)
> [ 100] [Active     ] [            ] [       ] [   30] Jetty :: Security
> (7.5.4.v20111024)
> [ 101] [Active     ] [            ] [       ] [   30] Jetty :: Servlet
> Handling (7.5.4.v20111024)
> [ 102] [Active     ] [            ] [       ] [   30] Jetty ::
> Asynchronous HTTP Client (7.5.4.v20111024)
> [ 103] [Active     ] [            ] [       ] [   30] Jetty :: Server Core
> (7.5.4.v20111024)
> [ 104] [Active     ] [            ] [       ] [   30] Jetty :: Http
> Utility (7.5.4.v20111024)
> [ 105] [Active     ] [            ] [       ] [   30] Jetty :: Plus
> (7.5.4.v20111024)
> [ 106] [Active     ] [            ] [       ] [   30] Jetty :: JMX
> Management (7.5.4.v20111024)
> [ 107] [Active     ] [            ] [       ] [   30] Jetty :: Utilities
> (7.5.4.v20111024)
> [ 108] [Active     ] [            ] [       ] [   30] Jetty :: XML
> utilities (7.5.4.v20111024)
> [ 109] [Active     ] [            ] [       ] [   30] Jetty :: Websocket
> (7.5.4.v20111024)
> [ 110] [Active     ] [            ] [       ] [   30] Jetty :: Webapp
> Application Support (7.5.4.v20111024)
> [ 111] [Active     ] [            ] [       ] [   30] Jetty :: Utility
> Servlets and Filters (7.5.4.v20111024)
> [ 112] [Active     ] [            ] [       ] [   30]
> geronimo-servlet_2.5_spec (1.1.2)
> [ 113] [Active     ] [            ] [       ] [   30] OPS4J Pax Web - API
> (1.0.11)
> [ 114] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Runtime (1.0.11)
> [ 115] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Service SPI (1.0.11)
> [ 116] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Jetty (1.0.11)
> [ 117] [Active     ] [            ] [       ] [   30] Spring Web Servlet
> (3.0.7.RELEASE)
> [ 118] [Active     ] [            ] [       ] [   30] Spring Web
> (3.0.7.RELEASE)
> [ 119] [Active     ] [            ] [       ] [   30] Spring JMS
> (3.0.7.RELEASE)
> [ 120] [Active     ] [            ] [       ] [   10]
> geronimo-jta_1.1_spec (1.1.1)
> [ 121] [Active     ] [            ] [       ] [   50] camel-jms (2.10.1)
> [ 122] [Active     ] [            ] [       ] [   50] activemq-camel
> (5.5.1)
> [ 123] [Installed  ] [            ] [       ] [   40] Apache CXF Karaf
> Commands (2.6.2)
> [ 124] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> Core (2.6.2)
> [ 125] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> Management (2.6.2)
> [ 126] [Installed  ] [            ] [       ] [   40] Apache CXF API
> (2.6.2)
> [ 127] [Installed  ] [            ] [       ] [   30] XmlSchema Core
> (2.0.3)
> [ 128] [Installed  ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: wsdl4j (1.6.2.6)
> [ 129] [Resolved   ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: FastInfoset (1.2.7.4)
> [ 130] [Installed  ] [            ] [       ] [   30] Apache ServiceMix ::
> Bundles :: xmlresolver (1.2.0.5)
> [ 131] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> JAXB DataBinding (2.6.2)
> [ 132] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> XML Binding (2.6.2)
> [ 133] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> SOAP Binding (2.6.2)
> [ 134] [Installed  ] [            ] [       ] [   30] OPS4J Pax Web -
> Extender - Whiteboard (1.0.11)
> [ 135] [Installed  ] [            ] [       ] [   40] Apache CXF Runtime
> HTTP Transport (2.6.2)
> [ 136] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Shell :: Web Commands (2.2.9)
> [ 137] [Active     ] [            ] [       ] [   30] OPS4J Pax Url - war
> (1.2.8)
> [ 138] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> Extender - WAR (1.0.11)
> [ 139] [Active     ] [            ] [       ] [   30] OPS4J Pax Web - Jsp
> Support (1.0.11)
> [ 140] [Active     ] [            ] [       ] [   30] OPS4J Pax Web -
> FileInstall Deployer (1.0.11)
> [ 141] [Active     ] [Created     ] [       ] [   30] Apache Karaf ::
> Management :: MBeans :: Web (2.2.9)
>
> karaf@root> feature:install camel-cxf
> Error executing command: Can not resolve feature:
> Unsatisfied requirement(s):
> ---------------------------
>
> package:(&(package=javax.xml.ws.wsaddressing)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.spi.http)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.handler.soap)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>    package:(&(package=javax.xml.ws)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.handler)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.soap)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>    package:(&(package=javax.xml.soap))
>       Apache CXF Runtime JAX-WS Frontend
>
> package:(&(package=javax.xml.ws.http)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>    package:(&(package=javax.xml.ws.spi)(version>=2.2.0)(!(version>=3.0.0)))
>       Apache CXF Runtime JAX-WS Frontend
>
> Best,
> Christian
>
> --
>
>
>


--