[jboss-user] Re: DataSource Problem JBoss/Tomcat Only Configuration

samk at twinix.com samk at twinix.com
Wed Sep 5 17:12:41 EDT 2007


See Thread at: http://www.techienuggets.com/Detail?tx=11956 Posted on behalf of a User

Can you describe what you're trying to do? I have a JBoss instance deployed taking all the defaults and *-ds.xml files deploy without problem?


In Response To: 

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






More information about the jboss-user mailing list