Hi, 

I'm just starting with servicemix 4 and i have some questions.

I'm developing an application and i already have some platform bundles
(logging, commons, etc) so i want to use this bundles to develop my
webservices.

First of all i have installed all the bundles in maven repository.
Then in the servicemix shell i'm installing all the needed bundles with the
following command, for example:

osgi/install -s
mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.lang/1.0


After i have installed the bundles i check in the shell if the bundle is
ACTIVE, if it is not, i check why, but sometimes i cant figure out why the
bundles are installed or resolved instead of being active.

I have checked the log too and there's not helpfull information...


s...@root:osgi> list | grep Resolved
[ 166] [Resolved   ] [       ] [   60] Log4JConfig Fragment (0.0.1)
[ 183] [Resolved   ] [       ] [   60] SLF4J API (1.5.0)
[ 194] [Resolved   ] [       ] [   60] SLF4J Log4J Binding (1.5.0)
s...@root:osgi> list | grep Installed
[ 159] [Installed  ] [       ] [   60] com.crs.gmi.core (1.0.0)
[ 161] [Installed  ] [       ] [   60] Fragment (1.0.0)
[ 165] [Installed  ] [       ] [   60] com.crs.gmi.hibernate (1.0.0)
[ 173] [Installed  ] [       ] [   60] JasperReports Reporting Framework
(2.0.5)


s...@root:osgi> start 165
ERROR CommandLineExecutionFailed:
org.apache.geronimo.gshell.command.CommandException:
org.osgi.framework.BundleException: Unable to resolve due to constraint
violation.

Am I taking the right steps to install these bundles or am i missing
something?

After i enter the exit command in the shell i try to run servicemix again,
and the following error is shown:

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?

Thanks in advance, Santiago.

-- 
View this message in context: 
http://old.nabble.com/ServiceMix-4-installation-bundles-tp27344706p27344706.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to