jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angelo...@jumpy.it
Subject Re: SpringModule+JCR JackRabbit
Date Fri, 10 Apr 2009 09:20:26 GMT
Hi.
Thnx for helping me.
I have checked and i have all the grants to write on the directory.
These are all my files under WEB-INF/lib:

ajaxtags-1.5.jar
ajaxtags-resources-1.5.jar
asm-1.5.3.jar
asm-attrs-1.5.3.jar
cglib-2.1.3.jar
commons-beanutils-core-1.7.0.jar
commons-collections-3.2.jar
commons-digester-1.6.jar
commons-io-1.4.jar
commons-lang-2.3.jar
commons-logging-1.0.4.jar
displaytag-1.1.jar-1.1.jar
displaytag-export-poi-1.1.jar
displaytag-portlet-1.1.jar
GalleryManager2.0.jar
jcr-1.0.jar-1.0.jar
jericho-html-2.4.jar
jstl-1.1.jar-1.1.jar
jta-1.0.jar
lucene-2.4.1.jar
org.apache.jackrabbit-api-1.5.0.jar
org.apache.jackrabbit-commons-1.5.3.jar
org.apache.jackrabbit-core-1.5.3.jar
org.apache.jackrabbit-jcr-rmi-1.5.0.jar
org.apache.jackrabbit-ocm-1.5.3.jar
org.apache.jackrabbit-spi-1.5.0.jar
org.apache.jackrabbit-spi-commons-1.5.3.jar
org.apache.jackrabbit-textextractors-1.5.0.jar
slf4j-api-1.3.1.jar
slf4j-simple-1.3.1.jar
spring-2.5.6.jar
spring-webmvc-2.5.6.jar
spring.module.jcr-0.9.jar
spring.module.jcr-ocm-fix-0.9.jar
standard-1.1.2.jar-1.1.2.jar
tiles-api-2.0.6.jar
tiles-core-2.0.6.jar
tiles-jsp-2.0.6.jar
util.concurrent-1.3.4.jar


This problems is making me crazy.....any other suggestion pls?
Thnx







-----Messaggio originale-----
Da: Sergey Podatelev [mailto:brightnesslevels@gmail.com]
Inviato: giovedì 9 aprile 2009 19.01
A: users@jackrabbit.apache.org
Oggetto: Re: SpringModule+JCR JackRabbit

Not necessarily the "appears to be in use since the file named .lock
is already locked by the current process" error means repo is started
twice. I was getting this error when repository couldn't be properly
started, sometimes because of some libraries missing, sometimes
because it was forbidden to write in repository_home. Perhaps you
should first check, whether your app has permissions to write to that
.../tmp directory.

