jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Klimetschek" <aklim...@day.com>
Subject Re: Namespace registration
Date Tue, 24 Jun 2008 19:47:34 GMT
Just FYI, because I came across the sources for the spring modules:

The implementation of JackrabbitSessionFactory.registerNodetypes() (in
spring modules 0.9, see [1]) does not catch the
InvalidNodeTypeDefException that is thrown when a nodetype already
exists. It should be fixed by surrounding
contentType); with a try-catch statement.

Someone should send a patch to the spring modules guys. In the
meantime, you can simply extend from JackrabbitSessionFactory and
overwrite the registerNodetypes() method that catches the exception.

[1] https://springmodules.dev.java.net/source/browse/springmodules/projects/jcr/src/java/org/springmodules/jcr/jackrabbit/JackrabbitSessionFactory.java?hideattic=0&rev=1.3&view=markup


Alexander Klimetschek

View raw message