<!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;">
    DEPLOYMENTS MISSING DEPENDENCIES
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/kopela">Roxana Quiroga Sollinger</a> in <i>Datasource Configuration</i> - <a href="http://community.jboss.org/message/581669#581669">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="font-family: courier new,courier;">Hello,</span></p><p><span style="font-family: courier new,courier;">&#160; </span></p><p><span style="font-family: courier new,courier;">Can anyone help me out with the following issue?&#160; I'm working with:</span></p><p><span style="font-family: courier new,courier;">- JBoss AS 6 Final </span></p><p><span style="font-family: courier new,courier;"><br/></span><span style="font-family: courier new,courier;">When I run the application I'm getting the following error:</span></p><p><span style="font-family: courier new,courier;">DEPLOYMENTS MISSING DEPENDENCIES:</span></p><p><span style="font-family: courier new,courier;">&#160; Deployment "jboss-switchboard:appName=wsrgiva,module=wsrgiva" is missing the following dependencies:</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; Dependency "jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding" (should be in state "Installed", but is actually</span></p><p><span style="font-family: courier new,courier;"> in state "** NOT FOUND Depends on 'jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding',whenRequired=MapControllerSt</span></p><p><span style="font-family: courier new,courier;">ateModel$ControllerStateWrapper@1ab5957{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@1ab5957{Installed} **")</span></p><p><span style="font-family: courier new,courier;">&#160; Deployment "jboss.web.deployment:war=/wsrgiva" is missing the following dependencies:</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; Dependency "jboss-switchboard:appName=wsrgiva,module=wsrgiva" (should be in state "Installed", but is actually in state "Deploy")</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier;">DEPLOYMENTS IN ERROR:</span></p><p><span style="font-family: courier new,courier;">&#160; Deployment "jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding" is in error due to the following reason(s): ** NOT</span></p><p><span style="font-family: courier new,courier;"> FOUND Depends on 'jboss.jca:name=internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva,service=DataSourceBinding',whenRequired=MapControllerStateModel$Controll</span></p><p><span style="font-family: courier new,courier;">erStateWrapper@1ab5957{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@1ab5957{Installed} **</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:732) [:1.7.0-ea]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier;">The error is correct because I didn't define the datasource as "</span><span style="font-family: courier new,courier;">internal/wsrgiva/wsrgiva/env/jdbc/wsrgiva", but I do not&#160; understand why I'm getting this datasource when it should be another.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier;">The configuration regarding the datasource is the following:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier;">Inside the web.xml I added:</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;resource-ref&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;description&gt;datasource&lt;/description&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-ref-name&gt;oracleDS&lt;/res-ref-name&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-auth&gt;Application&lt;/res-auth&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;/resource-ref&gt;</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><span style="font-family: courier new,courier;">Inside the jboss-web.xml I added:</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;resource-ref&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-ref-name&gt;oracleDS&lt;/res-ref-name&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;jndi-name&gt;java:jdbc/oracle&lt;/jndi-name&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;/resource-ref&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: courier new,courier;"> </span>&#160;</p><p><span style="font-family: courier new,courier;">In $JBOSS_HOME/server/default/deploy I add the oracle-ds.xml with the following configuration: <br/></span></p><p><span style="font-family: courier new,courier;">&lt;datasources&gt;</span></p><p><span style="font-family: courier new,courier;">&#160; &lt;local-tx-datasource&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;jndi-name&gt;jdbc/oracle&lt;/jndi-name&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;connection-url&gt;jdbc:oracle:thin:@99.99.99.95:1521:TEST&lt;/connection-url&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;driver-class&gt;oracle.jdbc.driver.OracleDriver&lt;/driver-class&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;user-name&gt;XXXX&lt;/user-name&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;password&gt;XXXX&lt;/password&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;exception-sorter-class-name&gt;org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter&lt;/exception-sorter-class-name&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;metadata&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160;&#160;&#160;&#160; &lt;type-mapping&gt;Oracle9i&lt;/type-mapping&gt;</span></p><p><span style="font-family: courier new,courier;">&#160;&#160;&#160; &lt;/metadata&gt;</span></p><p><span style="font-family: courier new,courier;">&#160; &lt;/local-tx-datasource&gt; </span></p><p><span style="font-family: courier new,courier;">&lt;/datasources&gt;</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><span style="font-family: courier new,courier;">The error says that the dependency "</span><span style="font-family: courier new,courier;">jboss.jca:name=internal/oracle/oracle/env/jdbc/oracle,service=DataSourceBinding" is not found which is correct because when the AS starts I get the following lines:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier;">16:14:46,218 INFO&#160; [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=jdbc/oracle' to JNDI name 'j</span><span style="font-family: courier new,courier;">ava:jdbc/oracle'</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-family: courier new,courier;">If anyone can help me out, I kindly appreciate it.<br/></span></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/581669#581669">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>