<!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;">
    jBPM and OSGi integration
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/annah">annah</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/733337#733337">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 style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm trying to run jBPM and Drools inside an OSGi container on Websphere app server. I have my own bundle which should use services provided by Drools and jBPM bundles.</p><p>I'm using Drools OSGi bundles downloaded from official site (<a class="jive-link-external-small" href="http://www.jboss.org/drools/downloads">http://www.jboss.org/drools/downloads</a>), however two of the jBPM bundles don't get activated: <em>org.jbpm.flow.builder</em> and <em>org.jbpm.bpmn2.</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is the output I get at the console showing that all drools and jbpm activators get started except for flow.builder and bpmn2 :</p><p>[02.05.12. 13:14:46:500 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering compiler services</p><p>[02.05.12. 13:14:46:505 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O compiler services registered</p><p>[02.05.12. 13:14:46:514 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api services</p><p>[02.05.12. 13:14:46:516 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api : org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl@40d31bc : interface org.drools.builder.KnowledgeBuilderFactoryService</p><p>[02.05.12. 13:14:46:516 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O api drools services registered</p><p>[02.05.12. 13:14:46:518 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering core&#160; services</p><p>[02.05.12. 13:14:46:519 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api : org.drools.io.impl.ResourceFactoryServiceImpl@411ebed : interface org.drools.io.ResourceFactoryService</p><p>[02.05.12. 13:14:46:521 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api : org.drools.impl.KnowledgeBaseFactoryServiceImpl@4120ed2 : interface org.drools.KnowledgeBaseFactoryService</p><p>[02.05.12. 13:14:46:522 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api : org.drools.marshalling.impl.MarshallerProviderImpl@41228ea : interface org.drools.marshalling.MarshallerProvider</p><p>[02.05.12. 13:14:46:522 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api : org.drools.marshalling.impl.MarshallerProviderImpl@41228ea : interface org.drools.marshalling.MarshallerProvider</p><p>[02.05.12. 13:14:46:522 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O core services registered</p><p>[02.05.12. 13:14:46:531 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering flow core services</p><p>[02.05.12. 13:14:46:532 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api : org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl@41408f9 : interface org.drools.runtime.process.ProcessRuntimeFactoryService</p><p>[02.05.12. 13:14:46:532 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering compiler : org.jbpm.process.instance.ProcessRuntimeFactoryServiceImpl@41408f9 : interface org.drools.runtime.process.ProcessRuntimeFactoryService</p><p>[02.05.12. 13:14:46:533 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O registering api : org.jbpm.marshalling.impl.ProcessMarshallerFactoryServiceImpl@4143d84 : interface org.drools.marshalling.impl.ProcessMarshallerFactoryService</p><p>[02.05.12. 13:14:46:533 CEST] 00000027 SystemOut&#160;&#160;&#160;&#160; O flow core services registered</p><p>.....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Has someone managed to get jbpm running inside OSGi?</p><p>Am I missing something, are there any other dependencies? These are bundles I added to my OSGi container:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>com.springsource.antlr&#160; 2.7.6&#160;&#160;&#160; </p><p>com.springsource.com.sun.msv.datatype&#160; 0.0.0.20060615&#160;&#160;&#160; </p><p>com.springsource.com.sun.tools.xjc&#160; 2.1.7&#160;&#160;&#160; </p><p>com.springsource.com.sun.xml.bind&#160; 2.1.7&#160;&#160;&#160; </p><p>com.springsource.com.sun.xml.bind.jaxb1&#160; 2.1.7&#160;&#160;&#160; </p><p>com.springsource.com.sun.xml.fastinfoset&#160; 1.2.2&#160;&#160;&#160; </p><p>com.springsource.com.thoughtworks.xstream&#160; 1.3.1&#160;&#160;&#160; </p><p>com.springsource.javax.activation&#160; 1.1.1&#160;&#160;&#160; </p><p>com.springsource.javax.xml.bind&#160; 2.1.7&#160;&#160;&#160; </p><p>com.springsource.javax.xml.stream&#160; 1.0.1&#160;&#160;&#160; </p><p>com.springsource.org.antlr.runtime&#160; 3.1.3&#160;&#160;&#160; </p><p>com.springsource.org.apache.xerces&#160; 2.9.1&#160;&#160;&#160; </p><p>com.springsource.org.apache.xml.resolver&#160; 1.2.0&#160;&#160;&#160; </p><p>com.springsource.org.apache.xmlcommons&#160; 1.3.4&#160;&#160;&#160; </p><p>com.springsource.org.dom4j&#160; 1.6.1&#160;&#160;&#160; </p><p>com.springsource.org.jvnet.staxex&#160; 1.0.0&#160;&#160;&#160; </p><p>com.springsource.org.relaxng.datatype&#160; 1.0.0&#160;&#160;&#160; </p><p>com.springsource.org.xmlpull&#160; 1.1.4.c&#160;&#160;&#160; </p><p>org.drools.api&#160; 5.3.0.Final&#160;&#160;&#160; </p><p>org.drools.compiler&#160; 5.3.0.Final&#160;&#160;&#160; </p><p>org.drools.core&#160; 5.3.0.Final&#160;&#160;&#160; </p><p>org.drools.decisiontables&#160; 5.3.0.Final&#160;&#160;&#160; </p><p>org.jbpm.bpmn2&#160; 5.1.2.Final&#160;&#160;&#160; </p><p>org.jbpm.flow.core&#160; 5.1.2.Final&#160;&#160; </p><p>org.jbpm.flow.builder&#160; 5.1.2.Final&#160; </p><p>org.mvel2&#160; 2.1.0.drools4&#160;&#160;&#160; </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/733337#733337">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>