<!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;"> </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;"> </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&displayFullThread=true">https://community.jboss.org/thread/73235?decorator=print&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;"> </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;"> </p><p>Could you pls help here out?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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>  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>    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>  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>        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.2.GA]</em><br/><em>        at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.2.GA]</em><br/><em>        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.1.0.Final]</em><br/><em>        at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.</em><br/><em>2]</em><br/><em>        at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.1.</em><br/><em>0.Final]</em><br/><em>        at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.1.0</em><br/><em>.Final]</em><br/><em>        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>        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>        at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]</em></p><p><em>20:19:50,629 INFO  [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  [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  [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;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>My -ds.xml content:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em><?xml version="1.0" encoding="UTF-8"?></em><br/><em><!DOCTYPE datasources PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"</em><br/><em>                             "<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>"></em></p><p><em><datasources></em><br/><em> <ha-local-tx-datasource></em><br/><em>  <jndi-name>sdp-model-datasource</jndi-name></em><br/><em>  <use-java-context>true</use-java-context></em><br/><em>  <connection-url>jdbc:mysql://localhost:3306/db1|jdbc:mysql://172.25.53.129:3306/db1</connection-url>       </em><br/><em>  <url-delimeter>|</url-delimeter></em><br/><em>  <driver-class>com.mysql.jdbc.Driver</driver-class></em><br/><em>  <connection-property name="autoReconnect">true</connection-property></em><br/><em>  <connection-property name="maxReconnects">10</connection-property></em><br/><em>  <connection-property name="initialTimeout">10</connection-property></em><br/><em>  <user-name>xxxx</user-name> </em><br/><em>  <password>xxxx</password></em><br/><em>  <min-pool-size>1</min-pool-size></em><br/><em>  <max-pool-size>30</max-pool-size></em><br/><em>  <blocking-timeout-millis>60000</blocking-timeout-millis></em><br/><em>  <idle-timeout-minutes>10</idle-timeout-minutes></em><br/><em>  <prepared-statement-cache-size>100</prepared-statement-cache-size></em><br/><em>  <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation></em><br/><em>  <check-valid-connection-sql>select count(*) from user</check-valid-connection-sql>   </em><br/><em>  <metadata></em><br/><em>   <type-mapping>mySQL</type-mapping></em><br/><em>  </metadata></em><br/><em> </ha-local-tx-datasource></em><br/><em></datasources></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>