Ola, tenho que configurar um data source para minha aplicacao e estou com o seguinte erro:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@d0d473a8 { url=file:/C:/Arquivos de programas/jboss-4.2.3.GA/server/default/deploy/web_teste.war }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/sqlds has no valid JNDI binding. Check the jboss-web/resource-ref.)
state: FAILED
watch: file:/C:/Arquivos de programas/jboss-4.2.3.GA/server/default/deploy/web_teste.war
altDD: null
lastDeployed: 1295120325578
lastModified: 1295120325562
mbeans:
Criei o seguinte arquivo no JBoss: JBOSS_HOME\server\default\deploy\teste-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/sqlds</jndi-name>
<use-java-context>true</use-java-context>
<connection-url>jdbc:postgresql://localhost:5432/projeto_maritima</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<user-name>usuario</user-name>
<password>senha</password>
</local-tx-datasource>
</datasources>
E em minha aplicacao tenho a seguinte tag do arquivo web.xml:
<resource-ref>
<description>Data source para teste</description>
<res-ref-name>jdbc/sqlds</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
Ao subir o servidor eu tenho o erro mencionado acima. Alguem sabe me dizer se esta faltando alguma coisa?
vllwwww