Data Source no JBoss nao funciona.[RESOLVIDO]

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

Acho que vc teria que criar um arquivo jboss-web.xml no mesmo nível do diretorio do web.xml Check the jboss-web/resource-ref.)

&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/teste-ds.xml&lt;/jndi-name&gt;
    &lt;/resource-ref&gt;
 &lt;/jboss-web&gt;

Cara, era isso mesmo! Vlww a ajuda.

T+

:thumbup: