Hi, First of all mvn:jaxen/jaxen/1.1.1 isn't a OSGi bundle, you should use the servicemix wrapper one instead, something like mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxen/1.1.1_2
And add <classpath> <library>osgi:org.apache.servicemix.bundles.jaxen</library> </classpath> in xbean.xml but not jbi.xml ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2013-1-16, at 下午4:48, sammm wrote: > JB, > thanks for that. > > i'm using the jbi-maven-plugin which auto-generates the jbi files. i've > tried amending the xbean.xml but whatever i do i cant get the generated > jbi.xml to include that section > > > On Tue, Jan 15, 2013 at 11:04 PM, Jean-Baptiste Onofré [via ServiceMix] < > [email protected]> wrote: > >> Hi Martin, >> >> I suspect a classloader issue due to OSGi. Did you extend the jbi.xml to >> add some jar ? Something like >> >> <classpath> >> <library>...</library> >> </classpath> >> >> Regards >> JB >> >> On 01/14/2013 03:10 PM, sammm wrote: >> >>> I have a JBI configuration which has been working for a while un SM3 and >> has >>> been moved to SM4. One of the components using Saxon (saxon:xslt) but >> when i >>> try to install the SA i get a Jaxen classpath exception: >>> >>> Caused by: java.lang.ClassNotFoundException: org.jaxen.XPath >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >>> >>> I've got the library being bundled when we run the 'jbi-maven-plugin', >>> there's a dependency reference in the POM. i've run "install -s >>> mvn:jaxen/jaxen/1.1.1" in the ServiceMix console and i've added it to >> the >>> "system" folder. >>> >>> No matter what i do i cant get past this. Any ideas? >>> >>> Martin >>> >>> >>> >>> -- >>> View this message in context: >> http://servicemix.396122.n5.nabble.com/Service-4-JBI-3rd-Party-Libs-tp5715490.html >>> Sent from the ServiceMix - User mailing list archive at Nabble.com. >>> >> >> -- >> Jean-Baptiste Onofré >> [hidden email] <http://user/SendEmail.jtp?type=node&node=5715498&i=0> >> http://blog.nanthrax.net >> Talend - http://www.talend.com >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://servicemix.396122.n5.nabble.com/Service-4-JBI-3rd-Party-Libs-tp5715490p5715498.html >> To unsubscribe from Service 4, JBI & 3rd Party Libs, click >> here<http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715490&code=bWFydGluLnNhbW1AZ21haWwuY29tfDU3MTU0OTB8LTE2MTE4NzIwNTQ=> >> . >> NAML<http://servicemix.396122.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> >> > > > > -- > Martin Samm > > > > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Service-4-JBI-3rd-Party-Libs-tp5715490p5715500.html > Sent from the ServiceMix - User mailing list archive at Nabble.com.
