1 2 Previous Next 24 Replies Latest reply on Jul 24, 2012 4:44 PM by Randall Hauch

    Clearing out a test repository in ModeShape 3.0.0.Beta1

    Tony Herstell Master

      I still get the .lucene.search.DefaultSimilarity is not a subtype of org.apache.lucene.search.Similarity error...

       

      In this case I blew away the data/modeshape directory in JBoss (seemed to clear out the repository ok... not sure if thats ok to do)...

       

      Anyhow; then I clicked on my button to "clear up" the repository and get:

       

      09:28:22,388 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "modeshape-webdav.war"

      09:28:22,388 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "modeshape-rest.war"

      09:28:22,388 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "xxx.war"

      09:34:16,887 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-2) JSF1064: Unable to find or serve resource, /images/someimage.png.

      09:34:16,955 WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-1) JSF1064: Unable to find or serve resource, /images/someimage.png.

      09:34:21,788 INFO xxx > dropRepository

      09:34:21,803 INFO xxx > dropRepository

      09:34:21,816 INFO  [org.infinispan.factories.GlobalComponentRegistry] (http--127.0.0.1-8080-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL

      09:34:21,933 INFO  [org.infinispan.jmx.CacheJmxRegistration] (http--127.0.0.1-8080-1) ISPN000031: MBeans were successfully registered to the platform mbean server.

      09:34:21,936 INFO  [org.jboss.as.clustering.infinispan] (http--127.0.0.1-8080-1) JBAS010281: Started xxx cache from modeshape container

      09:34:22,231 WARNING xxx The field name is not present on org.modeshape.jcr.security.ServletProvider or any of its super types

      09:34:22,290 INFO  xxx session: Session a031b0f6b to workspace 'default obtained for repository ModeShape

      09:34:22,291 INFO xxx [root] Identifier:/

      09:34:22,292 INFO xxx [root] Path:/

      09:34:22,292 INFO xxx > removeMatchingNodes with Node to be cleaned:/ and node Match String of:*Properties*

      09:34:22,295 INFO xxx < removeMatchingNodes with Node to be cleaned:/ and node Match String of:*Properties*

      09:34:22,296 INFO xxx Dropped all Properties

      09:34:22,297 INFO xxx > removeMatchingNodes with Node to be cleaned:/ and node Match String of:*Clients*

      09:34:22,298 INFO xxx < removeMatchingNodes with Node to be cleaned:/ and node Match String of:*Clients*

      09:34:22,299 INFO xxx Dropped all Clients

      09:34:22,302 INFO xxx < dropRepository

      09:34:22,651 INFO xxx HSEARCH000034: Hibernate Search 4.1.1.Final

      09:34:22,677 INFO xxx HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      09:34:22,692 WARN  [com.arjuna.ats.jta] (http--127.0.0.1-8080-1) ARJUNA016029: SynchronizationImple.afterCompletion - failed for org.modeshape.jcr.txn.SynchronizedTransactions$SynchronizedTransaction$1@1c395f24 with exception: org.hibernate.search.SearchException: Wrong configuration of default similarity: class org.apache.lucene.search.DefaultSimilarity is not a subtype of org.apache.lucene.search.Similarity

                at org.hibernate.search.util.impl.ClassLoaderHelper.instanceFromClass(ClassLoaderHelper.java:156) [hibernate-search-engine-4.1.1.Final.jar:4.1.1.Final]

                at org.hibernate.search.util.impl.ClassLoaderHelper.instanceFromName(ClassLoaderHelper.java:111) [hibernate-search-engine-4.1.1.Final.jar:4.1.1.Final]

                at org.hibernate.search.impl.ConfigContext.initSimilarity(ConfigContext.java:204) [hibernate-search-engine-4.1.1.Final.jar:4.1.1.Final]

      ...

      09:34:22,852 WARN  [com.arjuna.ats.arjuna] (http--127.0.0.1-8080-1) ARJUNA012127: TwoPhaseCoordinator.afterCompletion - returned failure for SynchronizationImple< 0:ffff0a46d728:4b41f798:50087bf0:10, org.modeshape.jcr.txn.SynchronizedTransactions$SynchronizedTransaction$1@77fb582f >

      09:34:22,852 INFO  xxx< dropRepository

      09:38:16,838 WARN  [org.hibernate.search.store.impl.DirectoryProviderHelper] (modeshape-cron-2-thread-1) HSEARCH000041: Index directory not found, creating: 'C:\jboss-as-7.1.1.Final\standalone\data\modeshape\xxx\indexes'

      09:38:16,841 WARN  [org.hibernate.search.store.impl.DirectoryProviderHelper] (modeshape-cron-2-thread-1) HSEARCH000041: Index directory not found, creating: 'C:\jboss-as-7.1.1.Final\standalone\data\modeshape\xxx\indexes\nodeinfo'

      09:38:16,931 INFO  [org.hibernate.search.indexes.serialization.avro.impl.AvroSerializationProvider] (modeshape-cron-2-thread-1) HSEARCH000079: Serialization protocol version 1.0

      ...

      09:34:22,852 INFO xxx < dropRepository

      09:38:16,838 WARN  [org.hibernate.search.store.impl.DirectoryProviderHelper] (modeshape-cron-2-thread-1) HSEARCH000041: Index directory not found, creating: 'C:\jboss-as-7.1.1.Final\standalone\data\modeshape\xxx\indexes'

      09:38:16,841 WARN  [org.hibernate.search.store.impl.DirectoryProviderHelper] (modeshape-cron-2-thread-1) HSEARCH000041: Index directory not found, creating: 'C:\jboss-as-7.1.1.Final\standalone\data\modeshape\xxx\indexes\nodeinfo'

      09:38:16,931 INFO  [org.hibernate.search.indexes.serialization.avro.impl.AvroSerializationProvider] (modeshape-cron-2-thread-1) HSEARCH000079: Serialization protocol version 1.0

        • 1. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
          Randall Hauch Master

          In this case I blew away the data/modeshape directory in JBoss (seemed to clear out the repository ok... not sure if thats ok to do)...

          Yup, that's the way to remove all persisted data given the repository configs in the default "standalone-modeshape.xml". It's safe to do as long as you don't need the data. :-)

           

           

          09:34:22,692 WARN  [com.arjuna.ats.jta] (http--127.0.0.1-8080-1) ARJUNA016029: SynchronizationImple.afterCompletion - failed for org.modeshape.jcr.txn.SynchronizedTransactions$SynchronizedTransaction$1@1c395f24 with exception: org.hibernate.search.SearchException: Wrong configuration of default similarity: class org.apache.lucene.search.DefaultSimilarity is not a subtype of org.apache.lucene.search.Similarity

                    at org.hibernate.search.util.impl.ClassLoaderHelper.instanceFromClass(ClassLoaderHelper.java:156) [hibernate-search-engine-4.1.1.Final.jar:4.1.1.Final]

                    at org.hibernate.search.util.impl.ClassLoaderHelper.instanceFromName(ClassLoaderHelper.java:111) [hibernate-search-engine-4.1.1.Final.jar:4.1.1.Final]

                    at org.hibernate.search.impl.ConfigContext.initSimilarity(ConfigContext.java:204) [hibernate-search-engine-4.1.1.Final.jar:4.1.1.Final]

          ...

          This really sounds like a classloader issue: the DefaultSimilarity class (used by Hibernate Search) has a supertype Similarity class that isn't the same as Lucene's Similarity class.

           

          The only time I've seen this before is when ModeShape is installed into an AS7 installation that already had an older version of ModeShape (usually Alpha4 or earlier) installed. That's because in Alpha5 (and maybe Alpha6) we've been tweaking the modules that we install. Might you have done that? If so, you probably had to acknowledge that unzipping ModeShape would overwrite some files. Try installing ModeShape 3.0.0.Beta1 into a fresh AS7 installation.

          • 2. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
            Tony Herstell Master

            It was all sqeaky clean this morning...

             

            Wonder if the POM is dragging something in...

             

            Effective Pom as reported by MyEclipse:

             

            <?xml version="1.0"?>

            <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"

                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

              <modelVersion>4.0.0</modelVersion>

              <groupId>xxx.repository</groupId>

              <artifactId>xxx-service</artifactId>

              <version>0.0.1-SNAPSHOT</version>

              <packaging>war</packaging>

              <name>xxxx-service</name>

              <description>Content repository for xxx based on ModeShape</description>

              <properties>

                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

                <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>

              </properties>

              <dependencyManagement>

                <dependencies>

                  <dependency>

                    <groupId>org.jboss.arquillian.core</groupId>

                    <artifactId>arquillian-core-api</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.core</groupId>

                    <artifactId>arquillian-core-spi</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.core</groupId>

                    <artifactId>arquillian-core-impl-base</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.config</groupId>

                    <artifactId>arquillian-config-api</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.config</groupId>

                    <artifactId>arquillian-config-spi</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.config</groupId>

                    <artifactId>arquillian-config-impl-base</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.test</groupId>

                    <artifactId>arquillian-test-api</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.test</groupId>

                    <artifactId>arquillian-test-spi</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.test</groupId>

                    <artifactId>arquillian-test-impl-base</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.container</groupId>

                    <artifactId>arquillian-container-spi</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.container</groupId>

                    <artifactId>arquillian-container-impl-base</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.container</groupId>

                    <artifactId>arquillian-container-test-api</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.container</groupId>

                    <artifactId>arquillian-container-test-spi</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.container</groupId>

                    <artifactId>arquillian-container-test-impl-base</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.junit</groupId>

                    <artifactId>arquillian-junit-core</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.junit</groupId>

                    <artifactId>arquillian-junit-container</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.junit</groupId>

                    <artifactId>arquillian-junit-standalone</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.testng</groupId>

                    <artifactId>arquillian-testng-core</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.testng</groupId>

                    <artifactId>arquillian-testng-container</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.testng</groupId>

                    <artifactId>arquillian-testng-standalone</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.protocol</groupId>

                    <artifactId>arquillian-protocol-servlet</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.protocol</groupId>

                    <artifactId>arquillian-protocol-jmx</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-cdi</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-ejb</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-resource</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.testenricher</groupId>

                    <artifactId>arquillian-testenricher-initialcontext</artifactId>

                    <version>1.0.1.Final</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap</groupId>

                    <artifactId>shrinkwrap-api</artifactId>

                    <version>1.0.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap</groupId>

                    <artifactId>shrinkwrap-spi</artifactId>

                    <version>1.0.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap</groupId>

                    <artifactId>shrinkwrap-impl-base</artifactId>

                    <version>1.0.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.resolver</groupId>

                    <artifactId>shrinkwrap-resolver-api</artifactId>

                    <version>1.0.0-beta-7</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.resolver</groupId>

                    <artifactId>shrinkwrap-resolver-api-maven</artifactId>

                    <version>1.0.0-beta-7</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.resolver</groupId>

                    <artifactId>shrinkwrap-resolver-impl-maven</artifactId>

                    <version>1.0.0-beta-7</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-api-base</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-api-javaee</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-api-jboss</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-gen</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-impl-base</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-impl-javaee</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-impl-jboss</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                    <artifactId>shrinkwrap-descriptors-spi</artifactId>

                    <version>2.0.0-alpha-3</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-api</artifactId>

                    <version>1.1.0.CR1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-spi</artifactId>

                    <version>1.1.0.CR1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-configuration</artifactId>

                    <version>1.1.0.CR1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-impl</artifactId>

                    <version>1.1.0.CR1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-selenium</artifactId>

                    <version>1.1.0.CR1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-selenium-server</artifactId>

                    <version>1.1.0.CR1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-webdriver</artifactId>

                    <version>1.1.0.CR1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-server</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-api</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-java</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-support</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-android-driver</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-chrome-driver</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-firefox-driver</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-htmlunit-driver</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-ie-driver</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-iphone-driver</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>org.seleniumhq.selenium</groupId>

                    <artifactId>selenium-remote-driver</artifactId>

                    <version>2.24.1</version>

                  </dependency>

                  <dependency>

                    <groupId>com.opera</groupId>

                    <artifactId>operadriver</artifactId>

                    <version>0.14</version>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-selenium-depchain</artifactId>

                    <version>1.1.0.CR1</version>

                    <type>pom</type>

                  </dependency>

                  <dependency>

                    <groupId>org.jboss.arquillian.extension</groupId>

                    <artifactId>arquillian-drone-webdriver-depchain</artifactId>

                    <version>1.1.0.CR1</version>

                    <type>pom</type>

                  </dependency>

                </dependencies>

              </dependencyManagement>

              <dependencies>

                <dependency>

                  <groupId>org.primefaces</groupId>

                  <artifactId>primefaces</artifactId>

                  <version>3.3.1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>com.ocpsoft</groupId>

                  <artifactId>prettyfaces-jsf2</artifactId>

                  <version>3.3.3</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>com.googlecode.libphonenumber</groupId>

                  <artifactId>libphonenumber</artifactId>

                  <version>[4.5,5.0)</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.hibernate</groupId>

                  <artifactId>hibernate-validator</artifactId>

                  <version>4.1.0.Final</version>

                  <scope>provided</scope>

                  <exclusions>

                    <exclusion>

                      <artifactId>slf4j-api</artifactId>

                      <groupId>org.slf4j</groupId>

                    </exclusion>

                  </exclusions>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-jcr</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>javax.jcr</groupId>

                  <artifactId>jcr</artifactId>

                  <version>2.0</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-sequencer-ddl</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-sequencer-images</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-sequencer-java</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-sequencer-mp3</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-sequencer-msoffice</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-sequencer-text</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>org.modeshape</groupId>

                  <artifactId>modeshape-sequencer-xsd</artifactId>

                  <version>3.0.0.Beta1</version>

                  <scope>compile</scope>

                </dependency>

                <dependency>

                  <groupId>junit</groupId>

                  <artifactId>junit</artifactId>

                  <version>4.8.1</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.jboss.arquillian.junit</groupId>

                  <artifactId>arquillian-junit-container</artifactId>

                  <version>1.0.1.Final</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>pl.com.it-crowd.mock-contexts-extension</groupId>

                  <artifactId>mock-contexts-extension-api</artifactId>

                  <version>0.1-SNAPSHOT</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>pl.com.it-crowd.mock-contexts-extension</groupId>

                  <artifactId>mock-contexts-extension-impl</artifactId>

                  <version>0.1-SNAPSHOT</version>

                  <scope>runtime</scope>

                </dependency>

                <dependency>

                  <groupId>org.jboss.shrinkwrap.descriptors</groupId>

                  <artifactId>shrinkwrap-descriptors-api-javaee</artifactId>

                  <version>2.0.0-alpha-3</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.jboss.arquillian.extension</groupId>

                  <artifactId>arquillian-drone-impl</artifactId>

                  <version>1.1.0.CR1</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.jboss.arquillian.extension</groupId>

                  <artifactId>arquillian-drone-selenium</artifactId>

                  <version>1.1.0.CR1</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.jboss.arquillian.extension</groupId>

                  <artifactId>arquillian-drone-selenium-server</artifactId>

                  <version>1.1.0.CR1</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.seleniumhq.selenium</groupId>

                  <artifactId>selenium-java</artifactId>

                  <version>2.24.1</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.seleniumhq.selenium</groupId>

                  <artifactId>selenium-server</artifactId>

                  <version>2.24.1</version>

                  <scope>test</scope>

                  <exclusions>

                    <exclusion>

                      <artifactId>servlet-api-2.5</artifactId>

                      <groupId>org.mortbay.jetty</groupId>

                    </exclusion>

                  </exclusions>

                </dependency>

                <dependency>

                  <groupId>org.jboss.spec</groupId>

                  <artifactId>jboss-javaee-6.0</artifactId>

                  <version>1.0.0.Final</version>

                  <type>pom</type>

                  <scope>provided</scope>

                </dependency>

                <dependency>

                  <groupId>org.jboss.arquillian.container</groupId>

                  <artifactId>arquillian-weld-ee-embedded-1.1</artifactId>

                  <version>1.0.0.CR3</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.jboss.weld</groupId>

                  <artifactId>weld-core</artifactId>

                  <version>1.1.5.Final</version>

                  <scope>test</scope>

                </dependency>

                <dependency>

                  <groupId>org.slf4j</groupId>

                  <artifactId>slf4j-simple</artifactId>

                  <version>1.6.4</version>

                  <scope>test</scope>

                </dependency>

              </dependencies>

              <repositories>

                <repository>

                  <releases>

                    <enabled>true</enabled>

                    <updatePolicy>always</updatePolicy>

                  </releases>

                  <snapshots>

                    <enabled>true</enabled>

                  </snapshots>

                  <id>central</id>

                  <url>http://central</url>

                </repository>

                <repository>

                  <id>prime-repo</id>

                  <name>PrimeFaces Maven Repository</name>

                  <url>http://repository.primefaces.org</url>

                </repository>

                <repository>

                  <id>jboss</id>

                  <name>JBoss repository</name>

                  <url>http://repository.jboss.org/nexus/content/groups/public/</url>

                </repository>

                <repository>

                  <snapshots>

                    <enabled>true</enabled>

                  </snapshots>

                  <id>it-crowd.com.pl</id>

                  <url>http://artifactory.it-crowd.com.pl/repo</url>

                </repository>

              </repositories>

              <pluginRepositories>

                <pluginRepository>

                  <snapshots>

                    <enabled>true</enabled>

                  </snapshots>

                  <id>it-crowd.com.pl</id>

                  <url>http://artifactory.it-crowd.com.pl/repo</url>

                </pluginRepository>

                <pluginRepository>

                  <releases>

                    <enabled>true</enabled>

                    <updatePolicy>always</updatePolicy>

                  </releases>

                  <snapshots>

                    <enabled>true</enabled>

                  </snapshots>

                  <id>central</id>

                  <url>http://central</url>

                </pluginRepository>

              </pluginRepositories>

              <build>

                <sourceDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\src\main\java</sourceDirectory>

                <scriptSourceDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\src\main\scripts</scriptSourceDirectory>

                <testSourceDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\src\test\java</testSourceDirectory>

                <outputDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\target\classes</outputDirectory>

                <testOutputDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\target\test-classes</testOutputDirectory>

                <resources>

                  <resource>

                    <directory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\src\main\resources</directory>

                  </resource>

                </resources>

                <testResources>

                  <testResource>

                    <directory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\src\test\resources</directory>

                  </testResource>

                </testResources>

                <directory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\target</directory>

                <finalName>xx-content-repository-service-0.0.1-SNAPSHOT</finalName>

                <pluginManagement>

                  <plugins>

                    <plugin>

                      <artifactId>maven-antrun-plugin</artifactId>

                      <version>1.3</version>

                    </plugin>

                    <plugin>

                      <artifactId>maven-assembly-plugin</artifactId>

                      <version>2.2-beta-5</version>

                    </plugin>

                    <plugin>

                      <artifactId>maven-dependency-plugin</artifactId>

                      <version>2.1</version>

                    </plugin>

                    <plugin>

                      <artifactId>maven-release-plugin</artifactId>

                      <version>2.0</version>

                    </plugin>

                  </plugins>

                </pluginManagement>

                <plugins>

                  <plugin>

                    <artifactId>maven-compiler-plugin</artifactId>

                    <version>2.3.2</version>

                    <executions>

                      <execution>

                        <id>default-testCompile</id>

                        <phase>test-compile</phase>

                        <goals>

                          <goal>testCompile</goal>

                        </goals>

                        <configuration>

                          <source>1.6</source>

                          <target>1.6</target>

                        </configuration>

                      </execution>

                      <execution>

                        <id>default-compile</id>

                        <phase>compile</phase>

                        <goals>

                          <goal>compile</goal>

                        </goals>

                        <configuration>

                          <source>1.6</source>

                          <target>1.6</target>

                        </configuration>

                      </execution>

                    </executions>

                    <configuration>

                      <source>1.6</source>

                      <target>1.6</target>

                    </configuration>

                  </plugin>

                  <plugin>

                    <artifactId>maven-surefire-plugin</artifactId>

                    <version>2.12</version>

                    <executions>

                      <execution>

                        <id>default-test</id>

                        <phase>test</phase>

                        <goals>

                          <goal>test</goal>

                        </goals>

                        <configuration>

                          <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>

                        </configuration>

                      </execution>

                    </executions>

                    <configuration>

                      <argLine>-Xmx1024m -XX:MaxPermSize=256m</argLine>

                    </configuration>

                  </plugin>

                  <plugin>

                    <artifactId>maven-clean-plugin</artifactId>

                    <version>2.4.1</version>

                    <executions>

                      <execution>

                        <id>default-clean</id>

                        <phase>clean</phase>

                        <goals>

                          <goal>clean</goal>

                        </goals>

                      </execution>

                    </executions>

                  </plugin>

                  <plugin>

                    <artifactId>maven-install-plugin</artifactId>

                    <version>2.3.1</version>

                    <executions>

                      <execution>

                        <id>default-install</id>

                        <phase>install</phase>

                        <goals>

                          <goal>install</goal>

                        </goals>

                      </execution>

                    </executions>

                  </plugin>

                  <plugin>

                    <artifactId>maven-resources-plugin</artifactId>

                    <version>2.4.3</version>

                    <executions>

                      <execution>

                        <id>default-resources</id>

                        <phase>process-resources</phase>

                        <goals>

                          <goal>resources</goal>

                        </goals>

                      </execution>

                      <execution>

                        <id>default-testResources</id>

                        <phase>process-test-resources</phase>

                        <goals>

                          <goal>testResources</goal>

                        </goals>

                      </execution>

                    </executions>

                  </plugin>

                  <plugin>

                    <artifactId>maven-war-plugin</artifactId>

                    <version>2.1.1</version>

                    <executions>

                      <execution>

                        <id>default-war</id>

                        <phase>package</phase>

                        <goals>

                          <goal>war</goal>

                        </goals>

                      </execution>

                    </executions>

                  </plugin>

                  <plugin>

                    <artifactId>maven-deploy-plugin</artifactId>

                    <version>2.5</version>

                    <executions>

                      <execution>

                        <id>default-deploy</id>

                        <phase>deploy</phase>

                        <goals>

                          <goal>deploy</goal>

                        </goals>

                      </execution>

                    </executions>

                  </plugin>

                  <plugin>

                    <artifactId>maven-site-plugin</artifactId>

                    <version>2.0.1</version>

                    <executions>

                      <execution>

                        <id>default-site</id>

                        <phase>site</phase>

                        <goals>

                          <goal>site</goal>

                        </goals>

                        <configuration>

                          <outputDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\target\site</outputDirectory>

                          <reportPlugins>

                            <reportPlugin>

                              <groupId>org.apache.maven.plugins</groupId>

                              <artifactId>maven-project-info-reports-plugin</artifactId>

                            </reportPlugin>

                          </reportPlugins>

                        </configuration>

                      </execution>

                      <execution>

                        <id>default-deploy</id>

                        <phase>site-deploy</phase>

                        <goals>

                          <goal>deploy</goal>

                        </goals>

                        <configuration>

                          <outputDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\target\site</outputDirectory>

                          <reportPlugins>

                            <reportPlugin>

                              <groupId>org.apache.maven.plugins</groupId>

                              <artifactId>maven-project-info-reports-plugin</artifactId>

                            </reportPlugin>

                          </reportPlugins>

                        </configuration>

                      </execution>

                    </executions>

                    <configuration>

                      <outputDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\target\site</outputDirectory>

                      <reportPlugins>

                        <reportPlugin>

                          <groupId>org.apache.maven.plugins</groupId>

                          <artifactId>maven-project-info-reports-plugin</artifactId>

                        </reportPlugin>

                      </reportPlugins>

                    </configuration>

                  </plugin>

                </plugins>

              </build>

              <reporting>

                <outputDirectory>C:\Users\Tony Herstell\Workspaces\MyEclipse 10\xx-content-repository-service\target\site</outputDirectory>

              </reporting>

              <profiles>

                <profile>

                  <id>arquillian-weld-ee-embedded</id>

                  <activation>

                    <activeByDefault>true</activeByDefault>

                  </activation>

                  <dependencies>

                    <dependency>

                      <groupId>org.jboss.spec</groupId>

                      <artifactId>jboss-javaee-6.0</artifactId>

                      <version>1.0.0.Final</version>

                      <type>pom</type>

                      <scope>provided</scope>

                    </dependency>

                    <dependency>

                      <groupId>org.jboss.arquillian.container</groupId>

                      <artifactId>arquillian-weld-ee-embedded-1.1</artifactId>

                      <version>1.0.0.CR3</version>

                      <scope>test</scope>

                    </dependency>

                    <dependency>

                      <groupId>org.jboss.weld</groupId>

                      <artifactId>weld-core</artifactId>

                      <version>1.1.5.Final</version>

                      <scope>test</scope>

                    </dependency>

                    <dependency>

                      <groupId>org.slf4j</groupId>

                      <artifactId>slf4j-simple</artifactId>

                      <version>1.6.4</version>

                      <scope>test</scope>

                    </dependency>

                  </dependencies>

                </profile>

                <profile>

                  <id>arquillian-jbossas-managed</id>

                  <dependencies>

                    <dependency>

                      <groupId>org.jboss.spec</groupId>

                      <artifactId>jboss-javaee-6.0</artifactId>

                      <version>1.0.0.Final</version>

                      <type>pom</type>

                      <scope>provided</scope>

                    </dependency>

                    <dependency>

                      <groupId>org.jboss.as</groupId>

                      <artifactId>jboss-as-arquillian-container-managed</artifactId>

                      <version>7.1.1.Final</version>

                      <scope>test</scope>

                    </dependency>

                    <dependency>

                      <groupId>org.jboss.arquillian.protocol</groupId>

                      <artifactId>arquillian-protocol-servlet</artifactId>

                      <scope>test</scope>

                    </dependency>

                  </dependencies>

                </profile>

              </profiles>

            </project>

            • 3. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
              Randall Hauch Master

              The crazy thing is that the "modules/org/apache/lucene/lucene-core-3.5.0.jar" in the AS7 installation is the standard Lucene Core JAR for 3.5.0 and contains both the DefaultSimilarity and the Similarity classes!

               

              Can you run 'mvn dependency:tree' and look for 'lucene'? I doubt any of the other dependencies use it, but it's worth a shot.

               

              BTW, are you using AS7.1.1.Final?

              • 4. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                Tony Herstell Master

                Ok; had to spend some chainsawing time with the kids....

                 

                Anyhow; I dragged a new Boss 7.1.1.Final and your latest "expode over top" distro and checked what I was asked to confirm overwrite for...

                module.xml !... ok.. let that one go.

                ininispan-code-5.1.2.Final.jar

                The message was that the one in the overwrite file was newer (but the same version) so I accepted it.

                Bother were 1.89M and dates were (16/3/2012 and 22/7/2012).

                The question is why you are are overwriting this at all.... if they are the same file.

                 

                Sorry there was nothing about lucene-core-3.5.0.jar though. I though I may have a lead...

                • 5. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                  Tony Herstell Master

                  >> Can you run 'mvn dependency:tree' and look for 'lucene'? I doubt any of the other dependencies use it, but it's worth a shot.

                   

                  [INFO] Scanning for projects...

                  [INFO]                                                                        

                  [INFO] ------------------------------------------------------------------------

                  [INFO] Building xx-content-repository-service 0.0.1-SNAPSHOT

                  [INFO] ------------------------------------------------------------------------

                  ...

                   

                  [INFO]

                  [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ aq-content-repository-service ---

                  ....

                   

                  [INFO] +- org.modeshape:modeshape-jcr:jar:3.0.0.Beta1:compile

                  [INFO] |  +- org.modeshape:modeshape-jcr-api:jar:3.0.0.Beta1:compile

                  [INFO] |  +- org.modeshape:modeshape-common:jar:3.0.0.Beta1:compile

                  [INFO] |  +- joda-time:joda-time:jar:1.6.2:compile

                  [INFO] |  +- org.modeshape:modeshape-schematic:jar:3.0.0.Beta1:compile

                  [INFO] |  |  \- org.infinispan:infinispan-core:jar:5.1.2.FINAL:compile

                  [INFO] |  |     +- org.jgroups:jgroups:jar:3.0.6.Final:compile

                  [INFO] |  |     +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile

                  [INFO] |  |     +- org.jboss.marshalling:jboss-marshalling-river:jar:1.3.6.GA:compile

                  [INFO] |  |     +- org.jboss.marshalling:jboss-marshalling:jar:1.3.6.GA:compile

                  [INFO] |  |     +- org.codehaus.woodstox:woodstox-core-asl:jar:4.1.1:compile

                  [INFO] |  |     +- org.codehaus.woodstox:stax2-api:jar:3.1.1:compile

                  [INFO] |  |     \- org.rhq.helpers:rhq-pluginAnnotations:jar:3.0.4:compile

                  [INFO] |  +- org.hibernate:hibernate-search-engine:jar:4.1.1.Final:compile

                  [INFO] |  |  +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile

                  [INFO] |  |  +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile

                  [INFO] |  |  \- org.apache.avro:avro:jar:1.5.1:compile

                  [INFO] |  |     +- org.codehaus.jackson:jackson-mapper-asl:jar:1.7.3:compile

                  [INFO] |  |     |  \- org.codehaus.jackson:jackson-core-asl:jar:1.7.3:compile

                  [INFO] |  |     +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile

                  [INFO] |  |     +- org.xerial.snappy:snappy-java:jar:1.0.1-rc3:compile

                  [INFO] |  |     \- org.slf4j:slf4j-api:jar:1.6.1:compile

                  [INFO] |  +- org.apache.lucene:lucene-core:jar:3.5.0:compile

                  [INFO] |  \- org.apache.lucene:lucene-regex:jar:3.0.3:compile

                   

                   

                  >> BTW, are you using AS7.1.1.Final?

                  Yes

                  • 6. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                    Tony Herstell Master

                    From this "simple" search (which was to check if the node "Clients" even existed yet):

                     

                    SELECT [jcr:primaryType], [jcr:created], [jcr:createdBy], [jcr:path] FROM [nt:file] WHERE LOCALNAME() = 'Clients'

                     

                    ( Note: the query may in fact be wrong as was going to use the degbugger (and exceptions) to help learn the syntax)!

                     

                    I get:

                    org.hibernate.search.SearchException: Wrong configuration of default similarity: class org.apache.lucene.search.DefaultSimilarity is not a subtype of org.apache.lucene.search.Similarity

                     

                    This is as vanilla as I can get (Default install into JBoss 7.1.1.Final and your "exploded zip").

                     

                    OS W7.

                    Java 1.6

                    Exploded deployment via MyEclipse.

                     

                     

                    Looks to be the same problem... and its a show stopper for me at the moment.

                    • 7. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                      Tony Herstell Master

                      I also stripped out all teh Arquillian stuff from the POM to no avail...

                      • 8. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                        Tony Herstell Master

                        Finally a lead.

                        I get the above exception UNTIL I hit the repository with a WebDav request (to take a peek at whats happeneing).

                        After this call then I don't seem to get the exception... and in fact; a lot of stuff seems to have been queud up and gets flushed in...

                         

                        Only when I hit the WebDav do I get these lines:

                        13:57:36,200 WARN  [org.hibernate.search.store.impl.DirectoryProviderHelper] (http--127.0.0.1-8080-3) HSEARCH000041: Index directory not found, creating: 'C:\jboss-as-7.1.1.Final\standalone\data\modeshape\xx-repository\xx-repository\indexes'

                        13:57:36,202 WARN  [org.hibernate.search.store.impl.DirectoryProviderHelper] (http--127.0.0.1-8080-3) HSEARCH000041: Index directory not found, creating: 'C:\jboss-as-7.1.1.Final\standalone\data\modeshape\xx-repository\xx-repository\indexes\nodeinfo'

                        13:57:36,210 INFO  [org.hibernate.search.indexes.serialization.avro.impl.AvroSerializationProvider] (http--127.0.0.1-8080-3) HSEARCH000079: Serialization protocol version 1.0

                        May be relevant

                        • 9. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                          Horia Chiorean Master

                          Can you pls post the code which starts-up/injects the repository up to the point (and including) the operation where the exception occurs ?

                           

                          The reason I'm asking, is that we have a whole bunch of integration tests (see here for example: https://github.com/ModeShape/modeshape/blob/master/integration/modeshape-jbossas-integration-tests/src/test/java/org/modeshape/test/integration/SequencersIntegrationTest.java) which inject the repository via CDI and then perform a series of operations. The tests use our vanilla AS7 kit and arquillian and this very weird exception hasn't poppped up yet.

                           

                          It would be great if we could reproduce it in one of our tests.

                           

                          Thanks

                          • 10. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                            Randall Hauch Master

                            Can you try searching the "*.jar.index" files within your AS7 installation to look for "lucene"? This is what I get when I run the "find . -name '*.index' | xargs grep 'apache/lucene" command locally:

                             

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/util/packed

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search/payloads

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/queryParser

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/document

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/util

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis/tokenattributes

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/index

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search/function

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/messages

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/util/fst

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/collation

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/store

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis/standard

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis/standard/std31

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search

                            ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search/spans

                            ./modules/org/apache/lucene/3.5/lucene-regex-3.0.3.jar.index:org/apache/lucene/search/regex

                            ./modules/org/apache/lucene/3.5/lucene-regex-3.0.3.jar.index:org/apache/lucene

                            ./modules/org/apache/lucene/3.5/lucene-regex-3.0.3.jar.index:org/apache/lucene/search

                             

                            That tells me that only the jar files in the 'org.apache.lucene:3.5" module (which ModeShape creates) has Lucene classes. Do you see something similar?

                            • 11. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                              Tony Herstell Master

                              Er... code to what?

                               

                              Do I need code to "start the repository" if its injected via JNDI?

                               

                              Where does it say that in the doco?

                               

                              Anyhow.. here it is...

                               

                               

                               

                              Code to for the repo:

                                  @Resource(mappedName = "java:/jcr/xx-repository")

                                  private javax.jcr.Repository repository;

                               

                               

                               

                              Some other stuff....

                              ---

                               

                                  @Override

                                  public void dropRepository() throws RepositoryException {

                                        logger.info("> dropRepository");

                               

                                        Session session = getAdminSession();

                               

                                        Node rootNode = session.getRootNode();

                                        logger.info("[root] Identifier:" + rootNode.getIdentifier());

                                        logger.info("[root] Path:" + rootNode.getPath());

                               

                                        removeMatchingNodes(rootNode, "*Properties*");

                                        logger.info("Dropped all Properties");

                               

                                        removeMatchingNodes(rootNode, "*Clients*");

                                        logger.info("Dropped all Clients");

                               

                                        session.save();

                               

                                        logger.info("< dropRepository");

                               

                                  }

                               

                               

                              /////////////////

                               

                                  @Override

                                  public void prepareRepository() throws RepositoryException {

                                        logger.info("> prepareRepository");

                               

                                        Session session = getAdminSession();

                               

                                        Node rootNode = session.getRootNode();

                                        logger.info("[root] Identifier:" + rootNode.getIdentifier());

                                        logger.info("[root] Path:" + rootNode.getPath());

                               

                                        /*

                                         * Setup node types

                                         */

                               

                                        // TODO

                               

                               

                                        /*

                                         * Setup Clients node

                                         */

                               

                                        addChildFolder(session, rootNode, "/", "Clients");

                                        addChildFolder(session, rootNode, "/", "Properties");

                               

                                        session.save();

                               

                                        logger.info("< prepareRepository");

                                  }

                              • 12. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                                Tony Herstell Master

                                Had to install Cygwin... sorry...(and run the installer a few times and even reboot to get it to work! - very unlike "old" Cygwin).

                                 

                                Ayhow;

                                 

                                Tony Herstell@TonyHerstell-PC /cygdrive/c/jboss-as-7.1.1.Final

                                $ find . -name '*.index' | xargs grep 'apache/lucene'

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/util/packed

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search/payloads

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/queryParser

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/document

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/util

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis/tokenattributes

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/index

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search/function

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/messages

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/util/fst

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/collation

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/store

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis/standard

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/analysis/standard/std31

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search

                                ./modules/org/apache/lucene/3.5/lucene-core-3.5.0.jar.index:org/apache/lucene/search/spans

                                ./modules/org/apache/lucene/3.5/lucene-regex-3.0.3.jar.index:org/apache/lucene/search/regex

                                ./modules/org/apache/lucene/3.5/lucene-regex-3.0.3.jar.index:org/apache/lucene

                                ./modules/org/apache/lucene/3.5/lucene-regex-3.0.3.jar.index:org/apache/lucene/search

                                • 13. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                                  Tony Herstell Master

                                  I flicked the bean into a singleton and added

                                      @PostConstruct

                                      private void init() {

                                            this.logger.info("> init (Gentlmen - start your ModeShape engines)");

                                            ModeShapeEngine engine = new ModeShapeEngine();

                                            engine.start();

                                            this.logger.info("< init (Gentlmen - ModeShape engine started)");

                                      }

                                   

                                  No change; so I assume the Boss module is firing the engine up.

                                   

                                  The stuff about starting the engine I found in the pages on ModeShape+in+J2SE+applications as opposed to JBoss exploded install.. but it was worth a try.

                                   

                                  08:55:41,860 INFO  [xx.service.repository.RepositoryController] (http--127.0.0.1-8080-2) > isClientsNodeExits

                                  08:55:41,873 INFO  [xx.service.repository.RepositoryServiceImpl] (http--127.0.0.1-8080-2) > init (Gentlmen - start your ModeShape engines)

                                  08:55:41,874 INFO  [xx.service.repository.RepositoryServiceImpl] (http--127.0.0.1-8080-2) < init (Gentlmen - ModeShape engine started)

                                  08:55:41,941 INFO  [org.infinispan.factories.GlobalComponentRegistry] (http--127.0.0.1-8080-2) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL

                                  08:55:42,074 INFO  [org.infinispan.jmx.CacheJmxRegistration] (http--127.0.0.1-8080-2) ISPN000031: MBeans were successfully registered to the platform mbean server.

                                  08:55:42,077 INFO  [org.jboss.as.clustering.infinispan] (http--127.0.0.1-8080-2) JBAS010281: Started xx-repository cache from modeshape container

                                  08:55:44,499 WARNING [org.modeshape.jcr.RepositoryConfiguration$Component] (http--127.0.0.1-8080-2) The field name is not present on org.modeshape.jcr.security.ServletProvider or any of its super types

                                  08:55:44,633 INFO  [org.hibernate.search.Version] (http--127.0.0.1-8080-2) HSEARCH000034: Hibernate Search 4.1.1.Final

                                  08:55:44,656 INFO  [org.hibernate.annotations.common.Version] (http--127.0.0.1-8080-2) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

                                  08:55:44,699 ERROR [org.jboss.ejb3.invocation] (http--127.0.0.1-8080-2) JBAS014134: EJB Invocation failed on component RepositoryServiceImpl for method public abstract boolean com.asurequality.service.repository.RepositoryService.nodeExists(java.lang.String) throws javax.jcr.LoginException,javax.jcr.RepositoryException: javax.ejb.EJBException: org.hibernate.search.SearchException: Wrong configuration of default similarity: class org.apache.lucene.search.DefaultSimilarity is not a subtype of org.apache.lucene.search.Similarity

                                            at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:166) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                            at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:230) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                                  • 14. Re: Clearing out a test repository in ModeShape 3.0.0.Beta1
                                    Randall Hauch Master

                                    Tony Herstell wrote:

                                     

                                    I flicked the bean into a singleton and added

                                        @PostConstruct

                                        private void init() {

                                              this.logger.info("> init (Gentlmen - start your ModeShape engines)");

                                              ModeShapeEngine engine = new ModeShapeEngine();

                                              engine.start();

                                              this.logger.info("< init (Gentlmen - ModeShape engine started)");

                                        }

                                    This is not necessary, and in fact this is not something you should be doing when running in AS7.

                                     

                                    I think what Horia was asking for was the class with the @Resource annotation (e.g., the injected Repository instance) so that we could determine which kind of EJB or component you're using. We already have integration tests for several different kinds of EJBs: @Singleton, @Stateless, and @Stateless with @TransactionManagement( TransactionManagementType.BEAN). If you're using a combination that we're not testing, then we'd try adding it to our suite to try to replicate it.

                                     

                                    Can you try to create a simplified, sanitized, and shareable WAR file that replicates this? If so, then we can try deploying your WAR file with your modified 'standalone-modeshape.xml' file and try debugging the classloader.

                                     

                                    Thanks in advance, and thanks for your continued patience.

                                    1 2 Previous Next