On Thu, Apr 9, 2009 at 7:02 PM, <AngeloImm@jumpy.it> wrote:
> Hi.
> This is my environment:
>
> Jackrabbit 1.5.3
> Spring 2.5.6
> SpringModules 0.9
> Tomcat 6
> JVM 6 update 11
>
>
> I try to use springmodules for my own repository; these are my config files:
>
> gallery-jcr-base-namespace-nodetype-registration.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
> xmlns:tx="http://www.springframework.org/schema/tx"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>
> http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
>
> http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
>
> <bean id="jackrabbitSessionFactory" class="org.springmodules.jcr.jackrabbit.JackrabbitSessionFactory">
> <property name="repository" ref="repository" />
> <property name="credentials">
> <bean class="javax.jcr.SimpleCredentials">
> <constructor-arg index="0" value="bogus"
/>
> <constructor-arg index="1">
> <bean factory-bean="password" factory-method="toCharArray"
/>
> </constructor-arg>
> </bean>
> </property>
>
> <property name="namespaces">
> <props>
> <prop key="dc">http://dublincore.org/documents/dcmi-namespace</prop>
> <prop key="ocm">http://jackrabbit.apache.org/ocm</prop>
> <prop key="eng">http://www.eng.it</prop>
> </props>
> </property>
>
> <!-- WARNING: Custom NodeType registration to apply only
once, after uncomment
> it -->
> <!--
> <property name="contentType" value="text/x-jcr-cnd"/>
> <property name="nodeDefinitions">
> <list>
> <value>classpath:/NodeTypes/ocm_discriminator.cnd</value>
> <value>classpath:/NodeTypes/file_resource_dublincore.cnd</value>
> </list>
> </property>
> -->
> </bean>
>
> </beans>
>
>
> gallery-jcr-configuration.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
> xmlns:tx="http://www.springframework.org/schema/tx"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>
> http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
>
> http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
>
>
> <!-- Jackrabbit Repository Local Connection Parameters -->
> <!-- WARNING: A better implementation would be to set JNDI parameters
to
>
> externalizing JCR repository away from web application
-->
>
> <bean id="repository" class="org.springmodules.jcr.jackrabbit.RepositoryFactoryBean"
>>
> <property name="configuration" value="classpath:repository.xml"/>
> <property name="homeDir" value="file:./tmp/repository"/>
> </bean>
> <!-- JNDI repo....Non so se utilizzarlo...tanto se il repository
è interno
> alla web-app non sporchiamo il server... -->
> <!--
> <bean id="repository" class="org.springframework.jndi.JndiObjectFactoryBean">
> <property name="jndiName" value="java:comp/env/jcr/galleryRepository"/>
> </bean>
> -->
> <!-- JCR SessionFactory Manager and Credentials Connection -->
> <bean id="jcrSessionFactory" class="org.springmodules.jcr.JcrSessionFactory">
> <property name="repository" ref="repository" />
> <property name="credentials">
> <bean class="javax.jcr.SimpleCredentials">
> <constructor-arg index="0" value="bogus"
/>
> <constructor-arg index="1">
> <bean factory-bean="password" factory-method="toCharArray"
/>
> </constructor-arg>
> </bean>
> </property>
>
> </bean>
>
> <bean id="password" class="java.lang.String">
> <constructor-arg index="0" value="pass" />
> </bean>
>
> <!-- JCR Transaction Manager -->
> <bean id="jcrTransactionManager" class="org.springmodules.jcr.jackrabbit.LocalTransactionManager">
> <property name="sessionFactory" ref="jcrSessionFactory"/>
> </bean>
>
> <!-- JCR Transaction Proxy Template -->
> <bean id="jcrtxProxyTemplate" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
> <property name="proxyTargetClass">
> <value>true</value>
> </property>
> <property name="transactionManager" ref="jcrTransactionManager"/>
> <property name="transactionAttributes">
> <props>
> <prop key="save*">PROPAGATION_REQUIRED</prop>
> <prop key="*">PROPAGATION_REQUIRED, readOnly</prop>
> </props>
> </property>
> </bean>
>
> <!-- JCR Transaction Repository -->
> <bean id="transactionRepository" class="org.springmodules.jcr.TransactionAwareRepository">
> <property name="allowNonTxRepository" value="true"/>
> <property name="targetFactory" ref="jcrSessionFactory"/>
> </bean>
>
> <!-- Jackrabbit OCM Node Mapping -->
> <bean id="pages" class="org.springframework.beans.factory.config.ListFactoryBean">
> <property name="sourceList">
> <list>
> <value>it.eng.gallery2.manager.ocm.mapping.OcmFileResource</value>
> <value>it.eng.gallery2.manager.ocm.mapping.OcmFile</value>
> <value>it.eng.gallery2.manager.ocm.mapping.OcmFolder</value>
> </list>
> </property>
> </bean>
>
> <bean id="jcrMapper" class="org.apache.jackrabbit.ocm.mapper.impl.annotation.AnnotationMapperImpl">
> <constructor-arg index="0" ref="pages"/>
> </bean>
>
> <!-- JCR Template Mapping Manager -->
> <bean id="jcrMappingTemplate" class="org.springmodules.jcr.jackrabbit.ocm.JcrMappingTemplate">
> <property name="sessionFactory" ref="jcrSessionFactory"/>
> <property name="mapper" ref="jcrMapper"/>
> <property name="allowCreate" value="true"/>
> </bean>
>
> <!--
> <bean id="openSessionInViewInterceptor" class="org.springmodules.jcr.support.OpenSessionInViewInterceptor">
> <property name="sessionFactory">
> <ref bean="jcrSessionFactory" />
> </property>
> </bean>
> -->
>
> <!-- JCR Template Manager -->
> <!--
> <bean id="jcrTemplate" class="org.springmodules.jcr.JcrTemplate">
> <property name="sessionFactory" ref="jcrSessionFactory"/>
> <property name="allowCreate" value="true"/>
> </bean>
> -->
> </beans>
>
> gallery-jcr-manager.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop"
> xmlns:tx="http://www.springframework.org/schema/tx"
> xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>
> http://www.springframework.org/schema/tx
> http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
>
> http://www.springframework.org/schema/aop
> http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
>
> <bean id="jcrOcmObjManager" parent="jcrtxProxyTemplate">
> <property name="target">
> <bean class="it.eng.gallery2.manager.impl.JcrOcmObjManagerImpl">
> <property name="jcrMappingTemplate" ref="jcrMappingTemplate"/>
> </bean>
> </property>
> </bean>
>
> </beans>
>
>
> In my web-app i have this web.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app id="WebApp_ID" version="2.4"
> xmlns="http://java.sun.com/xml/ns/j2ee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
>
> <display-name>GalleryWeb</display-name>
>
> <welcome-file-list>
> <welcome-file>galleryHome.htm</welcome-file>
> </welcome-file-list>
>
> <servlet>
> <servlet-name>GalleryWeb</servlet-name>
> <servlet-class>
> org.springframework.web.servlet.DispatcherServlet
> </servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>GalleryWeb</servlet-name>
> <url-pattern>*.controller</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>GalleryWeb</servlet-name>
> <url-pattern>/galleryHome.htm</url-pattern>
> </servlet-mapping>
>
> <!-- Configurazione Portlet -->
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>
> classpath:config/spring/gallery-view-controller.xml,
> classpath:gallery-jcr-manager.xml,
> classpath:gallery-jcr-configuration.xml
> </param-value>
> </context-param>
>
> <listener>
> <listener-class>
> org.springframework.web.context.ContextLoaderListener
> </listener-class>
> </listener>
>
> <servlet>
> <servlet-name>ViewRendererServlet</servlet-name>
> <servlet-class>
> org.springframework.web.servlet.ViewRendererServlet
> </servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>ViewRendererServlet</servlet-name>
> <url-pattern>/WEB-INF/servlet/view</url-pattern>
> </servlet-mapping>
>
> <servlet>
> <servlet-name>sourceloader</servlet-name>
> <servlet-class>net.sourceforge.ajaxtags.servlets.SourceLoader</servlet-class>
> <init-param>
> <param-name>prefix</param-name>
> <param-value>/ajaxtags</param-value>
> </init-param>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>sourceloader</servlet-name>
> <url-pattern>/ajaxtags/js/*</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>sourceloader</servlet-name>
> <url-pattern>/img/*</url-pattern>
> </servlet-mapping>
>
> <servlet-mapping>
> <servlet-name>sourceloader</servlet-name>
> <url-pattern>/css/*</url-pattern>
> </servlet-mapping>
>
> </web-app>
>
>
> When i start my web application i get this error (i report the full stack
> trace):
> 2009-04-09 17:01:23,359 INFO [org.springframework.web.context.ContextLoader]
> Root WebApplicationContext: initialization started
> 2009-04-09 17:01:23,515 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
> Refreshing org.springframework.web.context.support.XmlWebApplicationContext@15ad36d:
> display name [Root WebApplicationContext]; startup date [Thu Apr 09 17:01:23
> CEST 2009]; root of context hierarchy
> 2009-04-09 17:01:23,765 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
> Loading XML bean definitions from class path resource [config/spring/gallery-view-controller.xml]
> 2009-04-09 17:01:24,000 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
> Loading XML bean definitions from class path resource [gallery-jcr-manager.xml]
> 2009-04-09 17:01:24,109 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
> Loading XML bean definitions from class path resource [gallery-jcr-configuration.xml]
> 2009-04-09 17:01:24,187 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
> Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@15ad36d]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@168c1e1
> 2009-04-09 17:01:24,406 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
> Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@168c1e1:
> defining beans [galleryHomeCTRL,createTreeCTRL,renameFolderCTRL,createFolderCTRL,deleteFolderCTRL,jcrOcmObjManager,repository,jcrSessionFactory,password,jcrTransactionManager,jcrtxProxyTemplate,transactionRepository,pages,jcrMapper,jcrMappingTemplate
];
> root of factory hierarchy
> 2009-04-09 17:01:28,953 INFO [org.springframework.web.context.ContextLoader]
> Root WebApplicationContext: initialization completed in 5594 ms
> 2009-04-09 17:01:29,046 INFO [org.springframework.web.servlet.DispatcherServlet]
> FrameworkServlet 'GalleryWeb': initialization started
> 2009-04-09 17:01:29,046 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
> Refreshing org.springframework.web.context.support.XmlWebApplicationContext@11739d:
> display name [WebApplicationContext for namespace 'GalleryWeb-servlet'];
> startup date [Thu Apr 09 17:01:29 CEST 2009]; parent: org.springframework.web.context.support.XmlWebApplicationContext@15ad36d
> 2009-04-09 17:01:29,062 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
> Loading XML bean definitions from ServletContext resource [/WEB-INF/GalleryWeb-servlet.xml]
> 2009-04-09 17:01:29,125 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
> Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@11739d]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@2e5771
> 2009-04-09 17:01:29,234 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
> Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@2e5771:
> defining beans [messageSource,myViewResolver,beanNameResolver,xmlView,urlMapping,tilesConfigurer,viewResolver];
> parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@168c1e1
> 2009-04-09 17:01:29,437 INFO [org.springframework.web.servlet.view.tiles2.TilesConfigurer]
> TilesConfigurer: adding definitions [/WEB-INF/tilesDefinition/gallery-common-tiles-defs.xml]
> 2009-04-09 17:01:30,015 INFO [org.springframework.web.servlet.DispatcherServlet]
> FrameworkServlet 'GalleryWeb': initialization completed in 969 ms
> 2009-04-09 17:01:31,484 INFO [org.springframework.web.context.ContextLoader]
> Root WebApplicationContext: initialization started
> 2009-04-09 17:01:31,656 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
> Refreshing org.springframework.web.context.support.XmlWebApplicationContext@15d653:
> display name [Root WebApplicationContext]; startup date [Thu Apr 09 17:01:31
> CEST 2009]; root of context hierarchy
> 2009-04-09 17:01:31,984 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
> Loading XML bean definitions from class path resource [config/spring/gallery-view-controller.xml]
> 2009-04-09 17:01:32,187 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
> Loading XML bean definitions from class path resource [gallery-jcr-manager.xml]
> 2009-04-09 17:01:32,234 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]
> Loading XML bean definitions from class path resource [gallery-jcr-configuration.xml]
> 2009-04-09 17:01:32,296 INFO [org.springframework.web.context.support.XmlWebApplicationContext]
> Bean factory for application context [org.springframework.web.context.support.XmlWebApplicationContext@15d653]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@157f53d
> 2009-04-09 17:01:32,515 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
> Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@157f53d:
> defining beans [galleryHomeCTRL,createTreeCTRL,renameFolderCTRL,createFolderCTRL,deleteFolderCTRL,jcrOcmObjManager,repository,jcrSessionFactory,password,jcrTransactionManager,jcrtxProxyTemplate,transactionRepository,pages,jcrMapper,jcrMappingTemplate
];
> root of factory hierarchy
> 2009-04-09 17:01:33,265 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory]
> Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@157f53d:
> defining beans [galleryHomeCTRL,createTreeCTRL,renameFolderCTRL,createFolderCTRL,deleteFolderCTRL,jcrOcmObjManager,repository,jcrSessionFactory,password,jcrTransactionManager,jcrtxProxyTemplate,transactionRepository,pages,jcrMapper,jcrMappingTemplate
];
> root of factory hierarchy
> 2009-04-09 17:01:33,281 ERROR [org.springframework.web.context.ContextLoader]
> Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating
bean
> with name 'galleryHomeCTRL' defined in class path resource [config/spring/gallery-view-controller.xml]:
> Cannot resolve reference to bean 'jcrOcmObjManager' while setting bean
property
> 'jcrOcmObjManager'; nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jcrOcmObjManager' defined in class path
resource
> [gallery-jcr-manager.xml]: Cannot resolve reference to bean 'jcrTransactionManager'
> while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jcrTransactionManager' defined in class
path
> resource [gallery-jcr-configuration.xml]: Cannot resolve reference to bean
> 'jcrSessionFactory' while setting bean property 'sessionFactory'; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'jcrSessionFactory' defined in class path resource
> [gallery-jcr-configuration.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 class path resource
> [gallery-jcr-configuration.xml]: Invocation of init method failed; nested
> exception is javax.jcr.RepositoryException: The repository home C:\pr5sit\eclipse\tmp\repository
> appears to be in use since the file named .lock is already locked by the
> current process.
> 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.deployDirectory(HostConfig.java:926)
> at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
> 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 'jcrOcmObjManager' defined in class path resource
> [gallery-jcr-manager.xml]: Cannot resolve reference to bean 'jcrTransactionManager'
> while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jcrTransactionManager' defined in class
path
> resource [gallery-jcr-configuration.xml]: Cannot resolve reference to bean
> 'jcrSessionFactory' while setting bean property 'sessionFactory'; nested
> exception is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'jcrSessionFactory' defined in class path resource
> [gallery-jcr-configuration.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 class path resource
> [gallery-jcr-configuration.xml]: Invocation of init method failed; nested
> exception is javax.jcr.RepositoryException: The repository home C:\pr5sit\eclipse\tmp\repository
> appears to be in use since the file named .lock is already locked by the
> current process.
> 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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
> ... 42 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'jcrTransactionManager' defined in class path resource
> [gallery-jcr-configuration.xml]: Cannot resolve reference to bean 'jcrSessionFactory'
> while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'jcrSessionFactory' defined in class path
resource
> [gallery-jcr-configuration.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 class path resource
> [gallery-jcr-configuration.xml]: Invocation of init method failed; nested
> exception is javax.jcr.RepositoryException: The repository home C:\pr5sit\eclipse\tmp\repository
> appears to be in use since the file named .lock is already locked by the
> current process.
> 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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
> ... 55 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'jcrSessionFactory' defined in class path resource
> [gallery-jcr-configuration.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 class path resource
> [gallery-jcr-configuration.xml]: Invocation of init method failed; nested
> exception is javax.jcr.RepositoryException: The repository home C:\pr5sit\eclipse\tmp\repository
> appears to be in use since the file named .lock is already locked by the
> current process.
> 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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
> ... 68 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'repository' defined in class path resource [gallery-jcr-configuration.xml]:
> Invocation of init method failed; nested exception is javax.jcr.RepositoryException:
> The repository home C:\pr5sit\eclipse\tmp\repository appears to be in use
> since the file named .lock is already locked by the current process.
> 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)
> ... 81 more
> Caused by: javax.jcr.RepositoryException: The repository home C:\pr5sit\eclipse\tmp\repository
> appears to be in use since the file named .lock is already locked by the
> current process.
> at org.apache.jackrabbit.core.util.RepositoryLock.tryLock(RepositoryLock.java:142)
> at org.apache.jackrabbit.core.util.RepositoryLock.acquire(RepositoryLock.java:121)
> at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:256)
> at org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:618)
> 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)
> ... 91 more
>
>
> It seems like if the repository is started twice......can anybody help
me?
> Where am i missing anything?
>
> Thnx
> Angelo
>
>
> ________________________________________
> Copyright 1999-2007 RTI Interactive Media S.p.A. - P.Iva 03976881007 -
Tutti
> i diritti riservati
>
>
>



--
sp

__________ Informazione NOD32 3997 (20090409) __________

Questo messaggio è stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it

________________________________________
Copyright 1999-2007 RTI Interactive Media S.p.A. - P.Iva 03976881007 - Tutti
i diritti riservati



Mime
View raw message