JBoss Community

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

created by 星兰 蒋 in jBPM - View the full discussion

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)

Reply to this message by going to Community

Start a new discussion in jBPM at Community