geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-3083) Security classes not available in connector module, so container-managed security for connection factories doesnt work.
Date Tue, 10 Apr 2007 15:49:32 GMT
Security classes not available in connector module, so container-managed security for connection
factories doesnt work.
-----------------------------------------------------------------------------------------------------------------------

                 Key: GERONIMO-3083
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3083
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: connector
    Affects Versions: 2.0-M4
            Reporter: David Jencks
         Assigned To: David Jencks
             Fix For: 2.0-M5


Found by bert nor, here's his stack trace:

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 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message