0 Replies Latest reply on Jul 16, 2012 1:03 PM by Mohamed Mharek

    The PathExpression for the zip sequencer is not accepted in modeshape 2.8.1

    Mohamed Mharek Newbie

      Hello ,

       

      The flowing configuration is not accepted by modeshape :

       

      <mode:sequencers>
                          <mode:sequencer jcr:name="ZIP Sequencer">
                                    <mode:classname>org.modeshape.sequencer.zip.ZipSequencer
                                    </mode:classname>
                                    <mode:description>ZIP Sequencer</mode:description>
                                    <mode:pathExpression>//(*.(zip|gz|jar|war|ear)[*])/jcr:content[@jcr:data]
                                              => /zip/$1
                                    </mode:pathExpression>
                          </mode:sequencer>
                </mode:sequencers>
      
      

      I've got the following exception :

      17:45:12.890 [main] ERROR org.modeshape.jcr.JcrEngine - The engine has 1 warnings while starting.

      17:45:12.890 [main] ERROR org.modeshape.jcr.JcrEngine - The path expression "//(*.(zip|gz|jar|war|ear)[*])/jcr:content[@jcr:data]

                                              => /zip/$1" is invalid on the "ZIP Sequencer" sequencer: Invalid match expression "//(*.(zip|gz|jar|war|ear)[*])/jcr:content[@jcr:data]

                                              => /zip/$1" in the path expression "//(*.(zip|gz|jar|war|ear)[*])/jcr:content[@jcr:data]

                                              => /zip/$1"

      org.modeshape.graph.property.InvalidPathExpressionException: Invalid match expression "//(*.(zip|gz|jar|war|ear)[*])/jcr:content[@jcr:data]

                                              => /zip/$1" in the path expression "//(*.(zip|gz|jar|war|ear)[*])/jcr:content[@jcr:data]

                                              => /zip/$1"

       

      Any help please.

       

      Best regards