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