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