<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    OSGi issues: How to deploy jBPM 5.4.0 in Fuse ESB 4.4.1?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/loik">patrice godard</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/793422#793422">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p>I'm trying to deploy jBPM 5.4.0 in Apache-ServiceMix-4.4.1-Fuse-07-11 and I get the following dependency issues:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I dropped these bundles in $FUSE_HOME/deploy:</p><p><em>drools-compiler-5.5.0.Final.jar</em></p><p><em>drools-core-5.5.0.Final.jar</em></p><p><em>jaxb-xjc-2.1.9-osgi.jar</em></p><p><em>jbpm-bpmn2-5.4.0.Final.jar</em></p><p><em>jbpm-flow-5.4.0.Final.jar</em></p><p><em>jbpm-flow-builder-5.4.0.Final.jar</em></p><p><em>jbpm-persistence-jpa-5.4.0.Final.jar</em></p><p><em>knowledge-api-5.5.0.Final.jar</em></p><p><em>knowledge-internal-api-5.5.0.Final.jar</em></p><p><em>mvel2-2.1.1.Final.jar</em></p><p><em>protobuf-java-2.4.1.jar</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>These bundles deploy successfully.</p><p>Then I deploy my jBPM client bundle, that makes use of the jBPM API and I get the following error:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>Error executing command: Unable to resolve module jbpm-workflowmanager [249.24] because it is exposed to package 'org.drools' from</em></p><p><em> org.drools.core [284.0] and org.drools.api [279.0] via two dependency chains.</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>Chain 1:</em></p><p><em>&#160; jbpm-workflowmanager [249.24]</em></p><p><em>&#160;&#160;&#160; import: (&amp;(package=org.drools)(version&gt;=5.5.0))</em></p><p><em>&#160;&#160;&#160;&#160; |</em></p><p><em>&#160;&#160;&#160; export: package=org.drools</em></p><p><em>&#160; org.drools.core [284.0]</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>Chain 2:</em></p><p><em>&#160; jbpm-workflowmanager [249.24]</em></p><p><em>&#160;&#160;&#160; import: (&amp;(package=org.drools.runtime)(version&gt;=5.5.0))</em></p><p><em>&#160;&#160;&#160;&#160; |</em></p><p><em>&#160;&#160;&#160; export: package=org.drools.runtime; uses:=org.drools</em></p><p><em>&#160;&#160;&#160; export: package=org.drools</em></p><p><em>&#160; org.drools.api [279.0]</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm wondering why both the Drools Core (bundle #284) and Knowledge API (bundle #279) both export the org.drools package?</p><p>This is what seems to be causing the issue.</p><p>The jBPM 5.4.0 jars are supposed to be OSGi-ready so I'm wondering what's wrong (I'm no OSGi dependency management expert).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any help is very welcome!</p><p>Pat.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/793422#793422">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>