<meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div class=WordSection1><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Thanks for your candid reply. I&#8217;m just diving into OSGi and am experiencing the same WTF. Hopefully, I&#8217;ll be able to stay on this project for a bit and actually get somewhere, but it doesn&#8217;t look good right now. Good news&#8230; GE Healthcare may be opening the door and allowing us to participate in the Open Source community. If that happens, I may be able to pitch in.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'>Thanks for the pointers.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='margin-left:.5in;text-indent:-.25in;mso-list:l0 level1 lfo1'><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'><span style='mso-list:Ignore'>-<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><i><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:gray'>Dan</span></i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Mark Proctor [via Drools] [mailto:<a href="/user/SendEmail.jtp?type=node&node=4020068&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>] <br><b>Sent:</b> Monday, October 01, 2012 9:42 PM<br><b>To:</b> Seaver, Daniel (GE Healthcare)<br><b>Subject:</b> Re: [rules-users] Deploy Drools in AS7 as OSGi bundles<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Our OSGi stuff is best effort - working on OSGi was like sticking needles directly into the back of my eyeball, not fun. tbh I find OSGi a real PITA. Too many of our dependencies do not have real OSGi bundles available, so we have to resort to the spring repository - where the versions almost never match our original target version. Further when it fails it's almost freaking impossible to determine why it fails. <br><br>We use the spring test module, we provide it all the dependencies that you see, and run the tests. Other than suggesting to look at the spring OSGi test executions, I can't really offer more help. But it will nearly always boil down to wrong jars or wrong versions of jars - figuring out which of those are the problem, is not easy. Either it works, of it doesn't. If it doesn't, &nbsp;there is no simple way to debug why OSGi doesn't work. Generally I have to take it back to the last version that worked and keep incrementally changing it until I find out specifically doesn't work, so I can address it. <br><br>You might find it useful to look at the bundle context that spring osgi creates, here is all the bundles and their versions necessary for the unit tests to run: <br><a href="https://github.com/droolsjbpm/droolsjbpm-build-distribution/blob/master/drools-osgi-bundles/org.drools.osgi.test/src/test/filtered-resources/boot-bundles.properties" target="_top" rel="nofollow" link="external">https://github.com/droolsjbpm/droolsjbpm-build-distribution/blob/master/drools-osgi-bundles/org.drools.osgi.test/src/test/filtered-resources/boot-bundles.properties</a><br><br>good luck :) Please document any helpers you find, and submit as pull requests. <br><br><br>Mark <br><br><br>On 1 Oct 2012, at 21:26, Dan Seaver &lt;<a href="/user/SendEmail.jtp?type=node&amp;node=4020067&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote: <o:p></o:p></p><div><p class=MsoNormal><div class='shrinkable-quote'><br>&gt; Thanks Mark, but I still am having issues. <br>&gt; I cloned the latest droolsjbpm-build-distribution and built <br>&gt; drools-osgi-bundles and reviewed the documentation you refenced. I don't see <br>&gt; it stated anywhere, but I assume I need to install and start all of the jars <br>&gt; in drools-osgi-bundles-distribution-5.5.0-SNAPSHOT.zip. <br>&gt; <br>&gt; So, I put all of those jars in the AS7's Standalone deployments folder and <br>&gt; started up AS7. The only jar that seemed to have trouble is <br>&gt; *com.springsource.antlr-2.7.6.jar* because of an *IllegalArgumentException: <br>&gt; A fragment is not a module*. <br>&gt; <br>&gt; Now I tried to deploy the *knowledge-api-5.5.0-SNAPSHOT.jar*, and I get an <br>&gt; error with *com.springsource.com.sun.tools.xjc:2.1.7* (see stacktrace <br>&gt; below), which prohibits me from installing and starting any of the other <br>&gt; drools bundles mentioned in the doc. <br>&gt; <br>&gt; Any thoughts about what's amiss? <br>&gt; <br>&gt; Stack Trace: <br>&gt; ========== <br>&gt; 10:10:44,609 ERROR [org.jboss.osgi.framework.internal.FrameworkEventsPlugin] <br>&gt; (MSC service thread 1-8) Framework ERROR: <br>&gt; org.osgi.framework.BundleException: Cannot resolve bundle resModule: <br>&gt; [org.drools.api:5.5.0.SNAPSHOT] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:157) <br>&gt; [jbosgi-framework-core-1.1.8.Final.jar:1.1.8.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.osgi.framework.internal.AbstractBundleState.ensureResolved(AbstractBundleState.java:551) <br>&gt; [jbosgi-framework-core-1.1.8.Final.jar:1.1.8.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:211) <br>&gt; [jbosgi-framework-core-1.1.8.Final.jar:1.1.8.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) <br>&gt; [jbosgi-framework-core-1.1.8.Final.jar:1.1.8.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144) <br>&gt; [jboss-as-osgi-service-7.1.1.Final.jar:7.1.1.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119) <br>&gt; [jboss-as-osgi-service-7.1.1.Final.jar:7.1.1.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1416) <br>&gt; [jboss-msc-1.0.2.GA.jar:1.0.2.GA] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.msc.service.ServiceControllerImpl.access$2700(ServiceControllerImpl.java:49) <br>&gt; [jboss-msc-1.0.2.GA.jar:1.0.2.GA] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1954) <br>&gt; [jboss-msc-1.0.2.GA.jar:1.0.2.GA] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) <br>&gt; [rt.jar:1.6.0_26] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) <br>&gt; [rt.jar:1.6.0_26] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_26] <br>&gt; Caused by: org.jboss.osgi.resolver.XResolverException: Constraint violation <br>&gt; for package 'org.relaxng.datatype' when resolving module <br>&gt; Module[com.springsource.com.sun.tools.xjc:2.1.7] between existing export <br>&gt; Module[com.springsource.com.sun.tools.xjc:2.1.7].org.relaxng.datatype NO <br>&gt; BLAME and uses constraint <br>&gt; Module[com.springsource.org.relaxng.datatype:1.0.0].org.relaxng.datatype <br>&gt; BLAMED ON [[Module[com.springsource.com.sun.tools.xjc:2.1.7]] package; <br>&gt; (&amp;(package=com.sun.msv.datatype.xsd.ngimpl)(version&gt;=0.0.0.20060615)(version&lt;=0.0.0.20060615)), <br>&gt; [Module[com.springsource.com.sun.msv.datatype:0.0.0.20060615]] package; <br>&gt; (&amp;(package=org.relaxng.datatype)(version&gt;=1.0.0)(!(version&gt;=2.0.0)))] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.osgi.resolver.felix.FelixResolver.resolveInternal(FelixResolver.java:117) <br>&gt; [jbosgi-resolver-felix-1.0.13.Final.jar:1.0.13.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.osgi.resolver.spi.AbstractResolver.resolve(AbstractResolver.java:149) <br>&gt; [jbosgi-resolver-spi-1.0.13.Final.jar:1.0.13.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;at <br>&gt; org.jboss.osgi.framework.internal.ResolverPlugin.resolve(ResolverPlugin.java:155) <br>&gt; [jbosgi-framework-core-1.1.8.Final.jar:1.1.8.Final] <br>&gt; &nbsp; &nbsp; &nbsp; &nbsp;... 11 more <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; View this message in context: <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br><a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>NAML</span></a> <o:p></o:p></span></p></div></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/Deploy-Drools-in-AS7-as-OSGi-bundles-tp4020052p4020068.html">RE: [rules-users] Deploy Drools in AS7 as OSGi bundles</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>