2 Replies Latest reply on Feb 7, 2013 1:06 PM by Radouane El Marjani

    Federation: Adding an external source doesn't work as I want!

    Radouane El Marjani Newbie

      Hi,

       

      I want to try how it works with federation of external file system in my Repository, in my jboss standalone.xml file I configue my modeshape there, I already add the cache container and the cache based on infinispan:

               

                <subsystem xmlns="urn:jboss:domain:infinispan:1.2" default-cache-container="hibernate">

                   .....                  

                  <cache-container name="modeshape">

                      <local-cache name="orc">

                          <transaction mode="NON_XA"/>

                          <file-store relative-to="jboss.server.data.dir" path="modeshape/store/orc" passivation="false"/>

                      </local-cache>

                  </cache-container>

              </subsystem>

              <subsystem xmlns="urn:jboss:domain:modeshape:1.0">

                  <repository name="orc" cache-name="orc" cache-container="modeshape">

                      <workspaces default-workspace="orc" allow-workspace-creation="false">

                          <workspace name="orc"/>

                      </workspaces>

                     <external-sources>

                          <source name="fsSource" classname="org.modeshape.connector.filesystem.FileSystemConnector" cacheTtlSeconds="1" readonly="true" directoryPath="/tmp">

                              <projection>

                                  orc:/projection1 => /

                              </projection>

                          </source>

                      </external-sources>

                  </repository>

              </subsystem>

       

      Now I try to access to my external file system direct through my created repository through webdav and rest, but I get some Exception and I can't access the external file system. What I do wrong?

      I do all this  looking in Modeshape  documentation: https://docs.jboss.org/author/display/MODE/Configuring+ModeShape+in+AS7 kapital: "Add and remove external sources" using CLI, but when I go over rest to this URL: http://localhost:8080/modeshape-rest/orc/

      I see this error:

      ----------------------

      Caused by: java.lang.IllegalStateException: No match foundntat java.util.regex.Matcher.group(Matcher.java:485)ntat org.modeshape.jcr.RepositoryConfiguration$Federation$ProjectionConfiguration.

      -------------------

      Before adding external sources, every thing works fine.

       

      Can someone help?

       

      Thanks,

       

      Radouane