JOSSO

Wrong Realm and Valve definition generated by JOSSO Installer

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Trivial Trivial
  • Resolution: Unresolved
  • Affects Version/s: JOSSO 1.8, JOSSO 1.8.1, JOSSO 1.8.2
  • Fix Version/s: None
  • Component/s: None
  • Description:
    Hide
    The following is a part of server.xml, generated by JOSSO Installer (agent install --platform jb42)

    <!-- JOSSO JAAS Realm, configuration automatially generated by JOSSO Installer-->
    <Realm
                 appName="josso"
                 className="org.josso.jb42.agent.JBossCatalinaRealm"
                 debug="1"
                 roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"
                 userClassNames="org.josso.gateway.identity.service.BaseUserImpl">
    </Realm>

    This configuration is wrong. Neither JBossCatalinaRealm nor superclass JBossSecurityMgrRealm contain setters/getters for properties like "roleClassNames", "userClassNames", "appName" or "debug".


    This configuration of Valve SSOAgentValve is also wrong: there is no setter for "appName" property.

    <!-- JOSSO Agent Valve, configuration automatially generated by JOSSO Installer-->
    <Valve appName="josso" className="org.josso.tc55.agent.SSOAgentValve" debug="1">
    </Valve>

    - - - -

    in server log we can see:

    WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}
        Setting property 'appName' to 'josso' did not find a matching property.
    WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}
        Setting property 'debug' to '1' did not find a matching property.
    WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}
        Setting property 'roleClassNames' to 'org.josso.gateway.identity.service.BaseRoleImpl' did not find a matching property.
    WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}
        Setting property 'userClassNames' to 'org.josso.gateway.identity.service.BaseUserImpl' did not find a matching property.
    WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Host/Valve}
        Setting property 'appName' to 'josso' did not find a matching property.
    Show
    The following is a part of server.xml, generated by JOSSO Installer (agent install --platform jb42) <!-- JOSSO JAAS Realm, configuration automatially generated by JOSSO Installer--> <Realm              appName="josso"              className="org.josso.jb42.agent.JBossCatalinaRealm"              debug="1"              roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"              userClassNames="org.josso.gateway.identity.service.BaseUserImpl"> </Realm> This configuration is wrong. Neither JBossCatalinaRealm nor superclass JBossSecurityMgrRealm contain setters/getters for properties like "roleClassNames", "userClassNames", "appName" or "debug". This configuration of Valve SSOAgentValve is also wrong: there is no setter for "appName" property. <!-- JOSSO Agent Valve, configuration automatially generated by JOSSO Installer--> <Valve appName="josso" className="org.josso.tc55.agent.SSOAgentValve" debug="1"> </Valve> - - - - in server log we can see: WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}     Setting property 'appName' to 'josso' did not find a matching property. WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}     Setting property 'debug' to '1' did not find a matching property. WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}     Setting property 'roleClassNames' to 'org.josso.gateway.identity.service.BaseRoleImpl' did not find a matching property. WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Realm}     Setting property 'userClassNames' to 'org.josso.gateway.identity.service.BaseUserImpl' did not find a matching property. WARN [commons.digester.Digester] [SetPropertiesRule]{Server/Service/Engine/Host/Valve}     Setting property 'appName' to 'josso' did not find a matching property.
  • Environment:
    JBoss 4.2

Trackbacks

Installation0 (Confluence: Product Management)
Call the agent by invoking: :/opt/atricore/josso/bin> ./jossogsh \\ The following console should appear: \\ Atricore JOSSO (1.8.2) \\ Type 'help' for more information....
SRMC Agent2 (Confluence: Product Management)
Installation Call the agent by invoking: :/opt/atricore/josso/bin> ./jossogsh \\ The following console should appear: \\ Atricore JOSSO (1.8.2) \\ Type 'help' for more information....

Activity

Hide
Patrick Pissang added a comment - 20/Aug/10 7:32 AM
Hello,

I am looking for a solution for this issue. It also applies for the Tomcat 6 Josso Installer.

{code}
Aug 20, 2010 11:18:41 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Aug 20, 2010 11:18:41 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Aug 20, 2010 11:18:41 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'debug' to '1' did not find a matching property.
Aug 20, 2010 11:18:41 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'appName' to 'josso' did not find a matching property.
Aug 20, 2010 11:18:41 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
{code}

The server.xml code automatically generated by the Installer:
{code}
      <!-- ================================================== -->
        <!-- JOSSO JAAS Realm, configuration automatially generated by JOSSO Installer -->
        <Realm appName="josso"
                className="org.josso.tc60.agent.jaas.CatalinaJAASRealm"
                debug="1"
                roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"
                userClassNames="org.josso.gateway.identity.service.BaseUserImpl">
        </Realm>
        <!-- ================================================== -->

      <!-- ================================================== -->
        <!-- JOSSO Agent Valve, configuration automatially generated by JOSSO Installer -->
        <Valve appName="josso"
                className="org.josso.tc60.agent.SSOAgentValve"
                debug="1">
        </Valve>
        <!-- ================================================== -->
{code}

If the configuration is wrongly generated by the installer could you provide a corrected one here?

Thanks!
Show
Patrick Pissang added a comment - 20/Aug/10 7:32 AM Hello, I am looking for a solution for this issue. It also applies for the Tomcat 6 Josso Installer. {code} Aug 20, 2010 11:18:41 AM org.apache.catalina.core.AprLifecycleListener init INFO: Loaded APR based Apache Tomcat Native library 1.1.20. Aug 20, 2010 11:18:41 AM org.apache.catalina.core.AprLifecycleListener init INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. Aug 20, 2010 11:18:41 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Realm} Setting property 'debug' to '1' did not find a matching property. Aug 20, 2010 11:18:41 AM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Valve} Setting property 'appName' to 'josso' did not find a matching property. Aug 20, 2010 11:18:41 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent {code} The server.xml code automatically generated by the Installer: {code}       <!-- ================================================== -->         <!-- JOSSO JAAS Realm, configuration automatially generated by JOSSO Installer -->         <Realm appName="josso"                 className="org.josso.tc60.agent.jaas.CatalinaJAASRealm"                 debug="1"                 roleClassNames="org.josso.gateway.identity.service.BaseRoleImpl"                 userClassNames="org.josso.gateway.identity.service.BaseUserImpl">         </Realm>         <!-- ================================================== -->       <!-- ================================================== -->         <!-- JOSSO Agent Valve, configuration automatially generated by JOSSO Installer -->         <Valve appName="josso"                 className="org.josso.tc60.agent.SSOAgentValve"                 debug="1">         </Valve>         <!-- ================================================== --> {code} If the configuration is wrongly generated by the installer could you provide a corrected one here? Thanks!

People

Dates

  • Created:
    22/Sep/09 10:07 AM
    Updated:
    22/Oct/10 3:04 PM