geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <>
Subject [jira] [Commented] (GERONIMO-5904) Reference bound in JNDI is not dereferenced properly when lookup
Date Thu, 14 Apr 2011 18:46:05 GMT


David Jencks commented on GERONIMO-5904:

tranql trunk has all the jars turned into bundles, and I added some support for some things
DataSourceBuilder does.  This is all used in my sandbox txmanager and seems to work there,
but I don't know how hard it would be to integrate it into geronimo right now.

> Reference bound in JNDI is not dereferenced properly when lookup
> ----------------------------------------------------------------
>                 Key: GERONIMO-5904
>                 URL:
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 3.0
>            Reporter: Shenghao Fang
>            Assignee: Shenghao Fang
> Get java.lang.ClassCastException: org.tranql.connector.jdbc.TranqlDataSource$SelfReference
cannot be cast to javax.sql.DataSource on the following code snippet.
> {code}
> InitialContext ic = new InitialContext();
> activeDS = (DataSource)ic.lookup("jca:/org.apache.geronimo.plugins.monitoring/agent-ds/JCAConnectionManager/jdbc/ActiveDS");
> {code}
> An instance of org.tranql.connector.jdbc.TranqlDataSource is experted to be returned,
but get an instance of org.tranql.connector.jdbc.TranqlDataSource$SelfReference.
> TranqlDataSource implements javax.naming.Referenceable, so an instance of javax.naming.Reference
is bound on to JNDI, but it is expected to be dereferenced when lookup.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message