KK

Kim-'s-Blog.Object-Everything.I'm POJO.

.紀-錄.爲了忘卻的記憶..真的勇士,要敢于直面遇到的問題,敢于正視繁雜的原碼......在實踐中積累!

  BlogJava :: 首页 :: 联系 :: 聚合  :: 管理
  74 Posts :: 1 Stories :: 70 Comments :: 0 Trackbacks

使用Jbpm4.2 集成Spring 出现问题:
  
   2009-11-12 15:49:51,640 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in file [......\WEB-INF\classes\spring\applicationContext-jbpm.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.cfg.SpringConfiguration.buildProcessEngine()] threw exception; nested exception is java.lang.NullPointerException

  Caused by: java.lang.NullPointerException
 at org.jbpm.pvm.internal.cfg.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:177)

 userCommandService 为null

  经调试发现,使用Spring后userCommandService 确实是null,
  配置中缺少什么东西?未知。 文档中并无特殊说明,
 4.1没有出现问题~ 
 应该是4.2的Bug

posted on 2009-11-13 14:45 Kim' 阅读(3544) 评论(1)  编辑  收藏

Feedback

# re: Jbpm 4.2 集成Spring问题 Error creating bean with name 'processEngine' 2009-11-13 16:35 临远
jBPM-4.2集成Spring的方法,请参考这里:
http://www.family168.com/jbpm4/spring-jbpm42.html  回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航:
 
jj