Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4434

CLONE - It's impossible to add more than 1 custom workmanager to JCA subsystem

XMLWordPrintable

    • Hide

      Try to start server with this JCA subsystem configuration.

      <subsystem xmlns="urn:jboss:domain:jca:1.1">
      <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
      <bean-validation enabled="true"/>
      <default-workmanager>
      <short-running-threads>
      <core-threads count="50"/>
      <queue-length count="50"/>
      <max-threads count="50"/>
      <keepalive-time time="10" unit="seconds"/>
      </short-running-threads>
      <long-running-threads allow-core-timeout="true">
      <core-threads count="50"/>
      <queue-length count="50"/>
      <max-threads count="50"/>
      <keepalive-time time="10" unit="milliseconds"/>
      <thread-factory name="factory1"/>
      </long-running-threads>
      </default-workmanager>
      <workmanager name="wm">
      <short-running-threads allow-core-timeout="false">
      <core-threads count="5"/>
      <queue-length count="5"/>
      <max-threads count="50"/>
      <keepalive-time time="10" unit="minutes"/>
      <thread-factory name="factory"/>
      </short-running-threads>
      <long-running-threads>
      <core-threads count="0"/>
      <queue-length count="5"/>
      <max-threads count="50"/>
      <keepalive-time time="1" unit="minutes"/>
      </long-running-threads>
      </workmanager>
      <workmanager name="wm1">
      <short-running-threads allow-core-timeout="false">
      <core-threads count="5"/>
      <queue-length count="5"/>
      <max-threads count="50"/>
      <keepalive-time time="10" unit="hours"/>
      <thread-factory name="factory"/>
      </short-running-threads>
      <long-running-threads>
      <core-threads count="0"/>
      <queue-length count="5"/>
      <max-threads count="50"/>
      <keepalive-time time="1" unit="days"/>
      </long-running-threads>
      </workmanager>
      <bootstrap-contexts>
      <bootstrap-context name="bc" workmanager="wm"/>
      <bootstrap-context name="bc1" workmanager="wm1"/>
      </bootstrap-contexts>
      <cached-connection-manager debug="true" error="false"/>
      </subsystem>

      Show
      Try to start server with this JCA subsystem configuration. <subsystem xmlns="urn:jboss:domain:jca:1.1"> <archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/> <bean-validation enabled="true"/> <default-workmanager> <short-running-threads> <core-threads count="50"/> <queue-length count="50"/> <max-threads count="50"/> <keepalive-time time="10" unit="seconds"/> </short-running-threads> <long-running-threads allow-core-timeout="true"> <core-threads count="50"/> <queue-length count="50"/> <max-threads count="50"/> <keepalive-time time="10" unit="milliseconds"/> <thread-factory name="factory1"/> </long-running-threads> </default-workmanager> <workmanager name="wm"> <short-running-threads allow-core-timeout="false"> <core-threads count="5"/> <queue-length count="5"/> <max-threads count="50"/> <keepalive-time time="10" unit="minutes"/> <thread-factory name="factory"/> </short-running-threads> <long-running-threads> <core-threads count="0"/> <queue-length count="5"/> <max-threads count="50"/> <keepalive-time time="1" unit="minutes"/> </long-running-threads> </workmanager> <workmanager name="wm1"> <short-running-threads allow-core-timeout="false"> <core-threads count="5"/> <queue-length count="5"/> <max-threads count="50"/> <keepalive-time time="10" unit="hours"/> <thread-factory name="factory"/> </short-running-threads> <long-running-threads> <core-threads count="0"/> <queue-length count="5"/> <max-threads count="50"/> <keepalive-time time="1" unit="days"/> </long-running-threads> </workmanager> <bootstrap-contexts> <bootstrap-context name="bc" workmanager="wm"/> <bootstrap-context name="bc1" workmanager="wm1"/> </bootstrap-contexts> <cached-connection-manager debug="true" error="false"/> </subsystem>

      09:45:35,526 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
      at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[200,13]
      Message: JBAS014789: Unexpected element '

      {urn:jboss:domain:jca:1.1}

      workmanager' encountered
      at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at org.jboss.as.connector.subsystems.jca.JcaExtension$ConnectorSubsystemParser.readElement(JcaExtension.java:311)
      at org.jboss.as.connector.subsystems.jca.JcaExtension$ConnectorSubsystemParser.readElement(JcaExtension.java:176)
      at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:897) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:332) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:128) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:100) [jboss-as-server-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
      at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.2.Final-SNAPSHOT.jar:7.1.2.Final-SNAPSHOT]
      ... 3 more

              bstansbe@redhat.com Brian Stansberry
              vrastsel_jira Vladimir Rastseluev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: