You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Bert_nor <ce...@mail.ru> on 2007/04/10 11:16:32 UTC
Connector(container-managed-security) in LoginModule
Whether it is possible to use connector(container-managed-security) in the
LoginModule
In DWLoginModule.login(...)
.....
DataSource ds = (DataSource) factory.getConnectionFactory();
try {
conn = ds.getConnection(cbUsername, cbPassword); -->
java.lang.NoClassDefFoundError
// or conn = ds.getConnection();
} catch (Exception e) {
throw new FailedLoginException(e.getMessage());
}
select roles for current user
javax.security.auth.login.LoginException: java.lang.NoClassDefFoundError:
org/apache/geronimo/security/ContextManager
at
org.apache.geronimo.connector.outbound.SubjectInterceptor.getConnection(SubjectInterceptor.java:46)
at
org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.getConnection(ConnectionHandleInterceptor.java:43)
at
org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39)
at
org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.getConnection(ConnectionTrackingInterceptor.java:66)
at
org.apache.geronimo.connector.outbound.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:61)
at org.tranql.connector.jdbc.DataSource.getConnection(DataSource.java:69)
at $javax.sql.DataSource$$FastClassByCGLIB$$6525cafd.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at
org.apache.geronimo.connector.ConnectorMethodInterceptor.intercept(ConnectorMethodInterceptor.java:54)
at
$javax.sql.DataSource$$EnhancerByCGLIB$$2424dcb1.getConnection(<generated>)
at
com.promo.j2r.system.security.DWLoginModule.login(KDWLoginModule.java:162)
In console
Classloader jta11/car:
org.apache.geronimo.connector.outbound.SubjectInterceptor
j2ee-security/car:
com.promo.j2r.system.security.DWLoginModule and ContextManager
--
View this message in context: http://www.nabble.com/Connector%28container-managed-security%29-in-LoginModule-tf3551902s134.html#a9916264
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
Re: Connector(container-managed-security) in LoginModule
Posted by David Jencks <da...@yahoo.com>.
This is a bug, I've opened https://issues.apache.org/jira/browse/
GERONIMO-3083 to track it. it should be fairly simple to fix.
Many thanks for finding this!
david jencks
On Apr 10, 2007, at 2:16 AM, Bert_nor wrote:
>
> Whether it is possible to use connector(container-managed-
> security) in the
> LoginModule
>
> In DWLoginModule.login(...)
>
> .....
> DataSource ds = (DataSource) factory.getConnectionFactory();
> try {
> conn = ds.getConnection(cbUsername, cbPassword); -->
> java.lang.NoClassDefFoundError
> // or conn = ds.getConnection();
> } catch (Exception e) {
> throw new FailedLoginException(e.getMessage());
> }
> select roles for current user
>
> javax.security.auth.login.LoginException:
> java.lang.NoClassDefFoundError:
> org/apache/geronimo/security/ContextManager
> at
> org.apache.geronimo.connector.outbound.SubjectInterceptor.getConnectio
> n(SubjectInterceptor.java:46)
> at
> org.apache.geronimo.connector.outbound.ConnectionHandleInterceptor.get
> Connection(ConnectionHandleInterceptor.java:43)
> at
> org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection
> (TCCLInterceptor.java:39)
> at
> org.apache.geronimo.connector.outbound.ConnectionTrackingInterceptor.g
> etConnection(ConnectionTrackingInterceptor.java:66)
> at
> org.apache.geronimo.connector.outbound.AbstractConnectionManager.alloc
> ateConnection(AbstractConnectionManager.java:61)
> at org.tranql.connector.jdbc.DataSource.getConnection
> (DataSource.java:69)
> at $javax.sql.DataSource$$FastClassByCGLIB$$6525cafd.invoke
> (<generated>)
> at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
> at
> org.apache.geronimo.connector.ConnectorMethodInterceptor.intercept
> (ConnectorMethodInterceptor.java:54)
> at
> $javax.sql.DataSource$$EnhancerByCGLIB$$2424dcb1.getConnection
> (<generated>)
> at
> com.promo.j2r.system.security.DWLoginModule.login
> (KDWLoginModule.java:162)
>
> In console
> Classloader jta11/car:
> org.apache.geronimo.connector.outbound.SubjectInterceptor
> j2ee-security/car:
> com.promo.j2r.system.security.DWLoginModule and ContextManager
>
> --
> View this message in context: http://www.nabble.com/Connector%
> 28container-managed-security%29-in-LoginModule-
> tf3551902s134.html#a9916264
> Sent from the Apache Geronimo - Users mailing list archive at
> Nabble.com.
>