Hi Marcel, Due to deployment issues (can't use BindableRepository as jndi resource due to class path conflict with the server), I loaded Jackrabbit classes and my content managing service JAR file from the EAR root, and used RepositoryImpl directly. In my initialization code, I used similar Runtime hook as the BindableRepository to ensure the shutdown method was invoked. As you've mentioned in Jira entries jcr-120 and jcr-57, it seems to me that the shutdown hook is invoked too late in the process. I may need to find another way/place to ensure the shutdown is invoked. Any suggestion? Thanks, Lei
Marcel Reutegger <[EMAIL PROTECTED]> wrote on 12/18/2006 03:17:09 AM: > We once had a similar issue in 0.9 when jackrabbit was running in a > tomcat web > application. There it may happen that tomcat invalidates the web application > classloader before the repository is shutdown. In that case tomcat prevents > jackrabbit from loading new classes during the shutdown sequence. > > See http://issues.apache.org/jira/browse/JCR-120 > > When and how do you shutdown the repository? > > regards > marcel > > Lei Zhou wrote: > > Hi, > > > > When shutting down repository, I got the following error. (Jackrabbit > > v1.1.1) > > > > [15/12/06 15:21:28:219 EST] 0000003d SystemErr R > > java.lang.IllegalAccessError: > > org.apache.commons.collections.buffer.UnboundedFifoBuffer: trying to > > access class org/apache/commons/collections/buffer/UnboundedFifoBuffer$1 > > at > > org.apache.commons.collections.buffer.UnboundedFifoBuffer. > iterator(UnboundedFifoBuffer.java:274) > > at java.util.AbstractCollection.clear(AbstractCollection.java:434) > > at > > org.apache.commons.collections.collection.SynchronizedCollection. > clear(SynchronizedCollection.java:107) > > at > > org.apache.jackrabbit.core.query.lucene.IndexMerger. > dispose(IndexMerger.java:206) > > at > > org.apache.jackrabbit.core.query.lucene.MultiIndex. > close(MultiIndex.java:646) > > at > > org.apache.jackrabbit.core.query.lucene.SearchIndex. > close(SearchIndex.java:343) > > at > > org.apache.jackrabbit.core.SearchManager. > shutdownQueryHandler(SearchManager.java:538) > > at > > org.apache.jackrabbit.core.SearchManager.close(SearchManager.java:299) > > at > > org.apache.jackrabbit.core.RepositoryImpl$WorkspaceInfo. > dispose(RepositoryImpl.java:1721) > > at > > org.apache.jackrabbit.core.RepositoryImpl. > doShutdown(RepositoryImpl.java:903) > > at > > org.apache.jackrabbit.core.RepositoryImpl.shutdown(RepositoryImpl.java:867) > > > > my code is like: (RepositoryImpl)myRepository.shutdown(); > > > > Has anyone seen this before? > > > > > > Thanks, > > Lei
