Wildfly subsystem configuration attribute not allowed here

Viewed 658

I would like to set in the WildFly/JBoss ejb3 subsystem enable-graceful-txn-shutdown to true.

Tried two approaches:

<subsystem xmlns="urn:jboss:domain:ejb3:4.0" enable-graceful-txn-shutdown="true">

and

<subsystem xmlns="urn:jboss:domain:ejb3:4.0">
    <enable-graceful-txn-shutdown value="true"/>

Both times I got a Validation error in standalone.xml:

'enable-graceful-txn-shutdown' isn't an allowed attribute for the 'subsystem'

element 'enable-graceful-txn-shutdown' isn't an allowed element here

What is the right place?

1 Answers

Your subsystem tag's namespace is incorrect, enable-graceful-txn-shutdown isn't defined in urn:jboss:domain:ejb3:4.0 but in urn:jboss:domain:ejb3:5.0 (which is new in Wildfly 11).

If you check the XSD defining this namespace (which can be found in the docs/schema dir of your wildfly install, in this case as the wildfly-ejb3_3_5_0.xsd file), you'll find as Omoro pointed out that this tag should be at the root of your subsystem with a value boolean attribute, i.e.

<subsystem xmlns="urn:jboss:domain:ejb3:5.0">
  <enable-graceful-txn-shutdown value="true"/>
Related