0 Replies Latest reply on Sep 22, 2006 3:20 AM by gao jr

    when i run jbpm3.1.1 with spring ,it  throw the exception

    gao jr Newbie

      when i run jbpm3.1.1 with spring ,it throw the exception:

      as below:

      Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean wit
      h name 'jbpmConfiguration' defined in ServletContext resource [/WEB-INF/applicat
      ionContext.xml]: Initialization of bean failed; nested exception is org.hibernat
      e.MappingException: Unknown entity: org.jbpm.context.def.VariableAccess
      org.hibernate.MappingException: Unknown entity: org.jbpm.context.def.VariableAcc
      ess
      at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFacto
      ryImpl.java:610)
      at org.hibernate.impl.SessionFactoryImpl.evict(SessionFactoryImpl.java:9
      04)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.springframework.orm.hibernate3.LocalSessionFactoryBean$Transactio
      nAwareInvocationHandler.invoke(LocalSessionFactoryBean.java:1081)
      at $Proxy1.evict(Unknown Source)
      at org.jbpm.db.hibernate.HibernateHelper.clearHibernateCache(HibernateHe
      lper.java:129)
      at org.jbpm.persistence.db.DbPersistenceServiceFactory.createSchema(DbPe
      rsistenceServiceFactory.java:108)
      at org.jbpm.JbpmConfiguration.createSchema(JbpmConfiguration.java:404)
      at org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean.a
      fterPropertiesSet(LocalJbpmConfigurationFactoryBean.java:136)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBean
      Factory.createBean(AbstractAutowireCapableBeanFactory.java:396)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:233)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
      (AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.
      preInstantiateSingletons(DefaultListableBeanFactory.java:277)
      at org.springframework.context.support.AbstractApplicationContext.refres
      h(AbstractApplicationContext.java:313)
      at org.springframework.web.context.support.AbstractRefreshableWebApplica
      tionContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
      at org.springframework.web.context.ContextLoader.createWebApplicationCon
      text(ContextLoader.java:246)
      at org.springframework.web.context.ContextLoader.initWebApplicationConte
      xt(ContextLoader.java:184)
      at org.springframework.web.context.ContextLoaderListener.contextInitiali
      zed(ContextLoaderListener.java:49)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
      t.java:3827)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
      343)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:823)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)

      at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDe
      ployer.java:903)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
      a:216)
      at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
      at org.apache.commons.digester.Rule.end(Rule.java:276)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
      at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester
      .java:76)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
      )
      at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
      own Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Sourc
      e)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
      t(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
      ootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.commons.digester.Digester.parse(Digester.java:1567)
      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
      loyer.java:488)
      at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
      at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
      ava:483)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427
      )
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
      :349)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:119)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
      )
      at org.apache.catalina.core.StandardService.start(StandardService.java:4
      80)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:231
      3)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
      2006-9-22 15:12:37 org.apache.catalina.core.StandardContext start
      ??: Error listenerStart
      2006-9-22 15:12:37 org.apache.catalina.core.StandardContext start
      ??: Context startup failed due to previous errors
      2006-9-22 15:12:38 org.hibernate.connection.DriverManagerConnectionProvider clos
      e