<!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;">
    Re: Tomcat6 + Spring + JBPM5.3 integration
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/soyeur">Houssem Salah</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/760809#760809">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Sorry to respond too late.</p><p>Application-context.xml (Spring)</p><table><tbody><tr><td style=";"></td><td style=";">&lt;context:annotation-config /&gt;</td></tr><tr><td style=";"></td><td style=";">&lt;tx:annotation-driven /&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";">&lt;bean:bean id="jbpmEmf"</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";"></td><td style=";">&lt;bean:property name="persistenceUnitName" value="org-jbpm-persistence-jpa" /&gt;</td></tr><tr><td style=";"></td><td style=";">&lt;/bean:bean&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";">&lt;bean:bean id="jbpmTxManager"</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">class="org.springframework.orm.jpa.JpaTransactionManager"&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">&lt;bean:property name="entityManagerFactory" ref="jbpmEmf" /&gt;</td></tr><tr><td style=";"></td><td style=";">&lt;/bean:bean&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";">&lt;bean:bean id="jbpTaskmEmf"</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">&lt;bean:property name="persistenceUnitName" value="org-jbpm-task" /&gt;</td></tr><tr><td style=";"></td><td style=";">&lt;/bean:bean&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";">&lt;bean:bean id="jbpmTaskTxManager"</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">class="org.springframework.orm.jpa.JpaTransactionManager"&gt;</td></tr><tr><td style=";"></td><td style=";"></td><td style=";">&lt;bean:property name="entityManagerFactory" ref="jbpTaskmEmf" /&gt;</td></tr><tr><td style=";"></td><td style=";">&lt;/bean:bean&gt;</td></tr><tr><td style=";"></td><td style=";"></td></tr><tr><td style=";"></td><td style=";">&lt;drools:grid-node id="node1"/&gt;</td></tr><tr><td style=";"></td><td style=";"></td></tr><tr><td style=";"></td><td style=";">&lt;drools:kbase id="kbase1" node="node1"&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160; </td><td style=";">&lt;drools:resources&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160;&#160;&#160; </td><td style=";">&lt;drools:resource type="BPMN2" source="classpath:Evaluation.bpmn"/&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160; </td><td style=";">&lt;/drools:resources&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";">&lt;/drools:kbase&gt;</td></tr></tbody></table><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><table><tbody><tr><td style=";"></td><td style=";">&lt;drools:ksession id="ksession1" type="stateful" kbase="kbase1" node="node1"&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160; </td><td style=";">&lt;drools:configuration&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160;&#160;&#160; </td><td style=";">&lt;drools:jpa-persistence&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160;&#160;&#160;&#160;&#160; </td><td style=";">&lt;drools:transaction-manager ref="jbpmTxManager"/&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160;&#160;&#160;&#160;&#160; </td><td style=";">&lt;drools:entity-manager-factory ref="jbpmEmf"/&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160;&#160;&#160; </td><td style=";">&lt;/drools:jpa-persistence&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";">&#160; </td><td style=";">&lt;/drools:configuration&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><table><tbody><tr><td style=";"></td><td style=";">&lt;/drools:ksession&gt;</td></tr></tbody></table><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kbase1': Invocation of init method failed; nested exception is java.lang.RuntimeException: ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)</p><p>&#160;&#160;&#160; at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)</p><p>&#160;&#160;&#160; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)</p><p>&#160;&#160;&#160; at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)</p><p>&#160;&#160;&#160; at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)</p><p>&#160;&#160;&#160; at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)</p><p>&#160;&#160;&#160; at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardService.start(StandardService.java:525)</p><p>&#160;&#160;&#160; at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.Catalina.start(Catalina.java:595)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p><p>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</p><p>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</p><p>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:601)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)</p><p>&#160;&#160;&#160; at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)</p><p>Caused by: java.lang.RuntimeException: ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; at org.drools.container.spring.beans.KnowledgeBaseBeanFactory.afterPropertiesSet(KnowledgeBaseBeanFactory.java:121)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)</p><p>&#160;&#160;&#160; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)</p><p>&#160;&#160;&#160; ... 36 more</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/760809#760809">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>