[jboss-user] [JBoss Portal] - Re: Problems with DatabaseServerLoginModule

pranji do-not-reply at jboss.com
Tue Aug 21 04:59:33 EDT 2007


Some additional info 

In the logs its is displaying 

anonymous wrote : 2007-08-21 13:44:40,523 DEBUG [org.apache.catalina.authenticator.AuthenticatorBase] Security checking request POST /public/j_security_check
  | 2007-08-21 13:44:40,523 DEBUG [org.apache.catalina.authenticator.FormAuthenticator] Authenticating username 'admin'
  | 2007-08-21 13:44:40,523 TRACE [org.jboss.web.tomcat.security.JBossSecurityMgrRealm] Begin authenticate, username=admin
  | 2007-08-21 13:44:40,523 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the request processing
  | java.lang.ClassCastException: org.jboss.security.plugins.JaasSecurityManager
  | 	at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:488)
  | 	at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:257)
  | 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:416)
  | 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  | 	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  | 	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | 	at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | 	at java.lang.Thread.run(Thread.java:595)

I have the following tables

anonymous wrote : 
  |   CREATE TABLE "MEXADMIN"."PRINCIPALS" 
  |    (	"PRINCIPAL_ID" VARCHAR2(64 BYTE) NOT NULL ENABLE, 
  | 	"PASSWORD" VARCHAR2(64 BYTE), 
  | 	 CONSTRAINT "PRINCIPALS_PK" PRIMARY KEY ("PRINCIPAL_ID") ENABLE
  |    ) ;
  | 
  |  CREATE TABLE "MEXADMIN"."ROLES" 
  |    (	"PRINCIPAL_ID" VARCHAR2(4000 BYTE), 
  | 	"USER_ROLE" VARCHAR2(4000 BYTE), 
  | 	"ROLE_GROUP" VARCHAR2(4000 BYTE)
  |    ) ;
  | 

with a user admin  with password admin added to principals and admin added to roles table with user_role as Authenticated

Please provide some clues for the soltuoin of this problem

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076152#4076152

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076152



More information about the jboss-user mailing list