Hi Rocco, your configuration looks fine to me. Are you sure, that there is no workspace.xml configuration lying around that has a different setting? I still think that the informational message, indicating that some nodes are no longer available, actually tells that the content stored on machine 1 is not visible to machine 2. Did you check what UUID your added item contains and whether it matches one of the two logged in the messages?
Kind regards Dominique On 5/19/08, Rocco Russo <[EMAIL PROTECTED]> wrote: > > Hi Dominique, > thank you for your ready reply. > Sorry for the incorrect report in the first mail (a cut/past mistake). In my > configuration I use a "shared" database installed on the machine 1 > (192.168.11.240) so web-app 1 must be connected to localhost while the > web-app 2 (on machine 2 192.168.11.170) must be connected to 192.168.11.240. > > > The correct configuration files are reported below. I hope it will be useful > for you. Thanks a lot. > > > Machine 1 ----------------------------------------------------------------- > > <?xml version="1.0"?> > <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD > Jackrabbit 1.4//EN" > > "http://jackrabbit.apache.org/dtd/repository-1.4.dtd"> > <!-- Example Repository Configuration File --> > <Repository> > > > <!-- > Database File System (Cluster Configuration) > > This is sample configuration for mysql persistence that can be used > for > clustering Jackrabbit. For other databases, change the connection, > credentials, and schema settings. > --> > > <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> > <param name="driver" value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&characterEnc > oding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" value="J_R_FS_"/> > </FileSystem> > > > <!-- > security configuration > --> > <Security appName="Jackrabbit"> > <!-- > access manager: > class: FQN of class implementing the AccessManager interface > --> > <AccessManager > class="org.apache.jackrabbit.core.security.SimpleAccessManager"> > <!-- <param name="config" value="${rep.home}/access.xml"/> --> > </AccessManager> > > <LoginModule > class="org.apache.jackrabbit.core.security.SimpleLoginModule"> > <!-- anonymous user name ('anonymous' is the default value) --> > <param name="anonymousId" value="anonymous"/> > <!-- > default user name to be used instead of the anonymous user > when no login credentials are provided (unset by default) > --> > <!-- <param name="defaultUserId" value="superuser"/> --> > </LoginModule> > </Security> > > <!-- > location of workspaces root directory and name of default workspace > --> > <Workspaces rootPath="${rep.home}/workspaces" > defaultWorkspace="default"/> > <!-- > workspace configuration template: > used to create the initial workspace if there's no workspace yet > --> > <Workspace name="${wsp.name}"> > <!-- > virtual file system of the workspace: > class: FQN of class implementing the FileSystem interface > --> > <!-- > <FileSystem > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > <param name="path" value="${wsp.home}"/> > </FileSystem> > --> > > > <FileSystem > class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&characterEnc > oding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_FS_${wsp.name}_"/> > </FileSystem> > > <!-- > persistence manager of the workspace: > class: FQN of class implementing the PersistenceManager > interface > --> > <!-- <PersistenceManager > class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager > "> > <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/> > <param name="schemaObjectPrefix" value="${wsp.name}_"/> > </PersistenceManager> --> > > <PersistenceManager > class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&characterEnc > oding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_PM_${wsp.name}_" /> > <param name="externalBLOBs" > value="false" /> > </PersistenceManager> > > <!-- > Search index and the file system it uses. > class: FQN of class implementing the QueryHandler interface > --> > <SearchIndex > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > <param name="path" value="${wsp.home}/index"/> > <param name="textFilterClasses" > value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra > bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP > ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach > e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract > or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap > ache.jackrabbit.extractor.XMLTextExtractor"/> > <param name="extractorPoolSize " value="2"/> > <param name="supportHighlighting" value="true"/> > </SearchIndex> > </Workspace> > > <!-- > Configures the versioning > --> > <Versioning rootPath="${rep.home}/version"> > <!-- > Configures the filesystem to use for versioning for the > respective > persistence manager > --> > <!-- <FileSystem > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > <param name="path" value="${rep.home}/version" /> > </FileSystem> --> > > <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&characterEnc > oding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_V_FS_"/> > </FileSystem> > > > <!-- > Configures the persistence manager to be used for persisting > version state. > Please note that the current versioning implementation is based > on > a 'normal' persistence manager, but this could change in future > implementations. > --> > <!-- <PersistenceManager > class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager > "> > <param name="url" > value="jdbc:derby:${rep.home}/version/db;create=true"/> > <param name="schemaObjectPrefix" value="version_"/> > </PersistenceManager> --> > <PersistenceManager > class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&characterEnc > oding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_V_PM_" /> > <param name="externalBLOBs" > value="false" /> > </PersistenceManager> > > </Versioning> > > <!-- > Search index for content that is shared repository wide > (/jcr:system tree, contains mainly versions) > --> > <SearchIndex > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > <param name="path" value="${rep.home}/repository/index"/> > <param name="textFilterClasses" > value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra > bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP > ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach > e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract > or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap > ache.jackrabbit.extractor.XMLTextExtractor"/> > <param name="extractorPoolSize " value="2"/> > <param name="supportHighlighting" value="true"/> > </SearchIndex> > > <!-- > Cluster Configuration > > This is sample configuration for mysql persistence that can be used > for > clustering Jackrabbit. For other databases, change the connection, > credentials, and schema settings. > --> > > > <Cluster id="node_1"> > <Journal > class="org.apache.jackrabbit.core.journal.DatabaseJournal"> > <param name="revision" > value="${rep.home}/revision"/> > <param name="driver" value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&characterEnc > oding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" value="J_C_"/> > </Journal> > </Cluster> > > > </Repository> > > End ######################################################################## > > > Machine 2 ----------------------------------------------------------------- > > <?xml version="1.0"?> > <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD > Jackrabbit 1.4//EN" > > "http://jackrabbit.apache.org/dtd/repository-1.4.dtd"> > <!-- Example Repository Configuration File --> > <Repository> > > <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> > <param name="driver" value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&charact > erEncoding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" value="J_R_FS_"/> > </FileSystem> > > > <!-- > security configuration > --> > <Security appName="Jackrabbit"> > <!-- > access manager: > class: FQN of class implementing the AccessManager interface > --> > <AccessManager > class="org.apache.jackrabbit.core.security.SimpleAccessManager"> > <!-- <param name="config" value="${rep.home}/access.xml"/> --> > </AccessManager> > > <LoginModule > class="org.apache.jackrabbit.core.security.SimpleLoginModule"> > <!-- anonymous user name ('anonymous' is the default value) --> > <param name="anonymousId" value="anonymous"/> > <!-- > default user name to be used instead of the anonymous user > when no login credentials are provided (unset by default) > --> > <!-- <param name="defaultUserId" value="superuser"/> --> > </LoginModule> > </Security> > > <!-- > location of workspaces root directory and name of default workspace > --> > <Workspaces rootPath="${rep.home}/workspaces" > defaultWorkspace="default"/> > <!-- > workspace configuration template: > used to create the initial workspace if there's no workspace yet > --> > <Workspace name="${wsp.name}"> > <!-- > virtual file system of the workspace: > class: FQN of class implementing the FileSystem interface > --> > <!-- > <FileSystem > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > <param name="path" value="${wsp.home}"/> > </FileSystem> > --> > > > <FileSystem > class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&charact > erEncoding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_FS_${wsp.name}_"/> > </FileSystem> > > <!-- > persistence manager of the workspace: > class: FQN of class implementing the PersistenceManager > interface > --> > <!-- <PersistenceManager > class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager > "> > <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/> > <param name="schemaObjectPrefix" value="${wsp.name}_"/> > </PersistenceManager> --> > > <PersistenceManager > class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&charact > erEncoding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_PM_${wsp.name}_" /> > <param name="externalBLOBs" > value="false" /> > </PersistenceManager> > > <!-- > Search index and the file system it uses. > class: FQN of class implementing the QueryHandler interface > --> > <SearchIndex > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > <param name="path" value="${wsp.home}/index"/> > <param name="textFilterClasses" > value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra > bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP > ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach > e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract > or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap > ache.jackrabbit.extractor.XMLTextExtractor"/> > <param name="extractorPoolSize " value="2"/> > <param name="supportHighlighting" value="true"/> > </SearchIndex> > </Workspace> > > <!-- > Configures the versioning > --> > <Versioning rootPath="${rep.home}/version"> > <!-- > Configures the filesystem to use for versioning for the > respective > persistence manager > --> > <!-- <FileSystem > class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> > <param name="path" value="${rep.home}/version" /> > </FileSystem> --> > > <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&charact > erEncoding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_V_FS_"/> > </FileSystem> > > > <!-- > Configures the persistence manager to be used for persisting > version state. > Please note that the current versioning implementation is based > on > a 'normal' persistence manager, but this could change in future > implementations. > --> > <!-- <PersistenceManager > class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager > "> > <param name="url" > value="jdbc:derby:${rep.home}/version/db;create=true"/> > <param name="schemaObjectPrefix" value="version_"/> > </PersistenceManager> --> > <PersistenceManager > class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"> > <param name="driver" > value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&charact > erEncoding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" > /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" > value="J_V_PM_" /> > <param name="externalBLOBs" > value="false" /> > </PersistenceManager> > > </Versioning> > > <!-- > Search index for content that is shared repository wide > (/jcr:system tree, contains mainly versions) > --> > <SearchIndex > class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> > <param name="path" value="${rep.home}/repository/index"/> > <param name="textFilterClasses" > value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra > bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP > ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach > e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract > or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap > ache.jackrabbit.extractor.XMLTextExtractor"/> > <param name="extractorPoolSize " value="2"/> > <param name="supportHighlighting" value="true"/> > </SearchIndex> > > <!-- > Cluster Configuration > > This is sample configuration for mysql persistence that can be used > for > clustering Jackrabbit. For other databases, change the connection, > credentials, and schema settings. > --> > > > <Cluster id="node_2"> > <Journal > class="org.apache.jackrabbit.core.journal.DatabaseJournal"> > <param name="revision" > value="${rep.home}/revision"/> > <param name="driver" value="com.mysql.jdbc.Driver"/> > <param name="url" > value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&charact > erEncoding=UTF-8" /> > <param name="user" value="root" /> > <param name="password" value="root" /> > <param name="schema" value="mysql"/> > <param name="schemaObjectPrefix" value="J_C_"/> > </Journal> > </Cluster> > > </Repository> > > ---------------------------------------------------------------------------- > >
