JOSSO

Static Logger Initialization of class org.josso.tc55.agent.jaas.CatalinaSSOUser

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Cannot Reproduce
  • Affects Version/s: JOSSO 1.8.1
  • Fix Version/s: JOSSO 1.8.2
  • Component/s: JBoss 4.2 Agent
  • Description:
    Hide
    The "LogFactory.getLog" crashes the static initialization of class CatalinaSSOUser, hiding the real cause of error without show any trace of real error.

    As an workaround, remove commons-logging-1.0.4.jar and commons-logging-api-1.0.4.jar from jboss-4.2.3.GA/server/<instance>/lib, recover the full SSO availability, without any side-effect at this moment.

    I believe that remove the commons-loggin from JBoss 4.2.3 JOSSO instalation or update the commons-logging version solve the problem.


    .....
    15:23:00,590 INFO [MemoryIdentityStore] Storing credentials for key : user2
    15:23:00,590 INFO [MemoryIdentityStore] Storing credentials for key : tomcat
    15:23:00,590 INFO [MemoryIdentityStore] Storing credentials for key : user3
    15:23:00,590 INFO [MemoryIdentityStore] Loaded 5 credential sets from : josso-credentials.xml
    15:23:00,609 INFO [AUDIT] Thu Jul 08 15:23:00 BRT 2010 - sso-session - info - user1 - createSession=success - ssoSessionId=9107E1B22C5B6AE9685F0B7E4AEE65AF
    15:23:00,609 INFO [AUDIT] Thu Jul 08 15:23:00 BRT 2010 - sso-user - info - user1 - authenticationSuccess=success - authScheme=basic-authentication,ssoSessionId=9107E1B22C5B6AE9685F0B7E4AEE65AF
    15:23:01,173 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
    java.lang.NoClassDefFoundError: Could not initialize class org.josso.tc55.agent.jaas.CatalinaSSOUser
    at org.josso.jb42.agent.JBossCatalinaRealm.hasRole(JBossCatalinaRealm.java:243)
    at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.hasResourcePermission(JBossSecurityMgrRealm.java:243)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:688)
    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
    at java.lang.Thread.run(Thread.java:619)
    Show
    The "LogFactory.getLog" crashes the static initialization of class CatalinaSSOUser, hiding the real cause of error without show any trace of real error. As an workaround, remove commons-logging-1.0.4.jar and commons-logging-api-1.0.4.jar from jboss-4.2.3.GA/server/<instance>/lib, recover the full SSO availability, without any side-effect at this moment. I believe that remove the commons-loggin from JBoss 4.2.3 JOSSO instalation or update the commons-logging version solve the problem. ..... 15:23:00,590 INFO [MemoryIdentityStore] Storing credentials for key : user2 15:23:00,590 INFO [MemoryIdentityStore] Storing credentials for key : tomcat 15:23:00,590 INFO [MemoryIdentityStore] Storing credentials for key : user3 15:23:00,590 INFO [MemoryIdentityStore] Loaded 5 credential sets from : josso-credentials.xml 15:23:00,609 INFO [AUDIT] Thu Jul 08 15:23:00 BRT 2010 - sso-session - info - user1 - createSession=success - ssoSessionId=9107E1B22C5B6AE9685F0B7E4AEE65AF 15:23:00,609 INFO [AUDIT] Thu Jul 08 15:23:00 BRT 2010 - sso-user - info - user1 - authenticationSuccess=success - authScheme=basic-authentication,ssoSessionId=9107E1B22C5B6AE9685F0B7E4AEE65AF 15:23:01,173 ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing java.lang.NoClassDefFoundError: Could not initialize class org.josso.tc55.agent.jaas.CatalinaSSOUser at org.josso.jb42.agent.JBossCatalinaRealm.hasRole(JBossCatalinaRealm.java:243) at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.hasResourcePermission(JBossSecurityMgrRealm.java:243) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.josso.tc55.agent.SSOAgentValve.invoke(SSOAgentValve.java:688) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) at java.lang.Thread.run(Thread.java:619)
  • Environment:
    Ubuntu 9.10, JDK1.6, JBoss 4.2.3, WAR RichFaces application, JOSSO 1.8.1

Activity

Hide
Darcio Lopes Pacifico added a comment - 08/Jul/10 8:56 PM
In my case, the problem occurs with JOSSO 1.8.2 too, although i haven't find any similar problem on the internet. I have a VirtualBox VM with the full environment. I can upload an appliance in some place, if you wish.
Show
Darcio Lopes Pacifico added a comment - 08/Jul/10 8:56 PM In my case, the problem occurs with JOSSO 1.8.2 too, although i haven't find any similar problem on the internet. I have a VirtualBox VM with the full environment. I can upload an appliance in some place, if you wish.
Hide
Sebastian Gonzalez Oyuela added a comment - 20/Jul/10 8:11 AM
Make sure that commons logging is not needed in JBoss 4.2 and update the installer
Show
Sebastian Gonzalez Oyuela added a comment - 20/Jul/10 8:11 AM Make sure that commons logging is not needed in JBoss 4.2 and update the installer
Hide
Goran Nastov added a comment - 20/Jul/10 10:28 AM
When I remove commons-logging (v.1.1.1) there are ClassNotFoundException(s) and JBoss is not starting. I could remove commons-logging-api jar but commons-logging jar is required.
Also, I am not seeing any error in initializing CatalinaSSOUser (certainly not NoClassDefFoundError) when testing with the sample partner application (I installed everything using JOSSO installer / latest 1.8.2 snapshot (I also tried 1.8.1)).
Show
Goran Nastov added a comment - 20/Jul/10 10:28 AM When I remove commons-logging (v.1.1.1) there are ClassNotFoundException(s) and JBoss is not starting. I could remove commons-logging-api jar but commons-logging jar is required. Also, I am not seeing any error in initializing CatalinaSSOUser (certainly not NoClassDefFoundError) when testing with the sample partner application (I installed everything using JOSSO installer / latest 1.8.2 snapshot (I also tried 1.8.1)).

People

Dates

  • Created:
    08/Jul/10 1:49 PM
    Updated:
    12/Aug/11 7:34 AM
    Resolved:
    23/Jul/10 1:08 PM