org.hibernate.HibernateException: Could not find datasource org.hibernate.ejb.Ejb3Configuration.buil

getEntityManager org.hibernate.HibernateException: Could not find datasource org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:737) org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:121) javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33) com.payeco.dao.DBUtil.getEntityManagerFactory(DBUtil.java:40) com.payeco.dao.DBUtil.getEntityManager(DBUtil.java:57) com.payeco.dao.DBUtil.getEntityManager(DBUtil.java:47) com.payeco.dao.DBUtil.selectAll(DBUtil.java:350) com.payeco.dao.DictionDAO.selectByParentCode(DictionDAO.java:43) com.payeco.action.ListBusiTypeAction.doPost(ListBusiTypeAction.java:39) com.payeco.action.ListBusiTypeAction.doGet(ListBusiTypeAction.java:33) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) java.lang.Thread.run(Thread.java:595)
08:37:24,709 INFO  [STDOUT] 2012-11-11 08:37:24,709 ERROR [com.payeco.dao.DBUtil] selectAll null com.payeco.dao.DBUtil.selectAll(DBUtil.java:351) com.payeco.dao.DictionDAO.selectByParentCode(DictionDAO.java:43) com.payeco.action.ListBusiTypeAction.doPost(ListBusiTypeAction.java:39) com.payeco.action.ListBusiTypeAction.doGet(ListBusiTypeAction.java:33) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) java.lang.Thread.run(Thread.java:595)
08:37:24,710 INFO  [STDOUT] 2012-11-11 08:37:24,710 INFO  [com.payeco.dao.DBUtil] log sqlend 0 785

 

可能是一些jar包有冲突了!可以打成war包,去掉里面的lib中的jar包,运行试试看

 

 

你可能感兴趣的:(org.hibernate.HibernateException: Could not find datasource org.hibernate.ejb.Ejb3Configuration.buil)