Santiago, I think at least some of these bundles are failing to start because of conflicting exports in other bundles we already ship with. An example: the pax-logging bundle exports all the commonly used logging APIs, so when you add another log4j bundle you might run into a situation where the framework is no longer able to determine what the correct class space should look like. Once you remove these duplicates, you will probably also resolve a few of the 'Unable to resolve due to constraint violation.' errors you are seeing.
Could you give this approach a try so we can look into whatever problems are unresolved after that? Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ On 28 January 2010 13:51, smontico <[email protected]> wrote: > > Hi Jean, > > I have created a feature just like you told me: > > <feature name="target-platform" version="1.0.0"> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.db2.jdbc/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.core/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.core.exception/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.core.exception.fragment/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.core.logger/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.core.loggerconfig/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.core.report.jasperreport/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.hibernate/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.crs.gmi.log4jconfig/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.com.lowagie.text/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.com.mchange.v2.c3p0/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.com.mysql.jdbc/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.javax.xml.soap/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.net.sf.cglib/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.net.sf.ehcache/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.net.sf.jasperreports/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.net.sf.jsr107cache/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.aopalliance/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.beanutils/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.collections/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.digester/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.apache.commons.lang/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.apache.log4j/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.apache.velocity/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.dom4j/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.slf4j.api/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.slf4j.log4j/1.0</bundle> > <bundle>mvn:com.crs.servicemix.examples/hibernate-classes/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.aop/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.beans/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.context/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.jdbc/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.orm/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.transaction/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.web/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/org.springframework.web.servlet/1.0</bundle> > > <bundle>mvn:com.crs.servicemix.examples/com.springsource.org.eclipse.jdt.core.compiler.batch/1.0</bundle> > </feature> > > After that i refreshed the url and installed the target platform. > > The installation process shows an error: > > org.osgi.framework.BundleException: Fragment bundles can not be started. > > > Do I have to remove the fragments bundles from the feature list? > Anyway... after that i execute osgi/list in order to see what happened, and > some bundles are not active. > > After the osgi/list command, i execute the exit command and then when i try > to start servicemix again i can't !!! > What could be wrong? Maybe some of my bundles are not compatible with the > ones provided by servicemix?? > > The steps i'm following: > > s...@root:features> install target-platform > ERROR CommandLineExecutionFailed: > org.apache.geronimo.gshell.command.CommandException: > org.osgi.framework.BundleException: Fragment bundles can not be started. > s...@root:features> osgi/list > START LEVEL 100 > ID State Spring Level Name > [ 0] [Active ] [ ] [ 0] System Bundle (1.5.0.r752991) > [ 1] [Active ] [ ] [ 10] Apache Felix Prefrences Service > (1.0.2) > [ 2] [Active ] [ ] [ 10] Apache ServiceMix Bundles: > jaxp-ri-1.4.2 (1.4.2.2) > [ 3] [Active ] [ ] [ 10] geronimo-annotation_1.0_spec (1.1.1) > [ 4] [Active ] [ ] [ 10] Apache ServiceMix Specs :: JAXP API > 1.4 (1.3.0) > [ 5] [Active ] [ ] [ 10] OSGi R4 Compendium Bundle (4.1.0) > [ 6] [Active ] [ ] [ 10] Apache Felix Configuration Admin > Service (1.0.4) > [ 7] [Active ] [ ] [ 10] geronimo-servlet_2.5_spec (1.1.2) > [ 8] [Active ] [Started] [ 40] Apache ServiceMix Kernel :: GShell > Core (1.1.0) > [ 9] [Active ] [ ] [ 8] OPS4J Pax Logging - API (1.3.0) > [ 10] [Active ] [ ] [ 8] OPS4J Pax Logging - Service (1.3.0) > [ 11] [Active ] [ ] [ 5] OPS4J Pax Url - wrap: (0.3.3) > [ 12] [Active ] [ ] [ 5] OPS4J Pax Url - mvn: (0.3.3) > [ 13] [Active ] [ ] [ 30] spring-osgi-io (1.2.0.m2) > [ 14] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: Spring > Deployer (1.1.0) > [ 15] [Active ] [ ] [ 30] Apache ServiceMix Bundles: mina-1.1.7 > (1.1.7.1) > [ 16] [Active ] [ ] [ 30] Spring Context (2.5.6) > [ 17] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS > Modules (1.1.0) > [ 18] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-jexl-1.1 (1.1.0.1) > [ 19] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > Features (1.1.0) > [ 20] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-httpclient-3.1 (3.1.0.1) > [ 21] [Active ] [ ] [ 30] Spring Core (2.5.6) > [ 22] [Active ] [ ] [ 30] jmx-impl (1.0.0.r6125-patched) > [ 23] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > ConfigAdmin Commands (1.1.0) > [ 24] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: JAAS > Config (1.1.0) > [ 25] [Active ] [ ] [ 30] jmx (1.0.0.r6125-patched) > [ 26] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-vfs-1.0 (1.0.0.1) > [ 27] [Active ] [ ] [ 30] Spring Beans (2.5.6) > [ 28] [Active ] [ ] [ 30] Unnamed - > com.google.code.sshd:sshd:bundle:0.1 (0.1) > [ 29] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > commons-codec-1.2 (1.2.0.1) > [ 30] [Active ] [ ] [ 30] spring-osgi-extender (1.2.0.m2) > [ 31] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > cglib-2.1_3 (2.1.0.3_1) > [ 32] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > jline-0.9.94 (0.9.94.1) > [ 33] [Active ] [ ] [ 30] Apache ServiceMix Bundles: > aopalliance-1.0 (1.0.0.1) > [ 34] [Active ] [ ] [ 30] Spring AOP (2.5.6) > [ 35] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > PackageAdmin Commands (1.1.0) > [ 36] [Active ] [ ] [ 30] Apache ServiceMix Bundles: oro-2.0.8 > (2.0.8.1) > [ 37] [Active ] [ ] [ 30] Apache ServiceMix Kernel :: GShell > Log Commands (1.1.0) > [ 38] [Active ] [ ] [ 30] spring-osgi-core (1.2.0.m2) > [ 39] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell > OSGi Commands (1.1.0) > [ 40] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: GShell > Admin (1.1.0) > [ 41] [Active ] [Started] [ 30] Apache ServiceMix Kernel :: > Management (1.1.0) > [ 42] [Active ] [ ] [ 15] Apache ServiceMix Kernel :: File > Monitor (1.1.0) > [ 43] [Active ] [Started] [ 60] activemq-broker.xml (0.0.0) > [ 44] [Active ] [ ] [ 60] geronimo-jta_1.1_spec (1.1.1) > [ 45] [Active ] [ ] [ 60] geronimo-j2ee-connector_1.5_spec > (2.0.0) > [ 46] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > howl-1.0.1-1 (1.0.1.1_1) > [ 47] [Active ] [ ] [ 60] Geronimo TxManager :: Transaction > (2.2.0.r634076) > [ 48] [Active ] [ ] [ 60] Spring Transaction (2.5.6) > [ 49] [Active ] [ ] [ 60] Apache ServiceMix Transaction (1.0.0) > [ 50] [Active ] [ ] [ 60] Geronimo TxManager :: Connector > (2.2.0.r634076) > [ 51] [Active ] [ ] [ 60] geronimo-jms_1.1_spec (1.1.1) > [ 52] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jencks-2.1 > (2.1.0.1) > [ 53] [Active ] [ ] [ 60] geronimo-j2ee-management_1.1_spec > (1.0.1) > [ 54] [Active ] [ ] [ 60] Apache Commons Pool Bundle (1.4) > [ 55] [Active ] [ ] [ 60] xbean-spring (3.5) > [ 56] [Active ] [ ] [ 60] activemq-core (5.2.0) > [ 57] [Active ] [ ] [ 60] activemq-ra (5.2.0) > [ 58] [Active ] [ ] [ 60] activemq-console (5.2.0) > [ 59] [Active ] [ ] [ 60] activemq-pool (5.2.0) > [ 60] [Active ] [ ] [ 60] Apache ServiceMix Features :: > ActiveMQ Commands (4.0.0) > [ 61] [Active ] [ ] [ 60] Apache ServiceMix Specs :: STAX API > 1.0 (1.3.0) > [ 62] [Active ] [ ] [ 60] Apache ServiceMix Specs :: ACTIVATION > API 1.4 (1.3.0) > [ 63] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXB API > 2.1 (1.3.0) > [ 64] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jaxb-impl-2.1.6 (2.1.6.1) > [ 65] [Active ] [ ] [ 60] camel-core (1.6.0) > [ 66] [Active ] [ ] [ 60] camel-osgi (1.6.0) > [ 67] [Active ] [ ] [ 60] camel-spring (1.6.0) > [ 68] [Active ] [ ] [ 60] xbean-naming (3.5) > [ 69] [Active ] [Started] [ 60] Apache ServiceMix Naming (1.0.0) > [ 70] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JBI API > 1.0 (1.3.0) > [ 71] [Active ] [ ] [ 60] Apache ServiceMix :: Utils (1.1.0) > [ 72] [Active ] [Started] [ 60] Apache ServiceMix Document (1.0.0) > [ 73] [Active ] [ ] [ 60] Apache ServiceMix NMR API (1.0.0) > [ 74] [Active ] [ ] [ 60] Apache ServiceMix NMR Core (1.0.0) > [ 75] [Active ] [Started] [ 60] Apache ServiceMix NMR OSGi (1.0.0) > [ 76] [Active ] [ ] [ 60] Apache ServiceMix NMR Spring (1.0.0) > [ 77] [Active ] [Started] [ 60] Apache ServiceMix NMR Commands > (1.0.0) > [ 78] [Active ] [Started] [ 60] Apache ServiceMix NMR Management > (1.0.0) > [ 79] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAVAMAIL > API 1.4 (1.3.0) > [ 80] [Active ] [ ] [ 60] xbean-classloader (3.5) > [ 81] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > woodstox-3.2.7 (3.2.7.1) > [ 82] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > wsdl4j-1.6.1 (1.6.1.1) > [ 83] [Active ] [ ] [ 60] Apache ServiceMix Bundles: ant-1.7.0 > (1.7.0.1) > [ 84] [Active ] [ ] [ 60] Apache ServiceMix JBI Runtime (1.0.0) > [ 85] [Active ] [Started] [ 60] Apache ServiceMix JBI OSGi (1.0.0) > [ 86] [Active ] [Started] [ 60] Apache ServiceMix JBI Deployer > (1.0.0) > [ 87] [Active ] [Started] [ 60] Apache ServiceMix JBI Commands > (1.0.0) > [ 88] [Active ] [ ] [ 60] Spring JMS (2.5.6) > [ 89] [Active ] [Started] [ 60] Apache ServiceMix JBI Clustering > Requestor (1.0.0) > [ 90] [Active ] [Started] [ 60] Apache ServiceMix JBI Clustering > Engine (1.0.0) > [ 91] [Active ] [Started] [ 60] Apache ServiceMix JBI Clustering > Config (1.0.0) > [ 92] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jetty-6.1.14 (6.1.14.1) > [ 93] [Active ] [ ] [ 60] OPS4J Pax Web - Jsp Support (0.5.2) > [ 94] [Active ] [ ] [ 60] OPS4J Pax Web - Web Container (0.5.2) > [ 95] [Active ] [ ] [ 60] OPS4J Pax Web Extender - WAR (0.5.0) > [ 96] [Active ] [ ] [ 60] OPS4J Pax Web Extender - Whiteboard > (0.5.0) > [ 97] [Active ] [ ] [ 60] OPS4J Pax Url - war:, war-i: (0.3.3) > [ 98] [Active ] [Started] [ 60] Apache ServiceMix WAR Deployer > (4.0.0) > [ 99] [Active ] [Started] [ 60] ServiceMix :: Common (2009.01) > [ 100] [Active ] [ ] [ 60] geronimo-ws-metadata_2.0_spec (1.1.2) > [ 101] [Active ] [ ] [ 60] Apache ServiceMix Specs :: SAAJ API > 1.3 (1.3.0) > [ 102] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JAXWS API > 2.1 (1.3.0) > [ 103] [Active ] [ ] [ 60] Apache ServiceMix Bundles: asm-2.2.3 > (2.2.3.1) > [ 104] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > FastInfoset-1.2.2 (1.2.2.1) > [ 105] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > neethi-2.0.4 (2.0.4.1) > [ 106] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlschema-1.4.3 (1.4.3.1) > [ 107] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlresolver-1.2 (1.2.0.1) > [ 108] [Active ] [ ] [ 60] Apache ServiceMix Specs :: JSR311 API > 0.8 (1.3.0) > [ 109] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > xmlsec-1.3.0 (1.3.0.1) > [ 110] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > wss4j-1.5.4 (1.5.4.1) > [ 111] [Active ] [ ] [ 60] Apache CXF Bundle Jar (2.1.4) > [ 112] [Active ] [Started] [ 60] ServiceMix :: SOAP2 (2009.01) > [ 113] [Active ] [Started] [ 60] ServiceMix :: CXF Binding Component > (2009.01) > [ 114] [Active ] [Started] [ 60] ServiceMix :: File (2009.01) > [ 115] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > commons-net-1.4.1 (1.4.1.1) > [ 116] [Active ] [Started] [ 60] ServiceMix :: FTP (2009.01) > [ 117] [Active ] [Started] [ 60] ServiceMix :: SOAP (2009.01) > [ 118] [Active ] [Started] [ 60] ServiceMix :: HTTP (2009.01) > [ 119] [Active ] [Started] [ 60] ServiceMix :: JMS (2009.01) > [ 120] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > geronimo-javamail_1.4_provider-1.8-r755222 (1.8.0.r755222_1) > [ 121] [Active ] [Started] [ 60] ServiceMix :: Mail (2009.01) > [ 122] [Active ] [ ] [ 60] Apache ServiceMix Bundles: jsmpp-2.0 > (2.0.0.1) > [ 123] [Active ] [Started] [ 60] ServiceMix :: SMPP (2009.01) > [ 124] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > snmp4j-1.8.1 (1.8.1.1) > [ 125] [Active ] [Started] [ 60] ServiceMix :: SNMP (2009.01) > [ 126] [Active ] [Started] [ 60] ServiceMix :: VFS (2009.01) > [ 127] [Active ] [Started] [ 60] ServiceMix :: Bean (2009.01) > [ 128] [Active ] [Started] [ 60] ServiceMix :: Camel (2009.01) > [ 129] [Active ] [ ] [ 60] Apache CXF Runtime JBI Binding > (2.1.4) > [ 130] [Active ] [ ] [ 60] Apache CXF Runtime JBI Transport > (2.1.4) > [ 131] [Active ] [Started] [ 60] ServiceMix :: CXF Service Engine > (2009.01) > [ 132] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > core-3.2.3.v_686_R32x (3.2.3.1) > [ 133] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > antlr-runtime-3.0.1 (3.0.1.1) > [ 134] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > drools-4.0.7 (4.0.7.1) > [ 135] [Active ] [Started] [ 60] ServiceMix :: Drools Service Engine > (2009.01) > [ 136] [Active ] [Started] [ 60] ServiceMix :: EIP (2009.01) > [ 137] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > antlr-3.0.1 (3.0.1.1) > [ 138] [Active ] [ ] [ 60] Commons Collections (3.2.1) > [ 139] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > quartz-1.6.1 (1.6.1.1) > [ 140] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > oscore-2.2.4 (2.2.4.1) > [ 141] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > propertyset-1.3 (1.3.0.1) > [ 142] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > osworkflow-2.7.0 (2.7.0.1) > [ 143] [Active ] [Started] [ 60] ServiceMix :: OSWorkflow (2009.01) > [ 144] [Active ] [ ] [ 60] Spring Context Support (2.5.6) > [ 145] [Active ] [Started] [ 60] ServiceMix :: Quartz (2009.01) > [ 146] [Active ] [ ] [ 60] Apache ServiceMix Specs :: Scripting > API 1.0 (1.3.0) > [ 147] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > groovy-1.5.6 (1.5.6.1) > [ 148] [Active ] [ ] [ 60] Apache ServiceMix Bundles: js-1.7R1 > (1.0.0.7R1_1) > [ 149] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > jruby-1.1.2 (1.1.2.1) > [ 150] [Active ] [ ] [ 60] ScriptEngines :: Groovy (1.1) > [ 151] [Active ] [ ] [ 60] ScriptEngines :: JavaScript (1.1) > [ 152] [Active ] [ ] [ 60] ScriptEngines :: JRuby (1.1) > [ 153] [Active ] [Started] [ 60] ServiceMix :: JSR-223 Scripting > Service Engine (2009.01) > [ 154] [Active ] [Started] [ 60] ServiceMix :: Validation (2009.01) > [ 155] [Active ] [ ] [ 60] Apache ServiceMix Bundles: > saxon-9.1.0.1 (9.1.0.1_1) > [ 156] [Active ] [Started] [ 60] ServiceMix :: Saxon Service Engine > (2009.01) > [ 157] [Active ] [Started] [ 60] ServiceMix :: WS-Notification Service > Engine (2009.01) > [ 158] [Active ] [ ] [ 60] Driver Plug-in (1.0.0) > [ 159] [Active ] [ ] [ 60] com.crs.gmi.core (1.0.0) > [ 160] [Resolved ] [ ] [ 60] ExcepcionBundle (1.0.0) > [ 161] [Installed ] [ ] [ 60] Fragment (1.0.0) > [ 162] [Active ] [ ] [ 60] com.crs.gmi.core.logger (1.0.0) > [ 163] [Active ] [ ] [ 60] com.crs.gmi.core.loggerconfig (1.0.0) > [ 164] [Resolved ] [ ] [ 60] com.crs.gmi.core.report.jasperreport > (1.0.0) > [ 165] [Installed ] [ ] [ 60] com.crs.gmi.hibernate (1.0.0) > [ 166] [Resolved ] [ ] [ 60] Log4JConfig Fragment (0.0.1) > Hosts: 180 > [ 167] [Resolved ] [ ] [ 60] Lowagie iText (2.0.8) > [ 168] [Active ] [ ] [ 60] c3p0 Connection Pool (0.9.1.2) > [ 169] [Active ] [ ] [ 60] MySQL AB's JDBC Driver for MySQL > (5.1.6) > [ 170] [Active ] [ ] [ 60] Java SOAP API (1.3.0) > [ 171] [Active ] [ ] [ 60] CGLIB Code Generation Library (2.1.3) > [ 172] [Active ] [ ] [ 60] EHCache Cache (1.5.0) > [ 173] [Active ] [ ] [ 60] JasperReports Reporting Framework > (2.0.5) > [ 174] [Active ] [ ] [ 60] JSR107 (JCACHE) Java caching API > (1.0.0) > [ 175] [Active ] [ ] [ 60] AOP Alliance API (1.0.0) > [ 176] [Resolved ] [ ] [ 60] Apache Commons Bean Utilities (1.8.0) > [ 177] [Resolved ] [ ] [ 60] Apache Commons Collections (3.2.1) > [ 178] [Resolved ] [ ] [ 60] Apache Commons Digester (1.8.1) > [ 179] [Resolved ] [ ] [ 60] Apache Commons Lang (2.4.0) > [ 180] [Resolved ] [ ] [ 60] Apache Log4J (1.2.15) > Fragments: 166 > [ 181] [Resolved ] [ ] [ 60] Apache Velocity Engine (1.6.2) > [ 182] [Resolved ] [ ] [ 60] dom4j DOM Processor (1.6.1) > [ 183] [Resolved ] [ ] [ 60] SLF4J API (1.5.0) > Fragments: 184 > [ 184] [Resolved ] [ ] [ 60] SLF4J Log4J Binding (1.5.0) > Hosts: 183,183 > [ 185] [Resolved ] [ ] [ 60] Hibernate Classes (3.2.6.ga) > [ 186] [Resolved ] [ ] [ 60] Spring AOP (2.5.6.A) > [ 187] [Resolved ] [ ] [ 60] Spring Beans (2.5.6.A) > [ 188] [Resolved ] [ ] [ 60] Spring Context (2.5.6.A) > [ 189] [Resolved ] [ ] [ 60] Spring JDBC (2.5.6.A) > [ 190] [Resolved ] [ ] [ 60] Spring ORM (2.5.6.A) > [ 191] [Resolved ] [ ] [ 60] Spring Transaction (2.5.6.A) > [ 192] [Active ] [ ] [ 60] Spring Web (2.5.6.A) > [ 193] [Active ] [ ] [ 60] Spring Web Servlet (2.5.6.A) > [ 194] [Active ] [ ] [ 60] Eclipse JDT Batch Compile (3.3.0) > s...@root:features> exit > 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) > > I'll appreciate any comment or suggestion... > > Thanks in advance, Santiago. > > > > > smontico wrote: >> >> 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-tp27344706p27355445.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
