geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lu Jiang (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-5299) Deploy plan for a web application with login-module attribute faiiled to be parsed.
Date Wed, 12 May 2010 07:02:40 GMT
Deploy plan for a web application with login-module attribute faiiled to be parsed.
-----------------------------------------------------------------------------------

                 Key: GERONIMO-5299
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5299
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 3.0
         Environment: OS:win xp
Server:GERONIMO 3.0-SANPSHOT 2010.5.6 build
JDK :1.6
            Reporter: Lu Jiang


Deploy a web application file-realm-demo.war with deploy plan demo-realm.xml.(see attach file).
The deploy plan failed to be parsed.
(ps:this application can be deployed and started successfully on geronimo 2.2)

2010-05-12 14:39:09,618 ERROR [DeploymentPortlet] 
Could not parse xml in plan
org.apache.geronimo.common.DeploymentException: Could not parse xml in plan
	at org.apache.geronimo.deployment.service.ServiceConfigBuilder.getDeploymentPlan(ServiceConfigBuilder.java:191)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:231)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:138)
	at sun.reflect.GeneratedMethodAccessor214.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:856)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
	at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
	at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: errors:

D:\g30\geronimo-tomcat7-javaee6-3.0-SNAPSHOT\var\temp\demo-realm.xml:26:17: error: cvc-complex-type.3.2.1:
Attribute not allowed (no wildcards allowed): server-side in element login-module@http://geronimo.apache.org/xml/ns/loginconfig-2.0

Descriptor:
<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
  <environment>
    <moduleId>
      <groupId>samples</groupId>
      <artifactId>realm-demo-properties-realm</artifactId>
      <version>2.1.1</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="demo-properties-realm" class="org.apache.geronimo.security.realm.GenericSecurityRealm">
    <attribute name="realmName">demo-properties-realm</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" server-side="true" wrap-principals="false">
          <log:login-domain-name>demo-properties-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/demo_users.properties</log:option>
          <log:option name="groupsURI">var/security/demo_groups.properties</log:option>
        </log:login-module>
      </log:login-config>
    </xml-reference>
  </gbean>
</module>

	at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:187)
	at org.apache.geronimo.deployment.service.ServiceConfigBuilder.getDeploymentPlan(ServiceConfigBuilder.java:171)
	... 12 more

-- 
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