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.
|