<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Could not find datasource: jdbc/jbpm-ds
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/huang882088">xd huang</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/831101#831101">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"></div><p>I am using the data source is btm<br/><span class="hps">jbpm</span> <span class="hps">version is</span> <span class="hps">5.4<br/></span>tomcat6</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Here is my configuration</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>btm-config.properties</strong></p><p><br/>bitronix.tm.serverId=tomcat-btm-node0<br/>bitronix.tm.journal.disk.logPart1Filename=${btm.root}/work/btm1.tlog<br/>bitronix.tm.journal.disk.logPart2Filename=${btm.root}/work/btm2.tlog<br/>bitronix.tm.resource.configuration=D:/apache-tomcat-6.0.37/conf/resources.properties</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>resources.properties</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>resource.ds1.className=bitronix.tm.resource.jdbc.lrc.LrcXADataSource</p><p>resource.ds1.allowLocalTransactions=true</p><p>resource.ds1.uniqueName=jdbc/jbpm-ds</p><p>resource.ds1.minPoolSize=0</p><p>resource.ds1.maxPoolSize=5</p><p>resource.ds1.driverProperties.driverClassName=org.h2.Driver</p><p>resource.ds1.driverProperties.user=sa</p><p>resource.ds1.driverProperties.password=</p><p>resource.ds1.driverProperties.url=jdbc:h2:tcp://localhost/~/jbpm-db</p><p><strong><br/>context.xml<br/></strong> &lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br/> &lt;Transaction factory="bitronix.tm.BitronixUserTransactionObjectFactory" /&gt;<br/> <br/> &lt;Resource name="jdbc/jbpm-ds" auth="Container" type="javax.sql.DataSource"&#160;&#160; <br/> factory="bitronix.tm.resource.ResourceObjectFactory"<br/> uniqueName="jdbc/jbpm-ds" /&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><br/><span class="hps alt-edited"><strong>Logs</strong></span></p><p><span class="hps alt-edited">....................<br/>信息: Mapping collection: org.jbpm.task.Deadline.documentation -&gt; I18NText<br/>2013-8-2 14:08:36 org.hibernate.cfg.AnnotationConfiguration secondPassCompile<br/>信息: Hibernate Validator not found: ignoring<br/>2013-8-2 14:08:36 org.hibernate.cfg.search.HibernateSearchEventListenerRegister enableHibernateSearch<br/>信息: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.<br/>2013-8-2 14:08:36 org.hibernate.util.NamingHelper getInitialContext<br/>信息: JNDI InitialContext properties:{}<br/>2013-8-2 14:08:36 org.hibernate.connection.DatasourceConnectionProvider configure<br/>严重: Could not find datasource: jdbc/jbpm-ds<br/>javax.naming.NameNotFoundException: Name jdbc is not bound in this Context<br/> at org.apache.naming.NamingContext.lookup(NamingContext.java:770)<br/> at org.apache.naming.NamingContext.lookup(NamingContext.java:153)<br/> at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)<br/> at javax.naming.InitialContext.lookup(InitialContext.java:392)<br/> at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)<br/> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)<br/> at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)<br/> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)<br/> at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)<br/> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)<br/> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)<br/> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)<br/> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)<br/> at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)<br/> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)<br/> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)</span></p><p><span class="hps alt-edited">........................<br/><span class="hps">Please help me</span></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/831101#831101">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>