Hi Santiago,

my comments inline:


Am I taking the right steps to install these bundles or am i missing
something?
Yes, you can make a mvn install to install the bundle in your local m2 repo. After ogsi:install -s mvn:groupId/artifactId/classifier/version

You check the log if the bundle can't be started.

If you have a lot of bundle to deploy you can "describe" it in a feature XML. In the feature XML, you can describe all the bundles that you need to deploy. You can use feature:addUrl and feature:install to deploy it.

smont...@santiago:~/Desktop/smontico/software/ESB/ServiceMix/apache-servicemix-4.0.0/bin>
./servicemix ERROR: Error starting
mvn:org.springframework.osgi/spring-osgi-extender/1.2.0-m2
(org.osgi.framework.BundleException: Activator start error in bundle
org.springframework.osgi.extender [30].)
java.lang.NoClassDefFoundError: org/springframework/core/io/Resource
        at
org.springframework.beans.factory.xml.DelegatingEntityResolver.<init>(DelegatingEntityResolver.java:61)
        at
org.springframework.osgi.extender.internal.support.NamespacePlugins$Plugin.<init>(NamespacePlugins.java:77)
        at
org.springframework.osgi.extender.internal.support.NamespacePlugins$Plugin.<init>(NamespacePlugins.java:63)
        at
org.springframework.osgi.extender.internal.support.NamespacePlugins.addHandler(NamespacePlugins.java:104)
        at
org.springframework.osgi.extender.internal.support.NamespaceManager.addHandler(NamespaceManager.java:151)
        at
org.springframework.osgi.extender.internal.support.NamespaceManager.maybeAddNamespaceHandlerFor(NamespaceManager.java:107)
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener.maybeAddNamespaceHandlerFor(ContextLoaderListener.java:659)
        at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:380)
        at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1458)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException:
org.springframework.core.io.Resource
        at
org.apache.felix.framework.searchpolicy.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:558)
        at
org.apache.felix.framework.searchpolicy.ModuleImpl.access$100(ModuleImpl.java:59)
        at
org.apache.felix.framework.searchpolicy.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1427)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
        ... 13 more
ERROR: Error starting
mvn:org.apache.servicemix.jbi.cluster/org.apache.servicemix.jbi.cluster.engine/1.0.0
(org.osgi.framework.BundleException: Unable to resolve due to constraint
violation.)
org.osgi.framework.BundleException: Unable to resolve due to constraint
violation.
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3066)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1439)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
        at java.lang.Thread.run(Thread.java:619)
ERROR: Error starting
mvn:org.apache.servicemix.jbi.cluster/org.apache.servicemix.jbi.cluster.config/1.0.0
(org.osgi.framework.BundleException: Unable to resolve due to constraint
violation.)
org.osgi.framework.BundleException: Unable to resolve due to constraint
violation.
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3066)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1439)
        at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:984)
        at 
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:263)
        at java.lang.Thread.run(Thread.java:619)



What could be wrong?

It looks like the spring feature is not installed. Could you send a osgi:list to see the list of deployed bundles ?

Thanks
Regards
JB

Reply via email to