Yeah, you can take a look on the ServiceMix one too :)

Regards
JB

On 02/02/2011 10:26 AM, Christian Schneider wrote:
I think I was able to solve the problem. I had to change the jre.properties to 
exclude some packages from the system bundle export.
The jre.properties from the Talend Service Factory seem to work:
http://de.talend.com/products-application-integration/talend-service-factory-community-edition.php

Christian


-----Ursprüngliche Nachricht-----
Von: Christian Schneider [mailto:cschnei...@talend.com]
Gesendet: Mittwoch, 2. Februar 2011 09:52
An: users@camel.apache.org
Betreff: Problem when starting camel-cxf in karaf

Hi all,

I am trying to run Apache Camel (feature camel-cxf) in Apache Karaf.

I am using a fresh Karaf 2.1.3 download.
I start karaf and enter:

features:addurl mvn:org.apache.camel.karaf/apache-camel/2.6.0/xml/features
features:install camel-cxf

I get an exception while starting org.apache.servicemix.bundles.saaj-impl:
Unable to resolve 97.0: missing requirement [97.0] package; 
(package=com.sun.org.apache.xerces.internal.dom)

Any idea what I am doing wrong?

Christian

----------------------

02.02.2011 09:46:08 org.apache.karaf.main.SimpleFileLock lock
INFO: locking
09:46:09,765 | INFO  | FelixStartLevel  | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | Starting JMX OSGi agent
09:46:09,781 | INFO  | FelixStartLevel  | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | Registering MBean with ObjectName 
[osgi.compendium:service=cm,version=1.3] for service with service.id [10]
09:46:09,796 | WARN  | rint Extender: 3 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.features.command is waiting for 
namespace handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))]
09:46:09,796 | WARN  | rint Extender: 2 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.shell.osgi is waiting for namespace 
handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))]
09:46:09,796 | WARN  | JMX OSGi Agent   | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | There are no MBean servers registred, can't register MBeans
09:46:09,890 | WARN  | rint Extender: 2 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.shell.console is waiting for namespace 
handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0))]
09:46:09,968 | WARN  | rint Extender: 2 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.shell.dev is waiting for namespace 
handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))]
09:46:10,218 | WARN  | rint Extender: 3 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.shell.ssh is waiting for namespace 
handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))]
09:46:10,234 | WARN  | rint Extender: 3 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.admin.command is waiting for namespace 
handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))]
09:46:10,250 | WARN  | rint Extender: 3 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.shell.commands is waiting for namespace 
handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))]
09:46:10,375 | WARN  | rint Extender: 2 | BlueprintContainerImpl           | 
container.BlueprintContainerImpl  252 | 7 - org.apache.aries.blueprint - 
0.2.0.incubating | Bundle org.apache.karaf.shell.packages is waiting for namespace 
handlers 
[(&(objectClass=org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace=http://karaf.apache.org/xmlns/shell/v1.0.0))]
09:46:11,609 | INFO  | Thread-5         | FeaturesServiceImpl              | 
res.internal.FeaturesServiceImpl  293 | 19 - org.apache.karaf.features.core - 
2.1.3 | Bundles to refresh:
09:46:11,640 | INFO  | rint Extender: 3 | SecurityUtils                    | 
e.sshd.common.util.SecurityUtils   80 | 25 - sshd-core - 0.4.0 | BouncyCastle 
not registered, using the default JCE provider
09:46:11,968 | INFO  | JMX OSGi Agent   | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | Registering org.osgi.jmx.framework.BundleStateMBean to 
MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@6e3d60 with name 
osgi.core:type=bundleState,version=1.5
09:46:12,000 | INFO  | JMX OSGi Agent   | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | Registering org.osgi.jmx.framework.ServiceStateMBean to 
MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@6e3d60 with name 
osgi.core:type=serviceState,version=1.5
09:46:12,000 | INFO  | JMX OSGi Agent   | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | Registering org.osgi.jmx.framework.FrameworkMBean to 
MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@6e3d60 with name 
osgi.core:type=framework,version=1.5
09:46:12,031 | INFO  | JMX OSGi Agent   | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | Registering org.osgi.jmx.service.cm.ConfigurationAdminMBean 
to MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@6e3d60 with name 
osgi.compendium:service=cm,version=1.3
09:46:12,031 | INFO  | JMX OSGi Agent   | jmx                              | ?  
                                 ? | 20 - org.apache.aries.jmx - 
0.2.0.incubating | Registering org.osgi.jmx.framework.PackageStateMBean to 
MBeanServer com.sun.jmx.mbeanserver.JmxMBeanServer@6e3d60 with name 
osgi.core:type=packageState,version=1.5
09:48:08,234 | INFO  | l Console Thread | FeaturesServiceImpl              | 
res.internal.FeaturesServiceImpl  293 | 19 - org.apache.karaf.features.core - 
2.1.3 | Bundles to refresh:
09:48:08,656 | INFO  | l Console Thread | ContextLoaderListener            | 
.activator.ContextLoaderListener  356 | 44 - org.springframework.osgi.extender 
- 1.2.0 | Starting [org.springframework.osgi.extender] bundle v.[1.2.0]
09:48:08,781 | INFO  | l Console Thread | ExtenderConfiguration            | 
al.support.ExtenderConfiguration  150 | 44 - org.springframework.osgi.extender 
- 1.2.0 | No custom extender configuration detected; using defaults...
09:48:08,781 | INFO  | l Console Thread | TimerTaskExecutor                | 
heduling.timer.TimerTaskExecutor  106 | 38 - org.springframework.context - 
3.0.5.RELEASE | Initializing Timer
09:48:09,281 | INFO  | l Console Thread | Activator                        | 
apache.camel.impl.osgi.Activator   83 | 51 - org.apache.camel.camel-core - 
2.6.0 | Camel activator starting
09:48:09,312 | INFO  | l Console Thread | Activator                        | 
apache.camel.impl.osgi.Activator   86 | 51 - org.apache.camel.camel-core - 
2.6.0 | Camel activator started
09:48:10,968 | INFO  | l Console Thread | Activator                        | 
apache.camel.impl.osgi.Activator   90 | 51 - org.apache.camel.camel-core - 
2.6.0 | Camel activator stopping
09:48:10,968 | INFO  | l Console Thread | Activator                        | 
apache.camel.impl.osgi.Activator   92 | 51 - org.apache.camel.camel-core - 
2.6.0 | Camel activator stopped
09:48:11,984 | INFO  | l Console Thread | ContextLoaderListener            | 
.activator.ContextLoaderListener  449 | 44 - org.springframework.osgi.extender 
- 1.2.0 | Stopping [org.springframework.osgi.extender] bundle v.[1.2.0]
09:48:11,984 | INFO  | l Console Thread | TimerTaskExecutor                | 
heduling.timer.TimerTaskExecutor  179 | 38 - org.springframework.context - 
3.0.5.RELEASE | Cancelling Timer
09:48:12,281 | INFO  | l Console Thread | Console                          | 
araf.shell.console.jline.Console  188 | 11 - org.apache.karaf.shell.console - 
2.1.3 | Exception caught while executing command
java.lang.Exception: Could not start bundle 
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.saaj-impl/1.3.2_1
 in feature(s) camel-cxf-2.6.0: Unresolved constraint in bundle 
org.apache.servicemix.bundles.saaj-impl [97]: Unable to resolve 97.0: missing 
requirement [97.0] package; (package=com.sun.org.apache.xerces.internal.dom)
                 at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:326)[19:org.apache.karaf.features.core:2.1.3]
                 at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:254)[19:org.apache.karaf.features.core:2.1.3]
                 at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeature(FeaturesServiceImpl.java:250)[19:org.apache.karaf.features.core:2.1.3]
                 at 
org.apache.karaf.features.command.InstallFeatureCommand.doExecute(InstallFeatureCommand.java:51)[9:org.apache.karaf.features.command:2.1.3]
                 at 
org.apache.karaf.features.command.FeaturesCommandSupport.doExecute(FeaturesCommandSupport.java:39)[9:org.apache.karaf.features.command:2.1.3]
                 at 
org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.felix.gogo.runtime.shell.CommandProxy.execute(CommandProxy.java:50)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:229)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:162)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:101)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:79)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)[11:org.apache.karaf.shell.console:2.1.3]
                 at 
org.apache.karaf.shell.console.jline.Console.run(Console.java:170)[11:org.apache.karaf.shell.console:2.1.3]
                 at java.lang.Thread.run(Thread.java:662)[:1.6.0_23]
Caused by: org.osgi.framework.BundleException: Unresolved constraint in bundle 
org.apache.servicemix.bundles.saaj-impl [97]: Unable to resolve 97.0: missing 
requirement [97.0] package; (package=com.sun.org.apache.xerces.internal.dom)
                 at 
org.apache.felix.framework.Felix.resolveBundle(Felix.java:3409)[org.apache.felix.framework-3.0.2.jar:]
                 at 
org.apache.felix.framework.Felix.startBundle(Felix.java:1709)[org.apache.felix.framework-3.0.2.jar:]
                 at 
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)[org.apache.felix.framework-3.0.2.jar:]
                 at 
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)[org.apache.felix.framework-3.0.2.jar:]
                 at 
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:323)[19:org.apache.karaf.features.core:2.1.3]
                 ... 14 more

Reply via email to