jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pradeepkudale <pradeepkud...@gmail.com>
Subject Clustering error
Date Mon, 12 Apr 2010 15:14:23 GMT

Hello,

Here is my cluster configuration.
1. Two tomcat running on different machines.
2. Both instance of tomcat pointing to same database(SQL Server 2005)
repository. 

============================================================
Machine 1 repository.xml
============================================================

<Repository>

	<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
		
		
		
		
		
		
	</FileSystem>
	
    <Security appName="Jackrabbit">    
    	<SecurityManager
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" 
    	workspaceName="default"/>
    	        
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager"/>
        
        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">          
                     
        </LoginModule>
    </Security>
	
	<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
	<Workspace name="${wsp.name}">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			 
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			 
			
			
			
			
			
			
		</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">
            
        </SearchIndex>	
	</Workspace>
	
	<Versioning rootPath="${rep.home}/version">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			
			
			
			
			
			
			
		</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">
        
    </SearchIndex>
	
	<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
		
        
		
		
        
        
        
        
        
    </DataStore>
	
	<Cluster id="node1">  		
		<Journal class="org.apache.jackrabbit.core.journal.MSSqlDatabaseJournal">
			
	    	
			
			
			
						    	
  		</Journal>
	</Cluster>
</Repository>


============================================================
Machine 2 repository.xml
============================================================

<Repository>

	<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
		
		
		
		
		
		
	</FileSystem>
	
    <Security appName="Jackrabbit">    
    	<SecurityManager
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" 
    	workspaceName="default"/>
    	        
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager"/>
        
        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">          
                     
        </LoginModule>
    </Security>
	
	<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
	<Workspace name="${wsp.name}">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			 
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			 
			
			
			
			
			
			
		</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">
            
        </SearchIndex>	
	</Workspace>
	
	<Versioning rootPath="${rep.home}/version">
	
		<FileSystem class="org.apache.jackrabbit.core.fs.db.MSSqlFileSystem">
			
			
			
			
			
			
		</FileSystem>
		<PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
			
			
			
			
			
			
			
		</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">
        
    </SearchIndex>
	
	<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
		
        
		
		
        
        
        
        
        
    </DataStore>
	
	<Cluster id="node2">  		
		<Journal class="org.apache.jackrabbit.core.journal.MSSqlDatabaseJournal">
			
	    	
			
			
			
						    	
  		</Journal>
	</Cluster>
</Repository>


================================================================

and i am getting below error


org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'jcrSessionFactory' defined in ServletContext resource
[/WEB-INF/config/distributed-transaction/applicationContext-jackrabbit.xml]:
Cannot resolve reference to bean 'repository' while setting bean property
'repository'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'repository' defined in ServletContext resource
[/WEB-INF/config/distributed-transaction/applicationContext-jackrabbit.xml]:
Invocation of init method failed; nested exception is
java.lang.IllegalArgumentException: Invalid type constant: 0
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
	at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
	at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'repository' defined in ServletContext resource
[/WEB-INF/config/distributed-transaction/applicationContext-jackrabbit.xml]:
Invocation of init method failed; nested exception is
java.lang.IllegalArgumentException: Invalid type constant: 0
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
	... 42 more
Caused by: java.lang.IllegalArgumentException: Invalid type constant: 0
	at
org.apache.jackrabbit.value.ValueFactoryImpl.createValue(ValueFactoryImpl.java:136)
	at org.apache.jackrabbit.value.ValueHelper.convert(ValueHelper.java:82)
	at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.doPropertyDefaultValue(CompactNodeTypeDefReader.java:519)
	at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.doPropertyDefinition(CompactNodeTypeDefReader.java:413)
	at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.doItemDefs(CompactNodeTypeDefReader.java:367)
	at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.parse(CompactNodeTypeDefReader.java:234)
	at
org.apache.jackrabbit.core.nodetype.compact.CompactNodeTypeDefReader.<init>(CompactNodeTypeDefReader.java:180)
	at
org.apache.jackrabbit.core.journal.AbstractRecord.readNodeTypeDef(AbstractRecord.java:250)
	at
org.apache.jackrabbit.core.cluster.NodeTypeRecord.doRead(NodeTypeRecord.java:140)
	at
org.apache.jackrabbit.core.cluster.ClusterRecord.read(ClusterRecord.java:70)
	at
org.apache.jackrabbit.core.cluster.ClusterRecordDeserializer.deserialize(ClusterRecordDeserializer.java:57)
	at
org.apache.jackrabbit.core.cluster.ClusterNode.consume(ClusterNode.java:815)
	at
org.apache.jackrabbit.core.journal.AbstractJournal.doSync(AbstractJournal.java:214)
	at
org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:188)
	at
org.apache.jackrabbit.core.cluster.ClusterNode.sync(ClusterNode.java:329)
	at
org.apache.jackrabbit.core.cluster.ClusterNode.start(ClusterNode.java:270)
	at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:344)
	at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:627)
	at
org.springmodules.jcr.jackrabbit.RepositoryFactoryBean.createRepository(RepositoryFactoryBean.java:57)
	at
org.springmodules.jcr.RepositoryFactoryBean.afterPropertiesSet(RepositoryFactoryBean.java:57)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
	... 52 more



-- 
View this message in context: http://n4.nabble.com/Clustering-error-tp1837274p1837274.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message