same name sibling question

2007-01-03 Thread JavaJ
What happens when you call getNodes() on a Node that has same name sibling children? Will it return all the same name siblings as well? What order would they be in? -- View this message in context: http://www.nabble.com/same-name-sibling-question-tf2915619.html#a8147508 Sent from the Jackrabb

fulltext search contraint on child nodes

2006-10-19 Thread JavaJ
Is there a way to put a fulltext search constraint on the child node of the node you're searching for? For example, I have a nodetype A which has child nodes of nodetype B. I want to do a search that returns all nodes of type A that contain a child node B with the word "foo" in any of its proper

Re: Restoring a node after move

2006-10-17 Thread JavaJ
so the "name" of a node is not part of its own state but the state of its parent? Tobias Bocanegra wrote: > > you would need to restore /a/b/c/d since a move modifies the state of > the parent(s). > > regards, toby > > On 10/17/06, JavaJ <[EMAIL PROTECTED]

Restoring a node after move

2006-10-16 Thread JavaJ
Say you have a Node F at: /A/B/D/F with version 1.0, then you decide to move it to /A/B/D/E (basically renaming it to "E") and version it 1.1. What happens if you restore the Node to version 1.0? Will it's name be "F" or "E"? -- View this message in context: http://www.nabble.com/Restoring-a

Re: Version properties

2006-09-20 Thread JavaJ
JavaJ wrote: > > I'm having a problem with getting Node properties from the different > Versions of a Node. For example: > > javax.jcr.Node node = session.getNodeByUUID(id); > javax.jcr.version.VersionIterator it = > nodeToRestore.getVersionHistory().getAllVersi

Version properties

2006-09-20 Thread JavaJ
I'm having a problem with getting Node properties from the different Versions of a Node. For example: javax.jcr.Node node = session.getNodeByUUID(id); javax.jcr.version.VersionIterator it = nodeToRestore.getVersionHistory().getAllVersions(); while (it.hasNext()) { javax.jcr.version.Version v

Re: Jackrabbit UI Tool

2006-09-12 Thread JavaJ
Torgeir Veimo wrote: > > > On 24 Aug 2006, at 00:30, JavaJ wrote: > >> >> Is there some kind of tool available that will allow you to inspect >> and >> traverse your repository through a UI, like inspect nodes, >> properties, node >> types

Checking out a node

2006-08-25 Thread JavaJ
So according to the javadoc, when you check out a node using Node.checkout(), the isCheckedOut property of that node changes to "true" and all of its non-versionable child nodes become writeable. These changes are persisted immediately. I assume this means that the changes are propagated across

Re: Jackrabbit UI Tool

2006-08-24 Thread JavaJ
I was trying the JLibrary JCR Browser and it requires RMI connection info. How do you enable RMI access in Jackrabbit? Marcel Reutegger wrote: > > JavaJ wrote: >> Is there some kind of tool available that will allow you to inspect and >> traverse your repository through

Jackrabbit UI Tool

2006-08-23 Thread JavaJ
Is there some kind of tool available that will allow you to inspect and traverse your repository through a UI, like inspect nodes, properties, node types? -- View this message in context: http://www.nabble.com/Jackrabbit-UI-Tool-tf2155609.html#a5954851 Sent from the Jackrabbit - Users forum at N

Re: More questions about versioning

2006-08-22 Thread JavaJ
checkout NodeA (and NodeB) before you can add > NodeC. > but whenever you would restore version 1.2 of NodeA, you'll get the > exact same state when you created 1.2 (if NodeB has OPV=Copy). > > regards, toby > > On 8/17/06, JavaJ <[EMAIL PROTECTED]> wrote: >>

Re: More questions about versioning

2006-08-17 Thread JavaJ
Thanks! I read through the spec some more and it takes more sense now... One more question: Let's say you had a versionable NodeA (v1.2) with a versionable child node NodeB (v1.0), with attribute onParentVersion=COPY. You checkout NodeB and add a new non-versionable node NodeC (onParentVersion

More questions about versioning

2006-08-16 Thread JavaJ
I have a couple of other questions about versioning: 1) Is there a way to "rollback" to a previous version? I know that there is a "restore" function, but from the spec, it looks like it just copies the state of the versioned node into the node object. What I'm interested in is being able to ro

Re: Question about versioning

2006-08-16 Thread JavaJ
I have a couple of other questions about versioning: 1) Is there a way to "rollback" to a previous version? I know that there is a "restore" function, but from the spec, it looks like it just copies the state of the versioned node into the node object. What I'm interested in is being able to ro

Re: Question about versioning

2006-08-16 Thread JavaJ
gt;> declaration >> of NodeB in the NodeTypeDefinition for NodeA should contain COPY. >> >> HTH and if I'm wrong or anyone has pointers to good docs PLEASE enlighten >> me. >> >> Doug >> >> >> On 8/15/06, JavaJ < [EMAIL PROTECTED]>

Question about versioning

2006-08-15 Thread JavaJ
I have a question about versioning. NodeA has 2 child nodes NodeB and NodeC NodeA and NodeC is versionable. NodeB is not. If I check out NodeA, can I start making changes to NodeA and all of its children, including NodeC? Then save and checkin NodeA? If so, will I get a Version that includes

Renaming a node

2006-08-07 Thread JavaJ
How do you rename a node? The javax.jcr.Node interface doesn't allow setting the name property. Do you have to perform a session.move() to rename it? -- View this message in context: http://www.nabble.com/Renaming-a-node-tf2069688.html#a5698005 Sent from the Jackrabbit - Users forum at Nabble.

Re: Locallized labels

2006-08-07 Thread JavaJ
No solution yet. For now, I'm going to make them same-name siblings: + cm:name (cm:localizedLabel) = cm:localizedLabel multiple + cm:description (cm:localizedLabel) = cm:localizedLabel multiple -- View this message in context: http://www.nabble.com/Locallized-labels-tf2054152.html#a5697873 Se

Re: Problem adding a child node

2006-08-07 Thread JavaJ
Thank you! -- View this message in context: http://www.nabble.com/Problem-adding-a-child-node-tf2065497.html#a5697836 Sent from the Jackrabbit - Users forum at Nabble.com.

Re: Problem adding a child node

2006-08-07 Thread JavaJ
Debugging the code, I notice that the problem might be in EffectiveNodeType, line 703: ItemDef[] defs = getNamedItemDefs(name); The name that is passed to this method call is the child nodes' name. Shouldn't it be the name of the child node's type?? This might explain why the error mes

Problem adding a child node

2006-08-07 Thread JavaJ
Given the following node types: [cm:myAppContainer] > nt:base,mix:referenceable,mix:versionable + cm:myApp (cm:myApp) = cm:myApp multiple version [cm:myApp] > nt:base,mix:referenceable,mix:versionable - cm:size (long) mandatory - cm:rules mandatory - cm:locale mandatory - cm:address mandatory I

Locallized labels

2006-08-04 Thread JavaJ
For each node, I'd like to define properties that basically collections of label-locale pairs. In Java, I would do something like this: class LocalizedLabel { String label; String locale; } class MyNode { LocalizedLabel[] localizedNames; LocalizedLabel[] localizedDescriptions; .. }

Re: Adding node of custom type

2006-08-04 Thread JavaJ
I guess I did need to specify a custom namespace. Is this a requirement? Or was there a name collision that Jackrabbit doesn't warn about? -- View this message in context: http://www.nabble.com/Adding-node-of-custom-type-tf2052416.html#a5658633 Sent from the Jackrabbit - Users forum at Nabble.

Adding node of custom type

2006-08-04 Thread JavaJ
I can't seem to get this to work even though it should probably really simple. I have a custom type, defined as: [myapp] > nt:base, mix:referenceable, mix:versionable - size (long) mandatory - rules mandatory - locale mandatory - address mandatory The type gets loaded on startup and I verified

Re: AW: Re: custom nodetypes

2006-08-04 Thread JavaJ
I don't think this is implemented yet. I tried it yesterday myself. :) See: http://issues.apache.org/jira/browse/JCR-322 -- View this message in context: http://www.nabble.com/custom-nodetypes-tf2049927.html#a5654224 Sent from the Jackrabbit - Users forum at Nabble.com.

Stream values not implemented?

2006-08-03 Thread JavaJ
When calling Node.setProperty(String, Stream), I'm getting the following error: javax.jcr.RepositoryException: java.lang.IllegalArgumentException: Stream values are not yet implemented.: Stream values are not yet implemented. Is this not implemented yet? -- View this message in context: http:/

Re: loading custom nodetypes

2006-08-03 Thread JavaJ
Stefan Guggisberg wrote: > > On 8/3/06, JavaJ <[EMAIL PROTECTED]> wrote: >> >> Is there a way to tell Jackrabbit to automatically load custom nodetypes >> from >> CND file on startup? It seems to work with putting custom_nodetypes.xml >> in >>

Re: loading custom nodetypes

2006-08-03 Thread JavaJ
Oh well, I guess I'll try and get the xml one working. The sample xml that I get from the jackrabbit site doesn't appear to work. I'm getting the error on startup: Initialization of bean failed; nested exception is java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentImpl java.la

loading custom nodetypes

2006-08-03 Thread JavaJ
Is there a way to tell Jackrabbit to automatically load custom nodetypes from CND file on startup? It seems to work with putting custom_nodetypes.xml in the nodetypes directory, but I can't get it to work with a cnd file. Do you have to load it manually? -- View this message in context: http:

Re: Jackrabbit war on Tomcat

2006-08-02 Thread JavaJ
Pavel Jbanov wrote: > > > I remember having "Premature end of file" error when the repository > directory wasn't fully initialized (due to a similar previous error) and > the workspace.xml or some other xml file was empty. Deleting and > re-initializing the repository directory helped. > >

Jackrabbit war on Tomcat

2006-08-02 Thread JavaJ
Anyone else have trouble deploying the jackrabbit-server-1.0.1.war on Tomcat 5.0.28, using JDK 1.5? The initial error that I get when I tried to deploy the war was: javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found Thi

Re: Initializing Jackrabbit ...

2006-08-01 Thread JavaJ
So I'm having this wierd issue where my application will sometimes try to create the Repository even after it's already been created and I get the error "javax.jcr.RepositoryException: The repository home at c:\jackrabbit appears to be in use since the file at c:\jackrabbit\.lock is locked by anot

Initializing Jackrabbit ...

2006-07-31 Thread JavaJ
Is it possible to initialize Jackrabbit manually on the startup of your webapp? For example, in a Servlet.init() method, calling RepositoryImpl.create() or using a framework like Spring for initialization? Or do you have to use one of the Deployment Models for initalization of the repository? --