3 Replies Latest reply on Sep 16, 2014 10:52 AM by rhauch

    Modeshape 3.8.0 final Spring 4.0.3 InfiniSpan 5.2.7 Lucene 4.10.0

    singhl1

      I have the above stack, which worked on tomcat using lucene 3.6.2, but since upgrading to lucene 4.10.0 i get the following error on startup

       

      14:29:48,470  INFO LogFactory:191 - SLF4J implementation located in the classpath. It will be used by ModeShape for logging.

      14:29:49,042 DEBUG ModeShapeRepositoryFactoryBean:47 - resolveConfigurationResource - start

      14:31:15,267 DEBUG LocalEnvironment:111 - Starting cache manager with global configuration

      GlobalConfiguration{asyncListenerExecutor=ExecutorFactoryConfiguration{factory=org.infinispan.executors.DefaultExecutorFactory@42c164a7}, asyncTransportExecutor=ExecutorFactoryConfiguration{factory=org.infinispan.executors.DefaultExecutorFactory@26b7322e}, evictionScheduledExecutor=ScheduledExecutorFactoryConfiguration{factory=org.infinispan.executors.DefaultScheduledExecutorFactory@453f7ddd}, replicationQueueScheduledExecutor=ScheduledExecutorFactoryConfiguration{factory=org.infinispan.executors.DefaultScheduledExecutorFactory@4b605baf}, globalJmxStatistics=GlobalJmxStatisticsConfiguration{allowDuplicateDomains=true, enabled=false, jmxDomain='org.infinispan', mBeanServerLookup=org.infinispan.jmx.PlatformMBeanServerLookup@232364d2, cacheManagerName='DefaultCacheManager', properties={}}, transport=TransportConfiguration{clusterName='ISPN', machineId='null', rackId='null', siteId='null', strictPeerToPeer=false, distributedSyncTimeout=240000, transport=null, nodeName='null', properties={}}, serialization=SerializationConfiguration{advancedExternalizers={}, marshaller=org.infinispan.marshall.VersionAwareMarshaller@68b02903, version=52, classResolver=null}, shutdown=ShutdownConfiguration{hookBehavior=DEFAULT}, modules={}, site=SiteConfiguration{localSite='null'}, cl=WebappClassLoader

        context: /xxxx

        delegate: false

      ----------> Parent Classloader:

      java.net.URLClassLoader@42932892

      }

      and default configuration:

      Configuration{classLoader=null, clustering=ClusteringConfiguration{async=AsyncConfiguration{asyncMarshalling=false, replicationQueue=null, replicationQueueInterval=5000, replicationQueueMaxElements=1000, useReplicationQueue=false}, cacheMode=LOCAL, hash=HashConfiguration{consistentHashFactory=null, hash=MurmurHash3, numOwners=2, numSegments=60, groupsConfiguration=GroupsConfiguration{enabled=false, groupers=[]}, stateTransferConfiguration=StateTransferConfiguration{chunkSize=10000, fetchInMemoryState=false, originalFetchInMemoryState=null, timeout=240000, awaitInitialTransfer=false, originalAwaitInitialTransfer=null}}, l1=L1Configuration{enabled=false, invalidationThreshold=0, lifespan=600000, onRehash=false, cleanupTaskFrequency=600000}, stateTransfer=StateTransferConfiguration{chunkSize=10000, fetchInMemoryState=false, originalFetchInMemoryState=null, timeout=240000, awaitInitialTransfer=false, originalAwaitInitialTransfer=null}, sync=SyncConfiguration{replTimeout=15000}}, customInterceptors=CustomInterceptorsConfiguration{interceptors=[]}, dataContainer=DataContainerConfiguration{dataContainer=null}, deadlockDetection=DeadlockDetectionConfiguration{enabled=false, spinDuration=100}, eviction=EvictionConfiguration{maxEntries=-1, strategy=NONE, threadPolicy=DEFAULT}, expiration=ExpirationConfiguration{lifespan=-1, maxIdle=-1, reaperEnabled=true, wakeUpInterval=60000}, indexing=IndexingConfiguration{enabled=false, indexLocalOnly=false}, invocationBatching=InvocationBatchingConfiguration{enabled=false}, jmxStatistics=JMXStatisticsConfiguration{enabled=false}, loaders=LoadersConfiguration{cacheLoaders=[], passivation=false, preload=false, shared=false}, locking=LockingConfiguration{concurrencyLevel=32, isolationLevel=READ_COMMITTED, lockAcquisitionTimeout=10000, useLockStriping=false, writeSkewCheck=false}, modules={}, storeAsBinary=StoreAsBinaryConfiguration{enabled=false, storeKeysAsBinary=true, storeValuesAsBinary=true}, transaction=TransactionConfiguration{autoCommit=true, cacheStopTimeout=30000, eagerLockingSingleNode=false, lockingMode=PESSIMISTIC, syncCommitPhase=true, syncRollbackPhase=false, transactionManagerLookup=org.infinispan.transaction.lookup.GenericTransactionManagerLookup@554b9a7, transactionSynchronizationRegistryLookup=null, transactionMode=TRANSACTIONAL, useEagerLocking=false, useSynchronization=true, recovery=RecoveryConfiguration{enabled=true, recoveryInfoCacheName='__recoveryInfoCacheName__'}, reaperWakeUpInterval=1000, completedTxTimeout=15000, use1PcForAutoCommitTransactions=false}, versioning=VersioningConfiguration{enabled=false, scheme=NONE}, unsafe=UnsafeConfiguration{unreliableReturnValues=false}, sites=SiteConfiguration{allBackups=[], backupFor=BackupForConfiguration{remoteCache='null', remoteSite='null'}, disableBackups=false, inUseBackupSites=[]}}

      14:31:15,457 DEBUG ModuleProperties:76 - No module lifecycle SPI classes available

      14:31:15,947 DEBUG ModuleProperties:117 - No module command extensions to load

      14:31:16,117 DEBUG DefaultCacheManager:711 - Started cache manager ISPN on null

      14:31:23,967 DEBUG ModeShapeRepositoryFactoryBean:82 - resolveConfigurationResource - end

      14:31:27,207 DEBUG ModeShapeRepositoryFactoryBean:93 - createRepository - start

      14:31:27,487  INFO JcrRepository:191 - ModeShape version 3.8.0.Final

      14:31:27,497 DEBUG JcrRepository:111 - Activating 'Repository' repository

      14:31:28,737 DEBUG JcrRepository:111 - Starting 'Repository' repository with configuration:

      { "name" : "Repository" , "jndiName" : "" , "workspaces" : { "predefined" : [ "1" , "2" , "3" , "4 ] , "default" : "1 , "allowCreation" : true } , "security" : { "anonymous" : { "roles" : [ "readonly" , "readwrite" , "admin" ] , "useOnFailedLogin" : true } } , "storage" : { "cacheName" : "Repository" , "binaryStorage" : { "type" : "file" , "directory" : "C:\dev_tools\repo/Library/binaries" } } , "query" : { "enabled" : true , "enableFullTextSearch" : false , "indexStorage" : { "type" : "filesystem" , "location" : "C:\dev_tools\repo/Library/indexes" , "lockingStrategy" : "native" , "fileSystemAccessType" : "auto" } , "indexing" : { "rebuildOnStartup" : { "when" : "if_missing" , "mode" : "async" } } , "textExtracting" : { "extractors" : { "tikaExtractor" : { "name" : "Tika content-based extractor" , "classname" : "tika" } } } } , "sequencing" : { "removeDerivedContentWithOriginal" : true , "sequencers" : { "Images in separate location" : { "classname" : "ImageSequencer" , "pathExpression" : "default://(*.(gif|png|pict|jpg))/jcr:content[@jcr:data] => default:/sequenced/images/$1" } } } , "node-types" : [ "common_mixin.cnd" ] }

      14:31:29,567 DEBUG JcrRepository:111 - Loading cache 'Repository' from cache container org.infinispan.manager.DefaultCacheManager@7cbabaab@Address:null

      14:31:29,587  INFO GlobalComponentRegistry:228 - ISPN000128: Infinispan version: Infinispan 'Delirium' 5.2.7.Final

      14:31:30,817 DEBUG AbstractJBossMarshaller:65 - Using JBoss Marshalling

      14:31:31,857 DEBUG AbstractJBossMarshaller:65 - Using JBoss Marshalling

      14:31:33,427 DEBUG AsyncStore:301 - Async cache loader starting org.infinispan.loaders.decorators.AsyncStore@4216ff63

      14:31:33,787 DEBUG FileCacheStore:386 - Using DEFAULT file sync mode

      14:31:33,817 DEBUG InterceptorChain:77 - Interceptor chain size: 9

      14:31:33,817 DEBUG InterceptorChain:78 - Interceptor chain is:

          >> org.infinispan.interceptors.InvocationContextInterceptor

          >> org.infinispan.interceptors.IsMarshallableInterceptor

          >> org.infinispan.interceptors.TxInterceptor

          >> org.infinispan.interceptors.NotificationInterceptor

          >> org.infinispan.interceptors.locking.PessimisticLockingInterceptor

          >> org.infinispan.interceptors.EntryWrappingInterceptor

          >> org.infinispan.interceptors.CacheLoaderInterceptor

          >> org.infinispan.interceptors.CacheStoreInterceptor

          >> org.infinispan.interceptors.CallInterceptor

      14:31:33,887 DEBUG JmxUtil:99 - Object name org.infinispan:type=Cache,name="Repository(local)",manager="DefaultCacheManager",component=Cache already registered

      14:31:33,887  INFO CacheJmxRegistration:85 - ISPN000031: MBeans were successfully registered to the platform MBean server.

      14:31:33,907 DEBUG CacheImpl:590 - Started cache Repository on null

      14:31:34,097 DEBUG CacheContext:64 - Deltas will be used to serializing changes to documents in 'Repository'.

      14:31:34,097 DEBUG CacheContext:65 - Passivation? false

      14:31:34,097 DEBUG CacheContext:66 - Eviction? NONE

      14:31:34,097 DEBUG CacheContext:67 - Clustering mode? LOCAL

      14:31:34,097 DEBUG CacheContext:69 - Using cache with flags [SKIP_REMOTE_LOOKUP, DELTA_WRITE] during SchematicEntry updates

      14:31:34,137 DEBUG CacheContext:78 - Explicit locks will be used when modifying documents in 'Repository' (Infinispan's locking mode is PESSIMISTIC).

      14:31:34,207 ERROR ModeShapeRepositoryFactoryBean:147 - javax.jcr.RepositoryException: Error while starting 'Repository' repository: java.lang.NoClassDefFoundError: org/apache/lucene/search/DefaultSimilarity

       

      I can see that the class org/apache/lucene/search/DefaultSimilarity has moved in lucene 4.10.0 but how do i specify that is should use the new one or is lucene 4.10.0 not compatible with modeshape?