jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Jentzsch <simonjentz...@yahoo.de>
Subject Shutdown Hangs
Date Wed, 05 Mar 2008 16:20:05 GMT

I'm using jackrabbit together with spring and the 
org.springmodules.jcr.support.OpenSessionInViewFilter.  It works great 
and Spring takes care of all the starting and shutdown-cleanup, but 
whenever I shutdown my Tomcat the Repository hangs on this line:

shutdownLock.writeLock().acquire();    (RepositoryImpl:939)

It seemes to me, that the WriterPreferenceReadWriteLock is waiting for 
all LockWriters to finish, but he is waiting forever.
I don't know who should hold another Lock on it.

I just made an update from 1.3 to 1.4 but the shutdown did not get better.

Does anyone have a Idea?

Here my spring-config:

 <!--  JCR -->
  <bean id="jcrRepository" 
    <!-- normal factory beans params -->
    <property name="configuration" 
    <property name="homeDir" value="file:."/>

<!-- org.springmodules.jcr.JcrSessionFactory -->

   <bean id="jcrSessionFactory" 
    <property name="repository" ref="jcrRepository"/>
    <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"/>
     <property name="eventListeners">
         <bean class="org.springmodules.jcr.EventListenerDefinition">
           <property name="listener" ref="jcrDAO"/>
    <!-- create the password to return it as a char[] -->
   <bean id="password" class="org.x7.core.util.CharArrayCreator">
     <constructor-arg index="0" value="pass"/>

   <bean id="jcrDAO" class="org.x7.core.jcr.JcrDAO" >
     <property name="sessionFactory" ref="jcrSessionFactory"/>
     <property name="template">
        <bean id="jcrTemplate" class="org.springmodules.jcr.JcrTemplate">
         <property name="sessionFactory" ref="jcrSessionFactory"/>
         <property name="allowCreate" value="true"/>
     <property name="transactionMgr">
         <property name="sessionFactory" ref="jcrSessionFactory"/>




Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

View raw message