geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "viola.lu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-5697) Hudson failed to deploy on 3.0-M1
Date Wed, 17 Nov 2010 06:54:14 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932842#action_12932842
] 

viola.lu commented on GERONIMO-5697:
------------------------------------

This doc https://cwiki.apache.org/GMOxSAMPLES/running-hudson-on-geronimo.html is for 2.0.
The hudson-realm you defined in geronimo-web.xml doesn't exist in geronimo, so this error
exists. First you should create a security-realm named hudson-realm, for example:
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
    <environment>
        <moduleId>
            <groupId>console.realm</groupId>
            <artifactId>hudson-realm</artifactId>
            <version>1.0</version>
            <type>car</type>
        </moduleId>
        <dependencies>
            <dependency>
                <groupId>org.apache.geronimo.framework</groupId>
                <artifactId>j2ee-security</artifactId>
                <type>car</type>
            </dependency>
        </dependencies>
    </environment>
    <gbean name="hudson-realm" class="org.apache.geronimo.security.realm.GenericSecurityRealm"
xsi:type="dep:gbeanType" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <attribute name="realmName">hudson-realm</attribute>
        <attribute name="global">false</attribute>
        <reference name="ServerInfo">
            <name>ServerInfo</name>
        </reference>
        <xml-reference name="LoginModuleConfiguration">
            <log:login-config xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-2.0">
                <log:login-module control-flag="REQUIRED" wrap-principals="false">
                    <log:login-domain-name>hudson-realm</log:login-domain-name>
                    <log:login-module-class>org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule</log:login-module-class>
                    <log:option name="usersURI">var/security/users.properties</log:option>
                    <log:option name="groupsURI">var/security/groups.properties</log:option>
                </log:login-module>
            </log:login-config>
        </xml-reference>
    </gbean>
</module>

and then add this realm dependency to your geronimo-web.xml:
<dependencies>
      <dependency>
        <groupId>org.apache.geronimo.framework</groupId>
        <artifactId>j2ee-security</artifactId>
        <type>car</type>
      </dependency>
      <dependency>
        <groupId>console.realm</groupId>
        <artifactId>hudson-realm</artifactId>
        <type>car</type>
      </dependency>
    </dependencies>

Besides that, the org.apache.geronimo.config/j2ee-security module defined(name is changed
in 3.0) in geronimo-web.xml should change to 
org.apache.geronimo.framework/j2ee-security. 

And then deploy your hudson.war with new geronimo-web.xml.
I already tried it on M1, it can be deployed successfully. 

We should update hudson sample on 3.0

> Hudson failed to deploy on 3.0-M1
> ---------------------------------
>
>                 Key: GERONIMO-5697
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5697
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: dependencies
>    Affects Versions: 3.0-M1
>         Environment: Windows XP Proffesional, SUN SDK 1.6.0_21, geronimo-tomcat7-javaee6-3.0-M1,
Hudson 1.384
>            Reporter: Barys Ilyushonak
>         Attachments: geronimo-web.xml, geronimo.log
>
>
> I have tried  https://cwiki.apache.org/GMOxSAMPLES/running-hudson-on-geronimo.html on
3.0-M1 and it is failed
> I was tried the following geronimo-web.xml and it doesn't work (see attachment). 
> The error (see full log attached)
> Unable to resolve reference "ConfigurationFactory"
>     in gbean net.java.dev.hudson/hudson/1.384/war?J2EEApplication=null,j2eeType=WebModule,name=net.java.dev.hudson/hudson/1.384
> war
>     to a gbean matching the pattern [?name=hudson-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
>     due to: No matches for referencePatterns: [?name=hudson-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
> org.apache.geronimo.common.DeploymentException: Unable to resolve reference "ConfigurationFactory"
>     in gbean net.java.dev.hudson/hudson/1.384/war?J2EEApplication=null,j2eeType=WebModule,name=net.java.dev.hudson/hudson/1.384
> war
>     to a gbean matching the pattern [?name=hudson-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
>     due to: No matches for referencePatterns: [?name=hudson-realm#org.apache.geronimo.security.jaas.ConfigurationFactory]
>         at org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:549)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message