JBoss - Erro no datasource

Olá pessoal,
Estou tentando rodar uma aplicação no JBoss mas ao subir o servidor recebo o seguinte erro:

[code]DEPLOYMENTS MISSING DEPENDENCIES:
Deployment “jboss-switchboard:appName=Simweb,module=Simweb” is missing the following dependencies:
Dependency “jboss.jca:name=internal/Simweb/Simweb/env/jdbc/TestDB,service=DataSourceBinding” (should be in state “Installed”, but is actually in state “** NOT FOUND Depends on ‘jboss.jca:name=internal/Simweb/Simweb/env/jdbc/TestDB,service=DataSourceBinding’,whenRequired=MapControllerStateModel$ControllerStateWrapper@719c38e3{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@719c38e3{Installed} **”)
Deployment “jboss.web.deployment:war=/Simweb” is missing the following dependencies:
Dependency “jboss-switchboard:appName=Simweb,module=Simweb” (should be in state “Installed”, but is actually in state “Deploy”)

DEPLOYMENTS IN ERROR:
Deployment “jboss.jca:name=internal/Simweb/Simweb/env/jdbc/TestDB,service=DataSourceBinding” is in error due to the following reason(s): ** NOT FOUND Depends on ‘jboss.jca:name=internal/Simweb/Simweb/env/jdbc/TestDB,service=DataSourceBinding’,whenRequired=MapControllerStateModel$ControllerStateWrapper@719c38e3{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@719c38e3{Installed} **

    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
    at java.lang.Thread.run(Thread.java:680) [:1.6.0_22][/code]

Meu web.xml está assim:

<resource-ref>
     <description>DB Connection</description>
     <res-ref-name>jdbc/TestDB</res-ref-name>
     <res-type>javax.sql.DataSource</res-type>
     <res-auth>Container</res-auth>
 </resource-ref>

Meu db-teste-ds.xml:

<?xml version="1.0" encoding="UTF-8"?> <datasources> <local-tx-datasource> <jndi-name>jdbc/TestDB</jndi-name> <connection-url>jdbc:mysql://localhost:3306/simweb</connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <user-name>user</user-name> <password>senha</password> <metadata> <type-mapping>MySQL</type-mapping> </metadata> </local-tx-datasource> </datasources>

Alguma dica p/ resolver o problema?

[]'s
Daniel

Não sei se é isso, o erro ta meio estranho, mas vc adicionou no projeto o jboss-web.xml?
Se não, adiciona:

&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN"
        "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd"&gt;
&lt;jboss-web&gt;
    &lt;resource-ref&gt;
      &lt;res-ref-name&gt;jdbc/default&lt;/res-ref-name&gt;
      &lt;jndi-name&gt;java:/jdbc/TestDB&lt;/jndi-name&gt;
    &lt;/resource-ref&gt;
 &lt;/jboss-web&gt;

Então, adicionei o jboss-web.xml e o erro persiste.

Faz um teste então, muda isso no web.xml:

&lt;resource-ref&gt; &lt;description&gt;DB Connection&lt;/description&gt; &lt;res-ref-name&gt;jdbc/TestDB&lt;/res-ref-name&gt; &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt; &lt;res-auth&gt;Container&lt;/res-auth&gt; &lt;/resource-ref&gt;
por isso:

&lt;resource-ref&gt;
     &lt;description&gt;DB Connection&lt;/description&gt;  
     &lt;res-ref-name&gt;jdbc/default&lt;/res-ref-name&gt;
     &lt;res-type&gt;javax.sql.XADataSource&lt;/res-type&gt;
     &lt;res-auth&gt;Container&lt;/res-auth&gt;
     &lt;res-sharing-scope&gt;Shareable&lt;/res-sharing-scope&gt;
&lt;/resource-ref&gt;

Opa,
Obrigado pela ajuda, agora parece que resolveu.

[]'s
Daniel

:thumbup: