3 Replies Latest reply on Dec 5, 2012 9:21 AM by 星兰 蒋

    I got a NameNotFoundException when i want to createEntityManagerFactory ,What's wrong?

    星兰 蒋 Newbie

      0    05/12 16:45:38,194[http-8080-2] ERROR hibernate.connection.DatasourceConnectionProvider.configure  - Could not find datasource: jdbc/jbpm-ds

      javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

      at org.apache.naming.NamingContext.lookup(NamingContext.java:770)

      at org.apache.naming.NamingContext.lookup(NamingContext.java:153)

      at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)

      at javax.naming.InitialContext.lookup(Unknown Source)

      at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)

      at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)

      at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)

      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)

      at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)

      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)

      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)

      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)

      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)

      at com.sogou.ka.jbpm.impl.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:54)

      at com.sogou.ka.jbpm.impl.CommandDelegate.getSession(CommandDelegate.java:116)

      at com.sogou.ka.jbpm.impl.CommandDelegate.getProcess(CommandDelegate.java:134)

      at com.sogou.ka.jbpm.impl.ProcessManagementImpl.getProcessDefinition(ProcessManagementImpl.java:46)

      at com.sogou.ka.service.impl.ContractServiceImpl.newContractService(ContractServiceImpl.java:34)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)

      at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)

      at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)

      at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)

      at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)

      at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)

      at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

      at java.lang.Thread.run(Unknown Source)

        • 1. Re: I got a NameNotFoundException when i want to createEntityManagerFactory ,What's wrong?
          Ashok Kuppuswamy Newbie

          Are you using spring.

           

          If you are using spring, I did the following to get it working. I think by-passed the jndi lookup by explicitly setting the dataSource for org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean

           

          My spring context xml:

           

          <?xml version="1.0" encoding="UTF-8"?>

           

           

          <beans xmlns="http://www.springframework.org/schema/beans"

                 xmlns:context="http://www.springframework.org/schema/context"

                 xmlns:tx="http://www.springframework.org/schema/tx"

                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                 xmlns:jbpm="http://drools.org/schema/drools-spring"

                 xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd

                                     http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd

                                     http://www.springframework.org/schema/tx      http://www.springframework.org/schema/tx/spring-tx-3.0.xsd

                                     http://drools.org/schema/drools-spring file:///C:/akuppu/development/juno/workspace/VBT2-trunk/src/config/drools-spring.xsd">

                                   

            <bean id="jbpmEMF" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" depends-on="btmConfig">

              <property name="persistenceUnitName" value="org.jbpm.persistence.jta"/>

              <property name="dataSource" ref="dataSource"/>

              <property name="persistenceXmlLocation">

                          <value>classpath:jbpm-custom-persistence.xml</value>

                       </property>

                       <!-- <property name="jpaVendorAdapter">

                                <bean class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter">

                                          <property name="databasePlatform" value="org.apache.openjpa.jdbc.sql.H2Dictionary" />

                                </bean>

                     </property>  -->

            </bean>

           

           

            <bean id="btmConfig" factory-method="getConfiguration" class="bitronix.tm.TransactionManagerServices">

                      <property name="serverId" value="spring-btm" />

              <property name="journal" value="null" />

            </bean>

           

           

            <bean id="BitronixTransactionManager" factory-method="getTransactionManager"

                  class="bitronix.tm.TransactionManagerServices" depends-on="btmConfig,dataSource" destroy-method="shutdown" />

           

           

            <bean id="jbpmTxManager" class="org.springframework.transaction.jta.JtaTransactionManager">

              <property name="transactionManager" ref="BitronixTransactionManager" />

              <property name="userTransaction" ref="BitronixTransactionManager" />

            </bean>

           

           

            <jbpm:kbase id="kbase">

              <jbpm:resources>

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

              </jbpm:resources>

            </jbpm:kbase>

           

           

            <jbpm:ksession id="ksession" type="stateful" kbase="kbase">

                      <jbpm:configuration>

                          <jbpm:jpa-persistence>

                            <jbpm:transaction-manager ref="jbpmTxManager"/>

                            <jbpm:entity-manager-factory ref="jbpmEMF"/>

                          </jbpm:jpa-persistence>

                      </jbpm:configuration>

            </jbpm:ksession>

           

           

            <bean id="dataSource" class="bitronix.tm.resource.jdbc.PoolingDataSource"

                        init-method="init" destroy-method="close" >

                        <property name="className" value="bitronix.tm.resource.jdbc.lrc.LrcXADataSource" />

                        <property name="uniqueName" value="jdbc/jbpm-ds" />

                        <property name="minPoolSize" value="1" />

                        <property name="maxPoolSize" value="3" />

                        <property name="allowLocalTransactions" value="true" />

                        <property name="driverProperties">

                                  <props>

                                            <prop key="driverClassName">org.h2.Driver</prop>

                                            <prop key="url">jdbc:h2:tcp://localhost/jbpm;DB_CLOSE_DELAY=1000</prop>

                                            <prop key="user">sa</prop>

                                            <prop key="password"></prop>

                                  </props>

                        </property>

            </bean>

           

          My jbpm-custom-persistence.xml

           

          <persistence xmlns="http://java.sun.com/xml/ns/persistence"

                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"

                    version="1.0">

                    <persistence-unit name="org.jbpm.persistence.jta"

                              transaction-type="JTA">

           

           

                              <provider>org.hibernate.ejb.HibernatePersistence</provider>

           

           

                              <!-- <jta-data-source>jdbc/jbpm-ds</jta-data-source> -->

           

           

                              <!-- Use this if you are using JPA1 / Hibernate3 -->

           

           

                              <mapping-file>META-INF/JBPMorm.xml</mapping-file>

           

           

                              <mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>

           

           

                              <!-- Use this if you are using JPA2 / Hibernate4 -->

           

           

                              <!--mapping-file>META-INF/JBPMorm-JPA2.xml</mapping-file -->

           

           

           

           

           

           

                              <class>org.drools.persistence.info.SessionInfo</class>

           

           

                              <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

           

           

                              <class>org.drools.persistence.info.WorkItemInfo</class>

           

           

           

           

           

           

                              <class>org.jbpm.process.audit.ProcessInstanceLog</class>

           

           

                              <class>org.jbpm.process.audit.NodeInstanceLog</class>

           

           

                              <class>org.jbpm.process.audit.VariableInstanceLog</class>

           

           

           

           

           

           

                              <properties>

           

           

                                        <property name="hibernate.max_fetch_depth" value="3" />

           

           

                                        <property name="hibernate.hbm2ddl.auto" value="update" />

           

           

                                        <property name="hibernate.show_sql" value="false" />

           

           

                                        <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />

           

           

                                        <property name="hibernate.transaction.manager_lookup_class"

                                                  value="org.hibernate.transaction.BTMTransactionManagerLookup" />

           

           

                              </properties>

                    </persistence-unit>

          </persistence>

          • 2. Re: I got a NameNotFoundException when i want to createEntityManagerFactory ,What's wrong?
            星兰 蒋 Newbie

            Hi Ashok,

             

            Thank you very much for your reply.

             

            Yes , i'm using spring. But this time it show the follow Exceptions while i start the container.

             

             

             

            05/12 21:21:19,259[main] ERROR tool.hbm2ddl.SchemaExport.execute  - schema export unsuccessful
            java.sql.SQLException: error enlisting a JdbcConnectionHandle of a JdbcPooledConnection from datasource jdbc/jbpm-ds in state ACCESSIBLE with usage count 1 wrapping a JDBC LrcXAConnection on com.mysql.jdbc.Connection@53e20a9a on a JDBC LrcConnectionHandle on a JDBC LrcXAResource in state NO_TX
            at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:86)
            at bitronix.tm.resource.jdbc.JdbcConnectionHandle.createStatement(JdbcConnectionHandle.java:187)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at bitronix.tm.resource.jdbc.BaseProxyHandlerClass.invoke(BaseProxyHandlerClass.java:63)
            at $Proxy15.createStatement(Unknown Source)
            at org.hibernate.tool.hbm2ddl.SchemaExport.execute(SchemaExport.java:254)
            at org.hibernate.tool.hbm2ddl.SchemaExport.create(SchemaExport.java:211)
            at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:353)
            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
            at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
            at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
            at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:224)
            at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:291)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
            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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
            at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
            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:585)
            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.createWebApplicationContext(ContextLoader.java:255)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
            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.deployDescriptor(HostConfig.java:675)
            at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
            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(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
            Caused by: bitronix.tm.internal.BitronixSystemException: resource 'jdbc/jbpm-ds' cannot be used outside XA transaction scope. Set allowLocalTransactions to true if you want to allow this and you know your resource supports this.
            at bitronix.tm.resource.common.TransactionContextHelper.enlistInCurrentTransaction(TransactionContextHelper.java:79)
            at bitronix.tm.resource.jdbc.JdbcConnectionHandle.enlistResource(JdbcConnectionHandle.java:84)
            ... 64 more
            28   05/12 21:21:19,287[main] ERROR web.context.ContextLoader.initWebApplicationContext  - Context initialization failed
            org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo' to required type 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean' for property 'jbpmEMF'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo] to required type [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] for property 'jbpmEMF': no matching editors or conversion strategy found
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
            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:585)
            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.createWebApplicationContext(ContextLoader.java:255)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
            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.deployDescriptor(HostConfig.java:675)
            at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
            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(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
            Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo' to required type 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean' for property 'jbpmEMF'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo] to required type [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] for property 'jbpmEMF': no matching editors or conversion strategy found
            at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485)
            at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
            at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
            ... 35 more
            Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo] to required type [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] for property 'jbpmEMF': no matching editors or conversion strategy found
            at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241)
            at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)
            ... 41 more
            2012-12-5 21:21:19 org.apache.catalina.core.StandardContext listenerStart
            严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
            org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'delegate' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo' to required type 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean' for property 'jbpmEMF'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo] to required type [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] for property 'jbpmEMF': no matching editors or conversion strategy found
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
            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:585)
            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.createWebApplicationContext(ContextLoader.java:255)
            at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
            at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
            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.deployDescriptor(HostConfig.java:675)
            at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
            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(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
            Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type '$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo' to required type 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean' for property 'jbpmEMF'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo] to required type [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] for property 'jbpmEMF': no matching editors or conversion strategy found
            at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485)
            at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
            at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
            ... 35 more
            Caused by: java.lang.IllegalStateException: Cannot convert value of type [$Proxy16 implementing org.hibernate.ejb.HibernateEntityManagerFactory,org.springframework.orm.jpa.EntityManagerFactoryInfo] to required type [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] for property 'jbpmEMF': no matching editors or conversion strategy found
            at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241)
            at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)