[
https://issues.apache.org/jira/browse/GERONIMO-5697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Barys Ilyushonak closed GERONIMO-5697.
--------------------------------------
Resolution: Fixed
Fix Version/s: 3.0-M1
Thank you very much. It works fine
I have configured realm by admin console with the following params.
<?xml version="1.0" encoding="UTF-8"?>
<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>
then I deployed hudson with plan:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
<environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
<moduleId>
<groupId>net.java.dev.hudson</groupId>
<artifactId>hudson</artifactId>
<version>1.384</version>
<type>war</type>
</moduleId>
<dependencies>
<dependency>
<groupId>org.apache.geronimo.framework</groupId>
<artifactId>j2ee-security</artifactId>
<version>3.0-M1</version>
<type>car</type>
</dependency>
<dependency>
<groupId>console.realm</groupId>
<artifactId>hudson-realm</artifactId>
<type>car</type>
</dependency>
</dependencies>
<hidden-classes>
<filter>org.apache.commons.lang.</filter>
<filter>org.apache.commons.jexl.</filter>
</hidden-classes>
</environment>
<context-root>/hudson</context-root>
<security-realm-name>hudson-realm</security-realm-name>
<security>
<default-principal realm-name="hudson-realm">
<principal name="anonymous"
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" />
</default-principal>
<role-mappings>
<role role-name="admin">
<realm realm-name="hudson-realm">
<principal name="AdminGroup"
class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" />
</realm>
<principal name="system"
class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal" />
</role>
</role-mappings>
</security>
</web-app>
> 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
> Fix For: 3.0-M1
>
> 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.