Ok - so if that is correct (which I think today I proved), I cannot use the 
-dx.xml file to resolve my JNDI/JDBC connection pool because I can only use the 
Tomcat only configuration of JBoss.

If I do not put the -dx.xml file in my deploy folder, JBoss starts but when my 
application runs I get a "NameNotFoundException" which references "TestWarDB".

For reference...

my web.xml contains:
  <resource-ref>
    TestDataSource
    <res-ref-name>jdbc/TestDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>

my jboss-web.xml contains:
  <resource-ref>
    <res-ref-name>jdbc/TestDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <jndi-name>java:/TestWarDB</jndi-name>
  </resource-ref>

So how do I tell JBoss/Tomcat how to resolve java:/TestWarDB?

I have tried configuring Tomcat (the version deployed within JBoss) according 
to Tomcat's documentation but I have had no luck in getting anything to work.  
If JBoss has a Tomcat Only installation configuration, I cannot possible think 
this would not support interaction with a database.

Kelly


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4081492#4081492

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4081492
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to