[jboss-jira] [JBoss JIRA] (WFLY-7858) The batch subsystem configuration doesn't validate in standalone-elytron.xml profile

James Perkins (JIRA) issues at jboss.org
Fri Jan 6 16:49:01 EST 2017


     [ https://issues.jboss.org/browse/WFLY-7858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins moved JBEAP-8137 to WFLY-7858:
--------------------------------------------

              Project: WildFly  (was: JBoss Enterprise Application Platform)
                  Key: WFLY-7858  (was: JBEAP-8137)
             Workflow: GIT Pull Request workflow   (was: CDW with loose statuses v1)
          Component/s: Batch
                       Security
                           (was: Batch)
                           (was: Security)
    Affects Version/s:     (was: 7.1.0.DR10)


> The batch subsystem configuration doesn't validate in standalone-elytron.xml profile
> ------------------------------------------------------------------------------------
>
>                 Key: WFLY-7858
>                 URL: https://issues.jboss.org/browse/WFLY-7858
>             Project: WildFly
>          Issue Type: Bug
>          Components: Batch, Security
>            Reporter: James Perkins
>            Assignee: James Perkins
>
> The {{security-domain}} element in {{batch-jberet}} subsystem is not placed correctly in {{standalone-elytron.xml}} profile.
> The current configuration in the profile is:
> {code:xml}
> <subsystem xmlns="urn:jboss:domain:batch-jberet:2.0">
>     <default-job-repository name="in-memory"/>
>     <security-domain name="ApplicationDomain"/>
>     <default-thread-pool name="batch"/>
>     <job-repository name="in-memory">
>         <in-memory/>
>     </job-repository>
>     <thread-pool name="batch">
>         <max-threads count="10"/>
>         <keepalive-time time="30" unit="seconds"/>
>     </thread-pool>
> </subsystem>
> {code}
> And XSD ({{wildfly-batch-jberet_2_0.xsd}}) says:
> {code:xml}
> <xs:sequence>
>     <xs:element name="default-job-repository" type="namedType" minOccurs="1" maxOccurs="1">
>     </xs:element>
>     <xs:element name="default-thread-pool" type="namedType" minOccurs="1" maxOccurs="1">
>     </xs:element>
>     <xs:element name="restart-jobs-on-resume" type="booleanType" minOccurs="0" maxOccurs="1">
>     </xs:element>
>     <xs:element name="security-domain" type="namedType" minOccurs="0" maxOccurs="1">
>     </xs:element>
>     <xs:element name="job-repository" type="job-repositoryType" minOccurs="1" maxOccurs="unbounded"/>
>     <xs:element name="thread-pool" type="thread-poolType" minOccurs="1" maxOccurs="unbounded"/>
>     <xs:element name="thread-factory" type="threads:thread-factory" minOccurs="0" maxOccurs="unbounded"/>
> </xs:sequence>
> {code}
> As a result the profile XML validation ends with error:
> {code}
> cvc-complex-type.2.4.a: Invalid content was found starting with element 'security-domain'. One of '{"urn:jboss:domain:batch-jberet:2.0":default-thread-pool}' is expected.
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list