I am having the same problem and from what I can tell (I could be wrong)
the jcr spring module isn't calling the correct method.  
It calls the method:
registerNodeTypes(InputStream in, String contentType)
instead of 
registerNodeTypes(InputStream in, String contentType, boolean
reregisterExisting)

I think if it called the 2nd method with true as the value of
reregisterExisting it would work.

-Jared


-----Original Message-----
From: Alexander Klimetschek [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 13, 2008 11:29 AM
To: [email protected]
Subject: Re: Namespace registration

On Fri, Jun 13, 2008 at 4:20 PM, viz06 <[EMAIL PROTECTED]>
wrote:
> Basically test fails as spring config is unable to load
jcrSessionFactory.

Well, then it's a bug in the spring modules. You should file a bug
with that project if it is not fixed yet (don't know). The
already-exists exception is normal and expected behaviour. It's a bit
tricky since it stops import of the entire CND file if one of the
contained node types is already registered, but normally it should not
be a big issue, cause that should only be part of development.

Regards,
Alex

-- 
Alexander Klimetschek
[EMAIL PROTECTED]

Reply via email to