Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2285

Unable to configure indexes using the Wildfly 8.1 Subsystem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 4.0.0.Beta2
    • 4.0.0.Beta1
    • Configuration
    • None
    • Hide

      1. Uncomment the index-provider element in modeshape-local-file-index-storage.xml
      2. Run ModeShapeConfigurationTest.testOutputPersistenceOfConfigurationWithLocalFileIndexStorage()

      Expected: The test should pass
      Actual: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1040]
      Message: JBAS014789: Unexpected element '

      {urn:jboss:domain:modeshape:2.0}

      sequencers' encountered
      at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85)
      at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_2_0.readElement(ModeShapeSubsystemXMLReader_2_0.java:70)

      Show
      1. Uncomment the index-provider element in modeshape-local-file-index-storage.xml 2. Run ModeShapeConfigurationTest.testOutputPersistenceOfConfigurationWithLocalFileIndexStorage() Expected: The test should pass Actual: javax.xml.stream.XMLStreamException: ParseError at [row,col] : [1,1040] Message: JBAS014789: Unexpected element ' {urn:jboss:domain:modeshape:2.0} sequencers' encountered at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) at org.modeshape.jboss.subsystem.ModeShapeSubsystemXMLReader_2_0.readElement(ModeShapeSubsystemXMLReader_2_0.java:70)

    Description

      I am currently unable to create indexes using the Wildfly 8.1 Modeshape sub-system.

      Below is the configuration I used:

      <subsystem xmlns="urn:jboss:domain:modeshape:2.0">  
        <repository name="test-repo" cache-name="test-repo" cache-container="modeshape" security-domain="test-security">  
        <workspaces>  
        <workspace name="default">  
        <initial-content>  
                                  /apps/test/config/initial-test-content.xml  
                              </initial-content>  
        </workspace>  
        </workspaces>  
        <node-types>  
        <node-type>/apps/test/config/stock/schema.cnd</node-type>  
        </node-types>  
        <index-providers>  
        <index-provider name="stock" classname="org.modeshape.jcr.index.local.LocalIndexProvider" module="org.modeshape" path="/apps/test/indexes"/>  
        </index-providers>  
        <indexes>  
        <index name="assetName" provider-name="stock" kind="value" node-type="asset:stock" columns="asset:name(STRING)"/>  
        </indexes>  
        </repository>  
      </subsystem>
      

      The following error occurs attempting to parse the XML.

      Message: JBAS014789: Unexpected element '{urn:jboss:domain:jaxrs:1.0}subsystem' encountered
        at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]
        at org.jboss.as.controller.parsing.ParseUtils.nextElement(ParseUtils.java:76) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]
        at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_4(StandaloneXml.java:459) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:145) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
        at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:107) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
        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:104) [wildfly-controller-8.1.0.Final.jar:8.1.0.Final]
        ... 3 more
      

      A full discussion can be found on the forum at:

      https://developer.jboss.org/message/902328?et=watches.email.thread#902328

      I was also able to recreate the issue using the ModeShape test suite, see steps below.

      Attachments

        Issue Links

          Activity

            People

              rhauch Randall Hauch (Inactive)
              ma6rl_jira Richard Lucas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: