Chad,

Not all operations are supported on the SPI (yet). It should be fairly complete with respect to JSR-170. Some of the JSR-283 functionality is still missing though. See also Jukka's recent mail on the topic [1].

Michael

[1] http://markmail.org/message/keu5ejpkjnzb2ate


ChadDavis wrote:
I tried the straight JCR API to add new node types.  It throws:

 java.lang.UnsupportedOperationException: JCR-2003. Implementation missing

Does this mean that the jcr2spi repository doesn't support
registration of node types?

On Thu, Jan 21, 2010 at 1:28 PM, ChadDavis <[email protected]> wrote:
I want to register new node types with my repository.  It's running as
a WebDAV exported repo.

I tried to the JCR code found at [1], but it doesn't work.  It breaks
with a class cast exception on converting the nodetypemanager to a
jackrabbit node type manager.  Here's the offending line from that
example.

       JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
              session.getWorkspace().getNodeTypeManager();

Is this supposed to work?  I'm on Jackrabbit 2.0

If this isn't supposed to work, how can I load new node types into my
repo.  Is it possible to deploy a .cnd file somewhere that the repo
picks up during initialization?



Reply via email to