jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milan Trajkovic" <mil...@gmail.com>
Subject Re: JackRabbit - Tomcat two problems
Date Mon, 24 Jul 2006 11:34:35 GMT
Hello.
Thanks for the point. I have added servlet that controls startup and shutdown,
and it seems to work. NPE is gone. Thank everybody for help again.

Yes, the documentation could be a little more explicit on this.

Kind regards,
Milan

2006/7/23, Jukka Zitting :
> Hi,
>
> Ah, that explains the issue. The default JVM shutdown hook in
> RepositoryImpl is way too late for shutting down the repository within
> a web application. You need to explicitly call
> RepositoryImpl.shutdown() in a Servelt.destroy() or a similar context.
> Normally this is best handled by the same servlet that instantiates
> the repository in the first place.
>
> It seems that this information is not included in the model 1 howto on
> the web site. Sorry for that, I'll go on and fix the site.
>
> BR,
>
> Jukka Zitting
>
> --
> Yukatan - http://yukatan.fi/ - info@yukatan.fi
> Software craftsmanship, JCR consulting, and Java development
>

Mime
View raw message