<!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;">
    Not able to configure ha-local-tx-datasource
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/lomesh">Lomesh Contractor</a> in <i>Datasource Configuration</i> - <a href="https://community.jboss.org/message/728046#728046">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to configure ha-local-tx-datasource with JBoss 6.1.0 on my dev environment. But, I am facing below issues:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>1. I could not find any ha*.rar files in the JBoss installation</p><p>2. I followed all the steps given at <a class="" href="https://community.jboss.org/thread/73235?decorator=print&amp;displayFullThread=true">https://community.jboss.org/thread/73235?decorator=print&amp;displayFullThread=true</a> and <a class="jive-link-external-small" href="http://docs.jboss.org/jbossas/6/JCA_Guide/en-US/html_single/">http://docs.jboss.org/jbossas/6/JCA_Guide/en-US/html_single/</a> But no luck.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am getting below mentioned exception on JBoss console, which says my datasource (sdp-model-datasource) is not available. I used JMX console and looked in JNDI tree for datasource, but could not find it. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Could you pls help here out?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>20:19:50,508 ERROR [ProfileServiceBootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary</em><br/><em>of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):</em></p><p><em>DEPLOYMENTS MISSING DEPENDENCIES:</em><br/><em>&#160; Deployment "persistence.unit:unitName=sdp-model-ear-2.0.1.1.ear/sdp-model-entities-2.0.1.1.jar#sdp-model" is missing the following depende</em><br/><em>ncies:</em><br/><em>&#160;&#160;&#160; Dependency "jboss.jca:name=sdp-model-datasource,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NO</em><br/><em>T FOUND Depends on 'jboss.jca:name=sdp-model-datasource,service=DataSourceBinding' **")</em></p><p><em>DEPLOYMENTS IN ERROR:</em><br/><em>&#160; Deployment "jboss.jca:name=sdp-model-datasource,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depend</em><br/><em>s on 'jboss.jca:name=sdp-model-datasource,service=DataSourceBinding' **</em></p><p><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.2.GA]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.2.GA]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.1.0.Final]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.</em><br/><em>2]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.1.</em><br/><em>0.Final]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0</em><br/><em>.Final]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0</em><br/><em>-alpha-6]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2</em><br/><em>.1.0-alpha-6]</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]</em></p><p><em>20:19:50,629 INFO&#160; [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080</em><br/><em>20:19:50,639 INFO&#160; [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009</em><br/><em>20:19:50,642 INFO&#160; [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.1.0.Final "Neo"] Started in 1m:4s:875ms</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My -ds.xml content:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><em>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</em><br/><em>&lt;!DOCTYPE datasources PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"</em><br/><em>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; "<a class="jive-link-external-small" href="http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd</a>"&gt;</em></p><p><em>&lt;datasources&gt;</em><br/><em> &lt;ha-local-tx-datasource&gt;</em><br/><em>&#160; &lt;jndi-name&gt;sdp-model-datasource&lt;/jndi-name&gt;</em><br/><em>&#160; &lt;use-java-context&gt;true&lt;/use-java-context&gt;</em><br/><em>&#160; &lt;connection-url&gt;jdbc:mysql://localhost:3306/db1|jdbc:mysql://172.25.53.129:3306/db1&lt;/connection-url&gt;&#160;&#160;&#160;&#160;&#160;&#160; </em><br/><em>&#160; &lt;url-delimeter&gt;|&lt;/url-delimeter&gt;</em><br/><em>&#160; &lt;driver-class&gt;com.mysql.jdbc.Driver&lt;/driver-class&gt;</em><br/><em>&#160; &lt;connection-property name="autoReconnect"&gt;true&lt;/connection-property&gt;</em><br/><em>&#160; &lt;connection-property name="maxReconnects"&gt;10&lt;/connection-property&gt;</em><br/><em>&#160; &lt;connection-property name="initialTimeout"&gt;10&lt;/connection-property&gt;</em><br/><em>&#160; &lt;user-name&gt;xxxx&lt;/user-name&gt; </em><br/><em>&#160; &lt;password&gt;xxxx&lt;/password&gt;</em><br/><em>&#160; &lt;min-pool-size&gt;1&lt;/min-pool-size&gt;</em><br/><em>&#160; &lt;max-pool-size&gt;30&lt;/max-pool-size&gt;</em><br/><em>&#160; &lt;blocking-timeout-millis&gt;60000&lt;/blocking-timeout-millis&gt;</em><br/><em>&#160; &lt;idle-timeout-minutes&gt;10&lt;/idle-timeout-minutes&gt;</em><br/><em>&#160; &lt;prepared-statement-cache-size&gt;100&lt;/prepared-statement-cache-size&gt;</em><br/><em>&#160; &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;</em><br/><em>&#160; &lt;check-valid-connection-sql&gt;select count(*) from user&lt;/check-valid-connection-sql&gt;&#160;&#160; </em><br/><em>&#160; &lt;metadata&gt;</em><br/><em>&#160;&#160; &lt;type-mapping&gt;mySQL&lt;/type-mapping&gt;</em><br/><em>&#160; &lt;/metadata&gt;</em><br/><em> &lt;/ha-local-tx-datasource&gt;</em><br/><em>&lt;/datasources&gt;</em> </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/728046#728046">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>