Jean-Baptiste, thank you very much. Best Regards. 2011/7/25 Jean-Baptiste Onofré <j...@nanthrax.net>
> To create your bundle, I guess that you use the Felix maven-bundle-plugin. > > In the maven-bundle-plugin configuration, if you define the instruction: > > <Import-Package> > * > </import-Package> > > it means that it will try to import all packages required (it's probably > your case). > > If you want to review and check the imported package, you can use: > > <Import-Package> > </Import-Package> > > in that case, the build will fail displaying the required package. > > Depending of the packages usage, you can set the package as optional (it > it's here, it uses it, but it's not a blocker point for deployment): > > <Import-Package> > org.osgi.services.event;resolution:=optional, > * > </Import-Package> > > You can take a look on the maven-bundle-plugin documentation: > http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html > > Regards > JB > > On Mon 25/07/11 11:52 , Javier Arias Losada wrote:: > > Jean-Batiste, > thank you very much, that solved my problem. > > As I told, I am new to OSGi; so may be this are silly questions; my code is > not referencing any of org.osgi.* so I guess this is a dependency of one of > my dependencies. My questions are: > - How can I track references of my referenced bundles easily, or at least, > properly? Have I to wait to get install errors? > - Is there an automated way of going from the error I got (missing > requirement [120.3] package; package=org.osgi.service. > event) to the bundle you told me to install? Any documentation, database, > or > procedure to find out this bundle from its contained packages? > > Thank you very very much. > Best regards. > Javier Arias. > > > 2011/7/25 Jean-Baptiste Onofré j...@nanthrax.net> > > > Sorry, > > > > ServiceMix 4.3.0 uses Karaf 2.1.3. Eventadmin feature is available in > Karaf > > 2.2.x (which will be used by ServiceMix 4.4.0). > > > > You can install the Felix eventadmin bundle: > > > > karaf@root> osgi:install -s > > mvn:org.apache.felix/org.apache.felix.eventadmin/1.2.12 > > > > Regards > > JB > > > > > > > > On Mon 25/07/11 11:30 , Javier Arias Losada wrote:: > > > > Hi Jean-Baptiste, > > thank you for your quick response. I think I do not have installed the > > repository for this feature; I tried to look for features with similar > > names, whithout success: this is what I did: > > > > karaf@root> features:install eventadmin > > Error executing command: No feature named 'eventadmin' with version > '0.0.0' > > available > > karaf@root> features:list |grep even > > karaf@root> features:list |grep admin > > karaf@root> features:listrepositories > > Repository > > karaf-2.1.3 > > repo-0 > > repo-0 > > repo-0 > > activemq-5.4.2 > > repo-0 > > repo-0 > > repo-0 > > karaf@root> features:list > > State Version Name > > Repository > > [installed ] [3.0.5.RELEASE ] spring > > karaf-2.1.3 > > [installed ] [1.2.0 ] spring-dm > > karaf-2.1.3 > > [uninstalled] [2.1.3 ] wrapper > > karaf-2.1.3 > > [uninstalled] [2.1.3 ] obr > > karaf-2.1.3 > > [installed ] [2.1.3 ] config > > karaf-2.1.3 > > [installed ] [2.1.3 ] http > > karaf-2.1.3 > > [installed ] [2.1.3 ] war > > karaf-2.1.3 > > [uninstalled] [2.1.3 ] webconsole-base > > karaf-2.1.3 > > [uninstalled] [2.1.3 ] webconsole > > karaf-2.1.3 > > [uninstalled] [2.1.3 ] ssh > > karaf-2.1.3 > > [uninstalled] [2.1.3 ] management > > karaf-2.1.3 > > [uninstalled] [2.1.3 ] jasypt-encryption > > karaf-2.1.3 > > [installed ] [1.1.0 ] mytest-common-dependencies-1.1.0 > repo-0 > > [installed ] [1.1.0 ] mytest-integration-dependencies-1.1.0 > repo-0 > > [installed ] [2.6.0 ] camel > > repo-0 > > [installed ] [2.6.0 ] camel-core > > repo-0 > > [installed ] [2.6.0 ] camel-spring > > repo-0 > > [installed ] [2.6.0 ] camel-blueprint > > repo-0 > > [uninstalled] [2.6.0 ] camel-test > > repo-0 > > [uninstalled] [2.6.0 ] camel-cxf > > repo-0 > > [uninstalled] [2.6.0 ] camel-cache > > repo-0 > > [uninstalled] [2.6.0 ] camel-castor > > repo-0 > > [uninstalled] [2.6.0 ] camel-crypto > > repo-0 > > [installed ] [2.6.0 ] camel-http > > repo-0 > > [uninstalled] [2.6.0 ] camel-http4 > > repo-0 > > [uninstalled] [2.6.0 ] camel-mina > > repo-0 > > [uninstalled] [2.6.0 ] camel-jetty > > repo-0 > > [uninstalled] [2.6.0 ] camel-servlet > > repo-0 > > [installed ] [2.6.0 ] camel-jms > > repo-0 > > [uninstalled] [2.6.0 ] camel-amqp > > repo-0 > > [uninstalled] [2.6.0 ] camel-atom > > repo-0 > > [uninstalled] [2.6.0 ] camel-bam > > repo-0 > > [uninstalled] [2.6.0 ] camel-bean-validator > > repo-0 > > [uninstalled] [2.6.0 ] camel-bindy > > repo-0 > > [uninstalled] [2.6.0 ] camel-cometd > > repo-0 > > [uninstalled] [2.6.0 ] camel-csv > > repo-0 > > [uninstalled] [2.6.0 ] camel-dozer > > repo-0 > > [uninstalled] [2.6.0 ] camel-exec > > repo-0 > > [uninstalled] [2.6.0 ] camel-flatpack > > repo-0 > > [uninstalled] [2.6.0 ] camel-freemarker > > repo-0 > > [uninstalled] [2.6.0 ] camel-ftp > > repo-0 > > [uninstalled] [2.6.0 ] camel-guice > > repo-0 > > [uninstalled] [2.6.0 ] camel-groovy > > repo-0 > > [uninstalled] [2.6.0 ] camel-hl7 > > repo-0 > > [uninstalled] [2.6.0 ] camel-hawtdb > > repo-0 > > [uninstalled] [2.6.0 ] camel-ibatis > > repo-0 > > [uninstalled] [2.6.0 ] camel-irc > > repo-0 > > [uninstalled] [2.6.0 ] camel-jackson > > repo-0 > > [uninstalled] [2.6.0 ] camel-jasypt > > repo-0 > > [uninstalled] [2.6.0 ] camel-jaxb > > repo-0 > > [uninstalled] [2.6.0 ] camel-jcr > > repo-0 > > [uninstalled] [2.6.0 ] camel-jing > > repo-0 > > [uninstalled] [2.6.0 ] camel-jdbc > > repo-0 > > [uninstalled] [2.6.0 ] camel-josql > > repo-0 > > [uninstalled] [2.6.0 ] camel-jpa > > repo-0 > > [uninstalled] [2.6.0 ] camel-jxpath > > repo-0 > > [uninstalled] [2.6.0 ] camel-juel > > repo-0 > > [uninstalled] [2.6.0 ] camel-ldap > > repo-0 > > [uninstalled] [2.6.0 ] camel-lucene > > repo-0 > > [uninstalled] [2.6.0 ] camel-mail > > repo-0 > > [uninstalled] [2.6.0 ] camel-msv > > repo-0 > > [uninstalled] [2.6.0 ] camel-mvel > > repo-0 > > [uninstalled] [2.6.0 ] camel-nagios > > repo-0 > > [uninstalled] [2.6.0 ] camel-netty > > repo-0 > > [uninstalled] [2.6.0 ] camel-ognl > > repo-0 > > [uninstalled] [2.6.0 ] camel-printer > > repo-0 > > [uninstalled] [2.6.0 ] camel-protobuf > > repo-0 > > [uninstalled] [2.6.0 ] camel-quartz > > repo-0 > > [uninstalled] [2.6.0 ] camel-restlet > > repo-0 > > [uninstalled] [2.6.0 ] camel-rmi > > repo-0 > > [uninstalled] [2.6.0 ] camel-rss > > repo-0 > > [uninstalled] [2.6.0 ] camel-saxon > > repo-0 > > [uninstalled] [2.6.0 ] camel-scala > > repo-0 > > [uninstalled] [2.6.0 ] camel-script > > repo-0 > > [uninstalled] [2.6.0 ] camel-sip > > repo-0 > > [uninstalled] [2.6.0 ] camel-shiro > > repo-0 > > [uninstalled] [2.6.0 ] camel-smpp > > repo-0 > > [uninstalled] [2.6.0 ] camel-snmp > > repo-0 > > [uninstalled] [2.6.0 ] camel-soap > > repo-0 > > [uninstalled] [2.6.0 ] camel-spring-integration > > repo-0 > > [uninstalled] [2.6.0 ] camel-spring-javaconfig > > repo-0 > > [uninstalled] [2.6.0 ] camel-spring-security > > repo-0 > > [uninstalled] [2.6.0 ] camel-sql > > repo-0 > > [uninstalled] [2.6.0 ] camel-stream > > repo-0 > > [uninstalled] [2.6.0 ] camel-string-template > > repo-0 > > [uninstalled] [2.6.0 ] camel-tagsoup > > repo-0 > > [uninstalled] [2.6.0 ] camel-velocity > > repo-0 > > [uninstalled] [2.6.0 ] camel-xmlbeans > > repo-0 > > [uninstalled] [2.6.0 ] camel-xmlsecurity > > repo-0 > > [uninstalled] [2.6.0 ] camel-xmpp > > repo-0 > > [uninstalled] [2.6.0 ] camel-xstream > > repo-0 > > [installed ] [5.4.2 ] activemq > > activemq-5.4.2 > > [uninstalled] [5.4.2 ] activemq-spring > > activemq-5.4.2 > > [installed ] [5.4.2 ] activemq-blueprint > > activemq-5.4.2 > > [uninstalled] [5.4.2 ] activemq-web-console > > activemq-5.4.2 > > [uninstalled] [4.3.0 ] connector > > repo-0 > > [uninstalled] [2.3.2 ] cxf > > repo-0 > > [uninstalled] [4.3.0 ] cxf-osgi > > repo-0 > > [uninstalled] [4.3.0 ] cxf-jaxrs > > repo-0 > > [uninstalled] [4.3.0 ] cxf-nmr > > repo-0 > > [uninstalled] [4.3.0 ] camel-nmr > > repo-0 > > [installed ] [4.3.0 ] camel-activemq > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-osgi > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-jaxrs > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-nmr > > repo-0 > > [uninstalled] [4.3.0 ] examples-camel-osgi > > repo-0 > > [uninstalled] [4.3.0 ] examples-camel-blueprint > > repo-0 > > [uninstalled] [4.3.0 ] examples-camel-nmr > > repo-0 > > [uninstalled] [4.3.0 ] examples-camel-nmr-blueprint > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-camel-nmr > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-ws-addressing > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-wsdl-first-osgi-package > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-ws-security-osgi > > repo-0 > > [uninstalled] [4.3.0 ] examples-cxf-ws-rm > > repo-0 > > [uninstalled] [2011.01 ] servicemix-shared > > repo-0 > > [uninstalled] [2011.01 ] servicemix-cxf-bc > > repo-0 > > [uninstalled] [2011.01 ] servicemix-file > > repo-0 > > [uninstalled] [2011.01 ] servicemix-ftp > > repo-0 > > [uninstalled] [2011.01 ] servicemix-http > > repo-0 > > [uninstalled] [2011.01 ] servicemix-jms > > repo-0 > > [uninstalled] [2011.01 ] servicemix-mail > > repo-0 > > [uninstalled] [2011.01 ] servicemix-bean > > repo-0 > > [uninstalled] [2011.01 ] servicemix-camel > > repo-0 > > [uninstalled] [2011.01 ] servicemix-drools > > repo-0 > > [uninstalled] [2011.01 ] servicemix-cxf-se > > repo-0 > > [uninstalled] [2011.01 ] servicemix-eip > > repo-0 > > [uninstalled] [2011.01 ] servicemix-osworkflow > > repo-0 > > [uninstalled] [2011.01 ] servicemix-quartz > > repo-0 > > [uninstalled] [2011.01 ] servicemix-scripting > > repo-0 > > [uninstalled] [2011.01 ] servicemix-validation > > repo-0 > > [uninstalled] [2011.01 ] servicemix-saxon > > repo-0 > > [uninstalled] [2011.01 ] servicemix-wsn2005 > > repo-0 > > [uninstalled] [2011.01 ] servicemix-snmp > > repo-0 > > [uninstalled] [2011.01 ] servicemix-vfs > > repo-0 > > [uninstalled] [2011.01 ] servicemix-smpp > > repo-0 > > [uninstalled] [2011.01 ] servicemix-exec > > repo-0 > > [installed ] [4.3.0 ] activemq-broker > > repo-0 > > [uninstalled] [1.4.0 ] naming > > repo-0 > > [uninstalled] [0.2-incubating] transaction > > repo-0 > > [uninstalled] [1.4.0 ] document > > repo-0 > > [uninstalled] [1.4.0 ] nmr > > repo-0 > > [uninstalled] [1.4.0 ] nmr-audit > > repo-0 > > [uninstalled] [4.0.8 ] woodstox > > repo-0 > > [uninstalled] [1.4.0 ] jbi > > repo-0 > > [uninstalled] [1.4.0 ] jbi-cluster > > repo-0 > > [uninstalled] [1.4.0 ] examples-nmr > > repo-0 > > [uninstalled] [1.3.5 ] ode-core-deps > > repo-0 > > [uninstalled] [1.3.5 ] ode-core > > repo-0 > > [uninstalled] [1.3.5 ] ode-hib-deps > > repo-0 > > [uninstalled] [1.3.5 ] ode-jpa-deps > > repo-0 > > [uninstalled] [1.3.5 ] ode-derby-deps > > repo-0 > > [uninstalled] [1.3.5 ] ode-sqlserver-deps > > repo-0 > > [uninstalled] [1.3.5 ] ode-oracle-deps > > repo-0 > > [uninstalled] [1.3.5 ] ode > > repo-0 > > [uninstalled] [1.3.5 ] ode-hib-oracle > > repo-0 > > [uninstalled] [1.3.5 ] ode-hib-sqlserver > > repo-0 > > [uninstalled] [1.3.5 ] ode-commands > > repo-0 > > [uninstalled] [1.3.5 ] ode-pmapi-httpbinding > > repo-0 > > [uninstalled] [1.3.5 ] examples-ode-ping-pong > > repo-0 > > [uninstalled] [1.3.5 ] examples-ode-helloworld > > repo-0 > > > > > > > > > > 2011/7/25 Jean-Baptiste Onofré j...@nanthrax.net> > > > > > Hi Javier, > > > > > > Your bundle uses a dependencies that use event. > > > > > > Install the eventadmin feature: > > > > > > karaf@root> feature:install eventadmin > > > > > > It should be better :) > > > > > > Regards > > > JB > > > > > > On Mon 25/07/11 11:01 , Javier Arias Losada wrote:: > > > > > > Hi all, > > > I am in the process of migrating our old camel2.2+servicemix3.3.2 to > > > camel2.6+servicemix4.3.0, also I am new to OSGi, so maybe this is an > easy > > > question, but I already googled it without success. > > > > > > I am deploying the application as two bundles: > > > 1. BusinessModel + XML Marshalling + Hibernate Persistence. > > > 2. Camel routes using depending on first bundle (for marshalling and db > > > persistence) > > > > > > Deploying the camel routes (2nd bundle) I have the following error: > > missing > > > requirement package=org.osgi.service.event; our bundle is not using it > > (or > > > at least we are not consciusly using it). Below is the stacktrace > pasted. > > > > > > Any help will be appreciated. > > > Thanx in advance. > > > > > > karaf@root> ERROR: Bundle com.mytest.integration [120] Error starting > > > > > > > > > file:/home/jarias/mywork/tmp/apache-servicemix-4.3.0/deploy/com.mytest.integration-01.01.jar > > > (org.osgi.framework.BundleException: Unresolved constraint in bundle > > > com.mytest.integration [120]: Unable to resolve 120.3: missing > > requirement > > > [120.3] package; (package=org.osgi.service.event)) > > > org.osgi.framework.BundleException: Unresolved constraint in bundle > > com.my > > > test.integration [120]: Unable to resolve 120.3: missing requirement > > > [120.3] > > > package; (package=org.osgi.service.event) > > > at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446) > > > at org.apache.felix.framework.Felix.startBundle(Felix.java:1734) > > > at > > org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163) > > > at > > > org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) > > > at java.lang.Thread.run(Thread.java:679) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >