geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Malgeri <mmalg...@us.ibm.com>
Subject Re: Deployment problem
Date Fri, 01 Jul 2005 00:16:48 GMT
Leonard,

Your last 3 gbeans are using the older format.  Here's a descriptor from 
the docs, which you should be able to use to fix the problem

<!-- Derby Based Security Login Modules -->
<gbean name="gse-sql-login"
class="org.apache.geronimo.security.jaas.LoginModuleGBean">
        <attribute
 
name="loginModuleClass">com.gluecode.joe.geronimo.security.realm.providers.JoeSQLLoginModule</attribute>
        <attribute name="serverSide">true</attribute>
        <attribute 
name="options">datasourceName=joe.server:J2EEApplication=null,J2EEServer=joe,JCAResource=geronimo-derby-connector-1.0-r161238.rar,j2eeType=JCAManagedConnectionFactory,name=SystemDatasource
        </attribute>
        <attribute name="loginDomainName">joe-sql-realm</attribute>
</gbean>


<gbean name="gse-sql-realm"
class="org.apache.geronimo.security.realm.GenericSecurityRealm">
        <attribute name="realmName">gse-sql-realm</attribute>
        <reference name="LoginModuleConfiguration">
                <name>gse-sql-login</name>
        </reference>
        <reference name="ServerInfo">
        <module>org/apache/geronimo/System</module>
        <name>ServerInfo</name>
        </reference>
</gbean>

<gbean name="gse1-sql-login"
class="org.apache.geronimo.security.jaas.JaasLoginModuleUse">
        <attribute name="controlFlag">REQUIRED</attribute>
        <reference name="LoginModule">
                <name>gse1-sql-login</name>
        </reference>
</gbean>


Michael Malgeri
Mgr Gluecode Client Technical Services
PHONE: 310-536-8355 x 14
FAX: 310-536-9062
CELLULAR: 310-704-6403



Leonard Flournoy/Los Angeles/IBM@IBMUS 
06/30/2005 04:26 PM
Please respond to
dev


To
dev@geronimo.apache.org
cc

Subject
Deployment problem








Hello all I hope you can assist me with this problem, i am trying to 
deploy gps on gluecode-se but I recieve this error: 









Unknown attribute loginModuleConfiguration on 
gluecode-se.server:J2EEApplication=null,J2EEModule=com/gluecode/se/gps,J2EEServer=gluecode-se,j2eeType=SecurityRealm,name=gps-application-realm





Here is my deployment discriptor: 

<?xml version="1.0" encoding="UTF-8"?> 
<web-app xmlns="http://geronimo.apache.org/xml/ns/web/jetty" 
    configId="com/gluecode/se/gps" 
    parentId="com/gluecode/se/Standard/1.1"> 

    <dependency> 
        <uri>gluecode-portal/jars/pluto-container-GLUECODESE-1.0.jar</uri> 

    </dependency> 
    <dependency> 
        <uri>dom4j/jars/dom4j-1.5-rc1.jar</uri> 
    </dependency> 
    <dependency> 
        <uri>jetspeed2/jars/jetspeed-api-2.0-M1.jar</uri> 
    </dependency> 
    <dependency> 
        <uri>jetspeed2/jars/jetspeed-commons-2.0-M1.jar</uri> 
    </dependency> 
    <dependency> 
        <uri>portals-bridges/jars/portals-bridges-common-0.1.jar</uri> 
    </dependency> 


    <context-root>/gluecode</context-root> 
    <context-priority-classloader>false</context-priority-classloader> 
    <security-realm-name>gps-application-realm</security-realm-name> 
 
    <security> 
            <default-principal realm-name="gps-application-realm"> 
            <principal 
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" 
name="admin"/> 
        </default-principal> 
        <role-mappings> 
            <role role-name="admin"> 
                <realm realm-name="gps-application-realm"> 
                    <principal 
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" 
name="admin" designated-run-as="true"/> 
                </realm> 
            </role> 
            <role role-name="global-admin"> 
                <realm realm-name="gps-application-realm"> 
                    <principal 
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" 
name="global-admin" designated-run-as="true"/> 
                </realm> 
            </role> 
            <role role-name="bpp-admin"> 
                <realm realm-name="gps-application-realm"> 
                    <principal 
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" 
name="bpp-admin" designated-run-as="true"/> 
                </realm> 
            </role> 
            <role role-name="user"> 
                <realm realm-name="gps-application-realm"> 
                    <principal 
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" 
name="user" designated-run-as="true"/> 
                </realm> 
            </role> 
            <role role-name="customizer"> 
                <realm realm-name="gps-application-realm"> 
                    <principal 
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" 
name="customizer" designated-run-as="true"/> 
                </realm> 
            </role> 
            <role role-name="guest"> 
                <realm realm-name="gps-application-realm"> 
                    <principal 
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" 
name="guest" designated-run-as="true"/> 
                </realm> 
            </role> 
        </role-mappings> 
    </security>         

    <resource-ref xmlns="http://geronimo.apache.org/xml/ns/naming"> 
        <ref-name>jdbc/jetspeed</ref-name> 
        <resource-link>GPSDatasource</resource-link> 
    </resource-ref> 

        <!-- Security implementation --> 
    <gbean name="gps-application-login" 
class="org.apache.geronimo.security.jaas.LoginModuleGBean"> 
        <attribute 
name="loginModuleClass">org.apache.geronimo.security.realm.providers.SQLLoginModule</attribute>


        <attribute name="serverSide">true</attribute> 
        <attribute name="options"> 
            userSelect=SELECT LOGIN_NAME, PASSWORD_VALUE FROM TURBINE_USER 

                    groupSelect=SELECT distinct tr.role_name,tu.login_name 
FROM turbine_user tu,turbine_role tr,turbine_user_group_role tgr WHERE 
tu.user_id=tgr.user_id AND tr.role_id=tgr.role_id 
            jdbcURL=jdbc:hsqldb:hsql://localhost:8888 
                    jdbcUser=sa 
                    jdbcPassword= 
                    jdbcDriver=org.hsqldb.jdbcDriver 
        </attribute> 
        <attribute 
name="loginDomainName">gps-application-realm</attribute> 
    </gbean> 

    <gbean name="gps-application-realm" 
class="org.apache.geronimo.security.realm.GenericSecurityRealm"> 
        <attribute name="realmName">gps-application-realm</attribute> 
        <attribute name="loginModuleConfiguration"> 
 
LoginModule.1.REQUIRED=gluecode-se.server:J2EEApplication=null,J2EEModule=com/gluecode/se/gps,J2EEServer=gluecode-se,j2eeType=LoginModule,name=gps-application-login


        </attribute> 
        <reference 
name="ServerInfo"><gbean-name>.server:J2EEApplication=null,J2EEModule=com/gluecode/se/System/1.1,J2EEServer=gluecode-se,j2eeType=GBean,name=ServerInfo</gbean-name></reference>


    </gbean> 

    <gbean name="gpsJAAS" 
class="org.apache.geronimo.security.jaas.ServerRealmConfigurationEntry"> 
        <attribute name="applicationConfigName">gpsJAAS</attribute> 
        <attribute name="realmName">gps-application-realm</attribute> 
    </gbean> 
    <!-- End of Security Implementation --> 
</web-app> 




Any suggestions -

Mime
View raw message