<div dir="ltr"><div><div>Hello.</div><div><br></div><div>This feature seems to use many features with versions that are not available on our ServiceMix 4.5.3. For example, the JPA feature is required with versions [1.0.1,2.0), while the current feature is 0.3. This is also the case for other dependencies. This makes the Drools feature deployment fails.</div>
<div><br></div><div>This is the reason why we are trying to build our own Drools feature targeting our current Karaf/ServiceMix version. But all the hidden dependencies I mentioned before (Import-Package in OSGi manifests without Maven dependencies), which most are not needed in our case, make the operation quite difficult.</div>
<div><br></div><div>What should be the simplest way to deploy a minimalist package to let our simple application work ?</div><div><br></div><div>I will try anyway the last 6.1.0 beta to check for possible regression in case we switch to this version.</div>
<div><br></div><div>Thanks a lot for your help.</div><div><br></div><div>Regards.</div></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-14 7:28 GMT+02:00 Charles Moulliard <span dir="ltr">&lt;<a href="mailto:ch007m@gmail.com" target="_blank">ch007m@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I would recommend that you use the karaf features 6.1.0.Beta3 file <a href="http://repo1.maven.org/maven2/org/drools/drools-karaf-features/6.1.0.Beta3/drools-karaf-features-6.1.0.Beta3-features.xml" target="_blank">http://repo1.maven.org/maven2/org/drools/drools-karaf-features/6.1.0.Beta3/drools-karaf-features-6.1.0.Beta3-features.xml</a> to deploy your project on Karaf or ServiceMix</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 8:24 PM, Ephemeris Lappis <span dir="ltr">&lt;<a href="mailto:ephemeris.lappis@gmail.com" target="_blank">ephemeris.lappis@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hello.<br>
      <br>
      I&#39;ll send you a project as described when our first tests work
      with a single bundle, which is not the case today. Indeed, we&#39;re
      experiencing problems, like many seem to have experienced before,
      to package and install drools on ServiceMix.<br>
      <br>
      We&#39;re testing first a simple bundle owning its local kmodule.xml
      and its drl files, but this doesn&#39;t work. I have had a look to you
      example projects, and some of them indeed seem to do what we need,
      using the osgi integration.<br>
      <br>
      The project itself only depends on two libraries (Kie API and
      Drools compiler), but when we&#39;ve tried to install them, we&#39;ve
      discovered all the transitive dependancies that we must take into
      account to add the OSGi integration module that is supposed to
      handle classloader troubles.<br>
      <br>
      We are trying to build a Karaf Feature of the 6.0.1 Final version
      for our Karaf environment, producing a KAR file with maven, but
      many dependant JAR&#39;s manifests mention Import-Package entries that
      do not appear in the maven graph and we&#39;ve spent 2 days looking
      one by one to resolve deployment failures and/or conflicts.<br>
      <br>
      Have you any advice about building a (minimalist) Karaf feature
      for Drools 6.0.1 ?<br>
      I&#39;ve seen an available feature for a more recent version of Karaf,
      but our ServiceMix 4.5.3 doesn&#39;t expose the needed dependancies.<br>
      <br>
      I&#39;ve also see posts about a new KieClasspathContainer constuction
      method passing a classloader, but this method, if I&#39;m not wrong
      only appears on version 6.1.0 Beta3.<br>
      <br>
      Is there any reason to use this beta instead of the last final
      version ?<br>
      <br>
      Thanks for you help.<br>
      <br>
      Regards.<br>
      <pre cols="72">Ephemeris Lappis</pre>
      Le 13/05/2014 15:46, Charles Moulliard a écrit :<br>
    </div><div><div>
    <blockquote type="cite">
      <div dir="ltr">Can you share your code as I have created such kind
        of project (bundle A  = KieContainer  and bundle B = rules)
        which is working on Karaf ?
        <div><br>
        </div>
        <div><a href="https://github.com/cmoulliard/droolsjbpm-osgi-examples" target="_blank">https://github.com/cmoulliard/droolsjbpm-osgi-examples</a>
          (bundle with Kie = <a href="https://github.com/cmoulliard/droolsjbpm-osgi-examples/tree/master/kie-project-bundle" title="kie-project-bundle" style="font-size:12.727272033691406px;color:rgb(65,131,196);text-decoration:none;font-family:Helvetica,arial,freesans,clean,sans-serif;line-height:20px;white-space:nowrap;background-color:rgb(248,248,248)" target="_blank">kie-project-bundle</a> and
          bundle with bundle with rules = <a href="https://github.com/cmoulliard/droolsjbpm-osgi-examples/tree/master/simple-kie-bundle" title="simple-kie-bundle" style="font-size:12.727272033691406px;color:rgb(65,131,196);text-decoration:none;font-family:Helvetica,arial,freesans,clean,sans-serif;line-height:20px;white-space:nowrap;background-color:rgb(248,248,248)" target="_blank">simple-kie-bundle</a>) </div>


      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, May 13, 2014 at 9:39 AM,
          Ephemeris Lappis <span dir="ltr">&lt;<a href="mailto:ephemeris.lappis@gmail.com" target="_blank">ephemeris.lappis@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello.<br>
            <br>
            I&#39;d like to separate cleanly my Drools system into 2 OSGi
            bundles :<br>
            <br>
            1) the java code that uses the Kie API (6.0.1) and exposes
            service<br>
            interfaces to the business part of the applications. Its
            code relies on<br>
            someting like :<br>
            <br>
            KieServices kieServices = KieServices.Factory.get();<br>
            kieContainer = kieServices.getKieClasspathContainer();<br>
            KieSession kieSession = kieContainer.newKieSession(name);<br>
            <br>
            2) the rules themselves, just including the kmodule.xml that
            manages the<br>
            ksessions and the drl files in their own packages.<br>
            <br>
            Let say the first module is S and second is R, while the
            applcation is A.<br>
            <br>
            This build model works nice in my eclipse with correct maven
            dependancies<br>
            set from A to both S and R. Classes in the application A
            calls the service<br>
            from the S. The kieContainer has resolved as expected the
            kmodule and<br>
            associated the rules files for the given packages, and the
            application can<br>
            get the ksession for a given name.<br>
            <br>
            I&#39;m afraid that the same code won&#39;t run as nice as it does
            when deployed on<br>
            my Karaf (Service MIX) OSGi environment. I suspect that the
            KieContainer may<br>
            encounter some troubles to detect the kmodule.xml in the
            META-INF and the<br>
            DRL files out of another jar.<br>
            <br>
            Is there anyone with such experiences ?<br>
            Any advice to do it ?<br>
            <br>
            Thanks in advance.<br>
            Regards.<br>
            <br>
            <br>
            <br>
            --<br>
            View this message in context: <a href="http://drools.46999.n3.nabble.com/Deploy-Rules-in-separate-OSGi-bundles-tp4029541.html" target="_blank">http://drools.46999.n3.nabble.com/Deploy-Rules-in-separate-OSGi-bundles-tp4029541.html</a><br>


            Sent from the Drools: User forum mailing list archive at
            Nabble.com.<br>
            _______________________________________________<br>
            rules-users mailing list<br>
            <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
            <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div dir="ltr">
          <div>Charles Moulliard</div>
          <div>Apache Committer / Architect @RedHat</div>
          <div>Twitter : @cmoulliard | Blog : <a href="http://cmoulliard.github.io" target="_blank">
              http://cmoulliard.github.io</a></div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><span class=""><font color="#888888"><br></font></span></blockquote></div><span class=""><font color="#888888"><br>
<br clear="all"><div><br></div>-- <br><div dir="ltr"><div>
Charles Moulliard</div><div>Apache Committer / Architect @RedHat</div><div>Twitter : @cmoulliard | Blog : <a href="http://cmoulliard.github.io" target="_blank"> http://cmoulliard.github.io</a></div><div><br></div></div>
</font></span></div>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br></div></div>