<!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;">  </span></p><p><span style="font-family: courier new,courier;">Can anyone help me out with the following issue?  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;">  Deployment "jboss-switchboard:appName=wsrgiva,module=wsrgiva" is missing the following dependencies:</span></p><p><span style="font-family: courier new,courier;">    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;">  Deployment "jboss.web.deployment:war=/wsrgiva" is missing the following dependencies:</span></p><p><span style="font-family: courier new,courier;">    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;"> </p><p><span style="font-family: courier new,courier;">DEPLOYMENTS IN ERROR:</span></p><p><span style="font-family: courier new,courier;">  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;"> </p><p><span style="font-family: courier new,courier;">    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;">    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;">    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;">    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]</span></p><p><span style="font-family: courier new,courier;">    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;">    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;">    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;">    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;">    at java.lang.Thread.run(Thread.java:732) [:1.7.0-ea]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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  understand why I'm getting this datasource when it should be another.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </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;">    <resource-ref></span></p><p><span style="font-family: courier new,courier;">        <description>datasource</description></span></p><p><span style="font-family: courier new,courier;">        <res-ref-name>oracleDS</res-ref-name></span></p><p><span style="font-family: courier new,courier;">        <res-type>javax.sql.DataSource</res-type></span></p><p><span style="font-family: courier new,courier;">        <res-auth>Application</res-auth></span></p><p><span style="font-family: courier new,courier;">    </resource-ref></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;">    <resource-ref></span></p><p><span style="font-family: courier new,courier;">        <res-ref-name>oracleDS</res-ref-name></span></p><p><span style="font-family: courier new,courier;">        <res-type>javax.sql.DataSource</res-type></span></p><p><span style="font-family: courier new,courier;">        <jndi-name>java:jdbc/oracle</jndi-name></span></p><p><span style="font-family: courier new,courier;">    </resource-ref></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: courier new,courier;"> </span> </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;"><datasources></span></p><p><span style="font-family: courier new,courier;">  <local-tx-datasource></span></p><p><span style="font-family: courier new,courier;">    <jndi-name>jdbc/oracle</jndi-name></span></p><p><span style="font-family: courier new,courier;">    <connection-url>jdbc:oracle:thin:@99.99.99.95:1521:TEST</connection-url></span></p><p><span style="font-family: courier new,courier;">    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class></span></p><p><span style="font-family: courier new,courier;">    <user-name>XXXX</user-name></span></p><p><span style="font-family: courier new,courier;">    <password>XXXX</password></span></p><p><span style="font-family: courier new,courier;">    <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name></span></p><p><span style="font-family: courier new,courier;">    <metadata></span></p><p><span style="font-family: courier new,courier;">       <type-mapping>Oracle9i</type-mapping></span></p><p><span style="font-family: courier new,courier;">    </metadata></span></p><p><span style="font-family: courier new,courier;">  </local-tx-datasource> </span></p><p><span style="font-family: courier new,courier;"></datasources></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </p><p><span style="font-family: courier new,courier;">16:14:46,218 INFO  [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;"> </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>