« Return to Thread: Getting "Name jdbc is not bound in this Context" when using cargo-maven2-plugin to define a datasource for Tomcat5x container

Getting "Name jdbc is not bound in this Context" when using cargo-maven2-plugin to define a datasource for Tomcat5x container

by Paul Spencer-3 :: Rate this Message:

Reply to Author | View in Thread

I have configured the cargo plugin v0.3.1 to created an datasource
inside a Tomcat 5.5.23 standalone container, but I am getting the
following error message:
    javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

Any ideas why I am getting this error message?

Is their a way to see the JNDI configuration added by Cargo and the plugin?

I have include parts of the configuration for review.

***
* From the cargo configuration in POM.XML
***
    <cargo.datasource.datasource>
      cargo.datasource.url=jdbc:edbc://testsvr.foo.com:II7/termite_dev|
      cargo.datasource.driver=ca.edbc.jdbc.EdbcDriver|
      cargo.datasource.username=username|
      cargo.datasource.password=password|
      cargo.datasource.type=javax.sql.DataSource|
      cargo.datasource.jndi=jdbc/Termite
    </cargo.datasource.datasource>

***
* From context.xml
***
<?xml version='1.0' encoding='utf-8'?>
<Context reloadable="true">
   <Realm className="org.apache.catalina.realm.DataSourceRealm"
     dataSourceName="jdbc/Termite" debug="99" roleNameCol="role"
     userCredCol="password" userNameCol="username"
     userRoleTable="web_user_roles" userTable="web_users" />
   <ResourceLink name="datasource.name" global="jdbc/Termite"
     type="javax.sql.DataSource" />
</Context>

Paul Spencer

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

 « Return to Thread: Getting "Name jdbc is not bound in this Context" when using cargo-maven2-plugin to define a datasource for Tomcat5x container