<!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="http://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;">
    You have not defined a jta-data-source for a JTA enabled persistence
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/lurker_huang">lurker_huang</a> in <i>Datasource Configuration</i> - <a href="http://community.jboss.org/message/598870#598870">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>When i deploy my Ejb on JBOSS6.0Final,it appear the follow exception:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>DEPLOYMENTS MISSING DEPENDENCIES:</p><p>&#160; Deployment "jboss.j2ee:jar=RAEjb.jar,name=HelloWorldBean,service=EJB3_endpoint" is missing the following dependencies:</p><p>&#160;&#160;&#160; Dependency "jboss.j2ee:jar=RAEjb.jar,name=HelloWorldBean,service=EJB3" (should be in state "Installed", but is actually in state "**ERROR**")</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>DEPLOYMENTS IN ERROR:</p><p>&#160; Deployment "persistence.unit:unitName=RAEjb.jar#RAEjb" is in error due to the following reason(s): java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named: RAEjb</p><p>&#160; Deployment "jboss.j2ee:jar=RAEjb.jar,name=HelloWorldBean,service=EJB3" is in error due to the following reason(s): org.jboss.ejb3.common.registrar.spi.DuplicateBindException: Cannot install org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionRemoteProxyFactory@12245e0 under name "ProxyFactory/RAEjb/HelloWorldBean/HelloWorldBean" as there is already an existing object there: org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionRemoteProxyFactory@3c5759, **ERROR**</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160; at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]</p><p>&#160;&#160;&#160; at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]</p><p>&#160;&#160;&#160; at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]</p><p>&#160;&#160;&#160; at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]</p><p>&#160;&#160;&#160; at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]</p><p>&#160;&#160;&#160; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_05]</p><p>&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:619) [:1.6.0_05]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>this my xml of datasource</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-xml">
<span class="jive-xml-tag">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</span>

<span class="jive-xml-tag">&lt;datasources&gt;</span>

&#160;&#160;&#160; <span class="jive-xml-tag">&lt;local-tx-datasource&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;jndi-name&gt;</span>RaOracleDs<span class="jive-xml-tag">&lt;/jndi-name&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;use-java-context&gt;</span>false<span class="jive-xml-tag">&lt;/use-java-context&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;connection-url&gt;</span>jdbc:oracle:thin:@132.35.81.59:1521:essdemo<span class="jive-xml-tag">&lt;/connection-url&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;driver-class&gt;</span>oracle.jdbc.driver.OracleDriver<span class="jive-xml-tag">&lt;/driver-class&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;user-name&gt;</span>top_sysmanm<span class="jive-xml-tag">&lt;/user-name&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;password&gt;</span>topsysmanm<span class="jive-xml-tag">&lt;/password&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;check-valid-connection-sql&gt;</span>SELECT 1 FROM DUAL<span class="jive-xml-tag">&lt;/check-valid-connection-sql&gt;</span>

&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;exception-sorter-class-name&gt;</span>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter<span class="jive-xml-tag">&lt;/exception-sorter-class-name&gt;</span>

&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;metadata&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;type-mapping&gt;</span>Oracle<span class="jive-xml-tag">&lt;/type-mapping&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/metadata&gt;</span>

&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;use-java-context&gt;</span>false<span class="jive-xml-tag">&lt;/use-java-context&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;min-pool-size&gt;</span>50<span class="jive-xml-tag">&lt;/min-pool-size&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;max-pool-size&gt;</span>200<span class="jive-xml-tag">&lt;/max-pool-size&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;blocking-timeout-millis&gt;</span>5000<span class="jive-xml-tag">&lt;/blocking-timeout-millis&gt;</span>
&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span class="jive-xml-tag">&lt;idle-timeout-minutes&gt;</span>2<span class="jive-xml-tag">&lt;/idle-timeout-minutes&gt;</span>
&#160;&#160;&#160; <span class="jive-xml-tag">&lt;/local-tx-datasource&gt;</span>

<span class="jive-xml-tag">&lt;/datasources&gt;</span> 

</code></pre><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="http://community.jboss.org/message/598870#598870">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="http://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>