You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2007/04/10 17:49:32 UTC
[jira] Created: (GERONIMO-3083) Security classes not available in
connector module, so container-managed security for connection factories
doesnt work.
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.
[jira] Closed: (GERONIMO-3083) Security classes not available in
connector module, so container-managed security for connection factories
doesnt work.
Posted by "David Jencks (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GERONIMO-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Jencks closed GERONIMO-3083.
----------------------------------
Resolution: Fixed
Fix Version/s: (was: 2.0-M5)
2.0-M7
J2CA container managed security fixed in rev 548733.
Beginnings of a test app in rev. 548734.
Test app cleaned up and works "by hand" in rev 548754 except I don't know how to get the selenium test to run.
> 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
> Assignee: David Jencks
> Fix For: 2.0-M7
>
>
> 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.