More info:
conf/server.xml is not populated with the data source. If I change
<containerId> from tomcat5x to tomcat4x, I see the datasource
configuration written into server.xml
This looks like a bug in the Tomcat5x container, is it?
Paul Spencer
Paul Spencer wrote:
> 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>
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email