xd huang [https://community.jboss.org/people/huang882088] created the discussion
"Re: Could not find datasource: jdbc/jbpm-ds" To view the discussion, visit: https://community.jboss.org/message/831101#831101 -------------------------------------------------------------- I am using the data source is btm jbpm version is 5.4 tomcat6 Here is my configuration *btm-config.properties* bitronix.tm.serverId=tomcat-btm-node0 bitronix.tm.journal.disk.logPart1Filename=${btm.root}/work/btm1.tlog bitronix.tm.journal.disk.logPart2Filename=${btm.root}/work/btm2.tlog bitronix.tm.resource.configuration=D:/apache-tomcat-6.0.37/conf/resources.properties *resources.properties* resource.ds1.className=bitronix.tm.resource.jdbc.lrc.LrcXADataSource resource.ds1.allowLocalTransactions=true resource.ds1.uniqueName=jdbc/jbpm-ds resource.ds1.minPoolSize=0 resource.ds1.maxPoolSize=5 resource.ds1.driverProperties.driverClassName=org.h2.Driver resource.ds1.driverProperties.user=sa resource.ds1.driverProperties.password= resource.ds1.driverProperties.url=jdbc:h2:tcp://localhost/~/jbpm-db * context.xml * <WatchedResource>WEB-INF/web.xml</WatchedResource> <Transaction factory="bitronix.tm.BitronixUserTransactionObjectFactory" /> <Resource name="jdbc/jbpm-ds" auth="Container" type="javax.sql.DataSource" factory="bitronix.tm.resource.ResourceObjectFactory" uniqueName="jdbc/jbpm-ds" /> *Logs* .................... 信息: Mapping collection: org.jbpm.task.Deadline.documentation -> I18NText 2013-8-2 14:08:36 org.hibernate.cfg.AnnotationConfiguration secondPassCompile 信息: Hibernate Validator not found: ignoring 2013-8-2 14:08:36 org.hibernate.cfg.search.HibernateSearchEventListenerRegister enableHibernateSearch 信息: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled. 2013-8-2 14:08:36 org.hibernate.util.NamingHelper getInitialContext 信息: JNDI InitialContext properties:{} 2013-8-2 14:08:36 org.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(InitialContext.java:392) 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) ........................ Please help me -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/831101#831101] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user