[jboss-user] [jBPM] - Re: Tomcat6 + Spring + JBPM5.3 integration

Houssem Salah do-not-reply at jboss.com
Fri Sep 21 07:20:32 EDT 2012


Houssem Salah [https://community.jboss.org/people/soyeur] created the discussion

"Re: Tomcat6 + Spring + JBPM5.3 integration"

To view the discussion, visit: https://community.jboss.org/message/760809#760809

--------------------------------------------------------------
Sorry to respond too late.
Application-context.xml (Spring)
|  | <context:annotation-config /> |
|  | <tx:annotation-driven /> |

|  | <bean:bean id="jbpmEmf" |
|  |  | class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> |

|  |  | <bean:property name="persistenceUnitName" value="org-jbpm-persistence-jpa" /> |
|  | </bean:bean> |

|  | <bean:bean id="jbpmTxManager" |
|  |  | class="org.springframework.orm.jpa.JpaTransactionManager"> |
|  |  | <bean:property name="entityManagerFactory" ref="jbpmEmf" /> |
|  | </bean:bean> |

|  | <bean:bean id="jbpTaskmEmf" |
|  |  | class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> |
|  |  | <bean:property name="persistenceUnitName" value="org-jbpm-task" /> |
|  | </bean:bean> |

|  | <bean:bean id="jbpmTaskTxManager" |
|  |  | class="org.springframework.orm.jpa.JpaTransactionManager"> |
|  |  | <bean:property name="entityManagerFactory" ref="jbpTaskmEmf" /> |
|  | </bean:bean> |
|  |  |
|  | <drools:grid-node id="node1"/> |
|  |  |
|  | <drools:kbase id="kbase1" node="node1"> |

|    | <drools:resources> |

|      | <drools:resource type="BPMN2" source="classpath:Evaluation.bpmn"/> |

|    | </drools:resources> |

|  | </drools:kbase> |



|  | <drools:ksession id="ksession1" type="stateful" kbase="kbase1" node="node1"> |

|    | <drools:configuration> |

|      | <drools:jpa-persistence> |

|        | <drools:transaction-manager ref="jbpmTxManager"/> |

|        | <drools:entity-manager-factory ref="jbpmEmf"/> |

|      | </drools:jpa-persistence> |

|    | </drools:configuration> |

|  | </drools:ksession> |


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

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.RuntimeException: ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null

    at org.drools.container.spring.beans.KnowledgeBaseBeanFactory.afterPropertiesSet(KnowledgeBaseBeanFactory.java:121)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
    ... 36 more
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/760809#760809]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120921/f55476e9/attachment-0001.html 


More information about the jboss-user mailing list