<!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;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </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     O registering compiler services</p><p>[02.05.12. 13:14:46:505 CEST] 00000027 SystemOut     O compiler services registered</p><p>[02.05.12. 13:14:46:514 CEST] 00000027 SystemOut     O registering api services</p><p>[02.05.12. 13:14:46:516 CEST] 00000027 SystemOut     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     O api drools services registered</p><p>[02.05.12. 13:14:46:518 CEST] 00000027 SystemOut     O registering core  services</p><p>[02.05.12. 13:14:46:519 CEST] 00000027 SystemOut     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     O registering api : org.drools.impl.KnowledgeBaseFactoryServiceImpl@4120ed2 : interface org.drools.KnowledgeBaseFactoryService</p><p>[02.05.12. 13:14:46:522 CEST] 00000027 SystemOut     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     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     O core services registered</p><p>[02.05.12. 13:14:46:531 CEST] 00000027 SystemOut     O registering flow core services</p><p>[02.05.12. 13:14:46:532 CEST] 00000027 SystemOut     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     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     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     O flow core services registered</p><p>.....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </p><p>com.springsource.antlr  2.7.6    </p><p>com.springsource.com.sun.msv.datatype  0.0.0.20060615    </p><p>com.springsource.com.sun.tools.xjc  2.1.7    </p><p>com.springsource.com.sun.xml.bind  2.1.7    </p><p>com.springsource.com.sun.xml.bind.jaxb1  2.1.7    </p><p>com.springsource.com.sun.xml.fastinfoset  1.2.2    </p><p>com.springsource.com.thoughtworks.xstream  1.3.1    </p><p>com.springsource.javax.activation  1.1.1    </p><p>com.springsource.javax.xml.bind  2.1.7    </p><p>com.springsource.javax.xml.stream  1.0.1    </p><p>com.springsource.org.antlr.runtime  3.1.3    </p><p>com.springsource.org.apache.xerces  2.9.1    </p><p>com.springsource.org.apache.xml.resolver  1.2.0    </p><p>com.springsource.org.apache.xmlcommons  1.3.4    </p><p>com.springsource.org.dom4j  1.6.1    </p><p>com.springsource.org.jvnet.staxex  1.0.0    </p><p>com.springsource.org.relaxng.datatype  1.0.0    </p><p>com.springsource.org.xmlpull  1.1.4.c    </p><p>org.drools.api  5.3.0.Final    </p><p>org.drools.compiler  5.3.0.Final    </p><p>org.drools.core  5.3.0.Final    </p><p>org.drools.decisiontables  5.3.0.Final    </p><p>org.jbpm.bpmn2  5.1.2.Final    </p><p>org.jbpm.flow.core  5.1.2.Final   </p><p>org.jbpm.flow.builder  5.1.2.Final  </p><p>org.mvel2  2.1.0.drools4    </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>