jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: Jackrabbit Custom Nodes
Date Tue, 18 Dec 2007 15:04:38 GMT
you probably forgot the register your namespace:

<webfmis=http://your.company.org>
[webfmis:resource] > nt:resource
- webfmis:fileName (string)
- webfmis:size (string)

regards, toby


On 12/18/07, Sean Callan <seancallan@gmail.com> wrote:
> I'm having some trouble creating my own custom nodes and I've done a
> fair amount of searching online but I'm still ending up with errors.
>
> This is the exception that is being generated, it's very cyptic and
> not very informative : "(java.lang.String) Error while parsing
> 'webfmis:resource' (cnd input stream, line 1)"
>
> I have the following code:
>
> ## CND File
> [webfmis:resource] > nt:resource
> - webfmis:fileName (string)
> - webfmis:size (string)
>
> ## Java Loading
> JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
> ticket.getWorkspace().getNodeTypeManager();
> manager.registerNodeTypes(new
> FileInputStream(Properties.getWebInfPath() +
> "/repositoryNodeTypes.cnd"),
> JackrabbitNodeTypeManager.TEXT_X_JCR_CND);
>
> Thanks guys!
>


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message