Hi Jean,

Thanks for the fast response!
My comments inline:


Jean-Baptiste Onofré wrote:
> 
> 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.
> 
>>>>> The problem is that no error was shown in the log when the bundle is
>>>>> not 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.
> 
>>>>> Ok i understand i will try it to make things simple
> 
>> 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 ?
> 
>>>>> After i try to install all my bundles servicemix show the error i have
>>>>> attached and the shell of servicemix doesnt appear anymore, i have to
>>>>> "re-install" servicemix :(
> This is what the log is showing:
> 
> 17:03:10,152 | INFO  | FelixStartLevel  | FileMonitor                     
> | x.kernel.filemonitor.FileMonitor  155 | Starting to monitor the deploy
> directory:
> /home/smontico/Desktop/smontico/software/ESB/ServiceMix/apache-servicemix-4.0.0/deploy
> every 500 millis
> 17:03:10,155 | INFO  | FelixStartLevel  | FileMonitor                     
> | x.kernel.filemonitor.FileMonitor  158 | Config directory is at:
> /home/smontico/Desktop/smontico/software/ESB/ServiceMix/apache-servicemix-4.0.0/etc
> 17:03:10,156 | INFO  | FelixStartLevel  | FileMonitor                     
> | x.kernel.filemonitor.FileMonitor  160 | Will generate bundles from
> expanded source directories to:
> /home/smontico/Desktop/smontico/software/ESB/ServiceMix/apache-servicemix-4.0.0/data/generated-bundles
> 17:04:17,035 | INFO  | FelixStartLevel  | ContextLoaderListener           
> | .activator.ContextLoaderListener  361 | Starting
> [org.springframework.osgi.extender] bundle v.[1.2.0.m2]
> 17:04:17,662 | INFO  | FelixStartLevel  | jetty                           
> | .service.internal.util.JCLLogger  102 | Logging to
> org.ops4j.pax.web.service.internal.util.jcllog...@4e5056 via
> org.ops4j.pax.web.service.internal.util.JCLLogger
> 17:04:17,662 | INFO  | FelixStartLevel  | Activator                       
> | x.web.service.internal.Activator   63 | Starting pax http service
> 17:04:17,680 | WARN  | guration Updater | ConfigurationImpl               
> | rvice.internal.ConfigurationImpl  341 | Reading configuration property
> org.ops4j.pax.web.session.timeout has failed
> 17:04:17,680 | INFO  | guration Updater | ServerControllerImpl            
> | ce.internal.ServerControllerImpl   65 | configuring server:
> ServerControllerImpl{state=UNCONFIGURED} -> ConfigurationImpl{http
> enabled=true,http port=8080,http secure enabled=false,http secure
> port=8443,ssl keystore=/home/smontico/.keystore,ssl
> keystoreType=null,session timeout=null,listening
> addresses=[Ljava.lang.String;@d6ee28}
> 17:04:17,681 | INFO  | guration Updater | ServerControllerImpl            
> | ce.internal.ServerControllerImpl   53 | starting server:
> ServerControllerImpl{state=STOPPED}
> 17:04:17,701 | INFO  | guration Updater | JettyServerImpl                 
> | service.internal.JettyServerImpl   98 | adding
> [email protected]:8080
> 17:04:17,702 | WARN  | guration Updater | ConfigurationImpl               
> | rvice.internal.ConfigurationImpl  341 | Reading configuration property
> org.ops4j.pax.web.session.timeout has failed
> 17:04:17,702 | INFO  | guration Updater | JettyServerImpl                 
> | service.internal.JettyServerImpl   62 | starting JettyServerImpl{}
> 17:04:17,703 | INFO  | guration Updater | jetty                           
> | .service.internal.util.JCLLogger  102 | jetty-6.1.x
> 17:04:17,730 | INFO  | guration Updater | jetty                           
> | .service.internal.util.JCLLogger  102 | Started
> [email protected]:8080
> 17:04:17,733 | INFO  | FelixStartLevel  | Activator                       
> | x.web.service.internal.Activator   67 | Started pax http service
> 
> 
> 
>>>>>> This is the complete list of the bundles i'm trying to install:
> 
> osgi/install -s mvn:com.crs.servicemix.examples/com.crs.db2.jdbc/1.0
> osgi/install -s mvn:com.crs.servicemix.examples/com.crs.gmi.core/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.crs.gmi.core.exception/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.crs.gmi.core.exception.fragment/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.crs.gmi.core.logger/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.crs.gmi.core.loggerconfig/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.crs.gmi.core.report.jasperreport/1.0
> osgi/install -s mvn:com.crs.servicemix.examples/com.crs.gmi.hibernate/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.crs.gmi.log4jconfig/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.com.lowagie.text/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.com.mchange.v2.c3p0/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.com.mysql.jdbc/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.javax.xml.soap/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.net.sf.cglib/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.net.sf.ehcache/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.net.sf.jasperreports/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.net.sf.jsr107cache/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.aopalliance/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.beanutils/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.collections/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.digester/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.lang/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.apache.log4j/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.apache.velocity/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.org.dom4j/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.slf4j.api/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/com.springsource.slf4j.log4j/1.0
> osgi/install -s mvn:com.crs.servicemix.examples/hibernate-classes/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.aop/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.beans/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.context/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.jdbc/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.orm/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.transaction/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.web/1.0
> osgi/install -s
> mvn:com.crs.servicemix.examples/org.springframework.web.servlet/1.0
> 
> 
> Thanks, Santiago.
> 
> 
> Thanks
> Regards
> JB
> 
> 

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

Reply via email to