Re: How can I access to the TextExtractor result?

2009-11-24 Thread Dave Brosius
I'm assuming that this is only safe when the repository is not open thru jackrabbit, otherwise concurrent havoc will insue. Sébastien Launay wrote: Hi Paco, If you are not afraid to get their hands dirty you can use Luke [1] and analyze the indexes found in repository/workspaces/*/index. You

Re: JCR-RMI, SPI, WEBDAV, and Sling's REST

2009-11-23 Thread Dave Brosius
Perhaps you are interested in this? http://jackrabbit.apache.org/jackrabbit-jcr-rmi.html ChadDavis wrote: I'm having a hard time sorting out deployment information from the web site. In perusing the mailing list, I find people recommending WEBDAV or Sling as alternatives to JCR-RMI for

Re: JCR-RMI, SPI, WEBDAV, and Sling's REST

2009-11-23 Thread Dave Brosius
I had it working through rmi, but just to play around with. Don't have a clue about performance. ChadDavis wrote: On Mon, Nov 23, 2009 at 2:49 PM, Dave Brosius dbros...@mebigfatguy.com wrote: Perhaps you are interested in this? http://jackrabbit.apache.org/jackrabbit-jcr-rmi.html

Re: Extracting content from document

2009-11-15 Thread Dave Brosius
If there's no direct way... :) I suppose you could create your own text extractor that derived from MsWordTextExtractor, overrides extractText and delegate to super in a try/catch block. Then specify this extractor in your repository.xml file. LukashP wrote: Hi, It's my first post here,

Re: Problem with ISO9075 encoded name in XPath Query?

2009-03-02 Thread Dave Brosius
Don't encode the name when you save it. Only encode the name when using xpath. - Original Message - From: Mario-Leander Reimer leander.rei...@vva-networks.de To: users@jackrabbit.apache.org Sent: Monday, March 02, 2009 10:29 AM Subject: Problem with ISO9075 encoded name in XPath

Re: NoClassDefFoundError on OCM Test

2009-03-02 Thread Dave Brosius
Do you have a cglib.jar on your classpath? - Original Message - From: Fernando Cabredo fcabred...@yahoo.com To: users@jackrabbit.apache.org Sent: Monday, March 02, 2009 8:50 PM Subject: NoClassDefFoundError on OCM Test Hi, I would like to get some help that is causing my OCM test.

RE: Apostrophe in path generates error

2009-02-23 Thread Dave Brosius
see org.apache.jackrabbit.utils.Text.escapeIllegalJcrChars -Original Message- From: Chris she...@yahoo.com Sent: Monday, February 23, 2009 5:24pm To: users@jackrabbit.apache.org Subject: Apostrophe in path generates error When I call session.getItem(path) and the path has an apostrophe

Re: issue with the firstHop tuutorial

2008-10-18 Thread Dave Brosius
You are missing some jars from your classpath Specifically Jars with base names of poi.jar jackrabbit-text-extractors.jar Depending on what you downloaded they may have version numbers in the name. - Original Message - From: far4ever [EMAIL PROTECTED] To:

RE: Storing Files(XML) in Jackrabbit

2008-10-17 Thread Dave Brosius
The type of file really doesn't matter all that much. You'd probably want to create a node of type nt:file, with an associated child node of type jcr:content, and store it there See http://wiki.apache.org/jackrabbit/nt:file also here http://www.ibm.com/developerworks/java/library/j-jcr/

Exception in lucene search when index maintains a deleted document

2008-08-14 Thread Dave Brosius
Greetings, occasionally i get exceptions doing searches caused ostensibly by deleted documents (at least that is what the stack trace says). Below is one such stack trace: in org.apache.jackrabbit.core.query.lucene.CachingIndexReader.getParent(int n, Bitset deleted) it does if (parent ==

Re: NTD and prefixed names - sharepoint

2008-08-12 Thread Dave Brosius
No, it is no must, you can have node and property names without namespace prefixes. So you can always use Property p = n.getProperty(myprop); Well, If i define my ntd as: acme = 'http://www.acme.com/coyote/1.0' nt = 'http://www.jcp.org/jcr/nt/1.0' [acme:Plan] nt:folder + 'acme:Anvil'

Re: DB Backed Repository question

2008-08-07 Thread Dave Brosius
Our company precreates the tables as well, and also controls the use of prefixes so it's not a problem. Customers get real cranky if you tell them that some application is going to do ddl for them. The security concerns are not acceptable to them. --dave -Original Message- From:

NTD and prefixed names - sharepoint

2008-08-04 Thread Dave Brosius
Greetings, Perhaps i am very confused here, (likely), but if one uses a node type definition file in jackrabbit, then node names and property names must have namespace prefixes attached to them, as specified by the ntd. Now if we would like to use the same code, without registering the

RE: Jackrabbit

2008-05-30 Thread Dave Brosius
http://mvnrepository.com/artifact/javax.jcr/jcr/1.0 -Original Message- From: abhaankur [EMAIL PROTECTED] Sent: Friday, May 30, 2008 6:01am To: users@jackrabbit.apache.org Subject: Jackrabbit Where to find jcr-1.0.jar file ? -- View this message in context:

RE: node.checkin()

2008-05-15 Thread Dave Brosius
Not sure, but does moving session.save() down below node.checkin() change anything? -Original Message- From: Anil K. Kotha [EMAIL PROTECTED] Sent: Thursday, May 15, 2008 3:04pm To: users@jackrabbit.apache.org Subject: node.checkin() Hi All, I am using jackrabbit on Jboss

Re: Jack Rabbit support for sybase

2008-05-07 Thread Dave Brosius
One thing that appears to me is that in jackrabbit-core\src\main\resources\org\apache\jackrabbit\core\persistence\bundle\sybase.ddl create table ${schemaObjectPrefix}NAMES (ID INTEGER IDENTITY(1,1) PRIMARY KEY, NAME varchar(255) COLLATE Latin1_General_CS_AS not null) is a statement that has

Re: Basic Question

2008-05-05 Thread Dave Brosius
the war file in the proper directory and firing it up. Without Tomcat what do I do to install jackrabbit. I think I am missing something so basic that the documentation I am reading takes it for granted that I know what I am doing. Dave Brosius-2 wrote: Yes, Jackrabbit is completely embeddable

RE: Basic Question

2008-05-02 Thread Dave Brosius
Yes, Jackrabbit is completely embeddable, basically you create an object of type TransientRepository in your app, and that initializes jackrabbit on the fly. There is a repository.xml file that this step refers to, which describes how to set up jackrabbit and where to put the data. see

RE: Searching within Word Documents

2008-04-24 Thread Dave Brosius
Check the textFilterClasses sub element of SearchIndex in the repository.xml to see what text extractors you are using. org.apache.jackrabbit.extractor.MsWordTextExtractor should be there for word documents. org.apache.jackrabbit.extractor.PdfTextExtractor should be there for pdfs

RE: Searching within Word Documents

2008-04-24 Thread Dave Brosius
Also, make sure that you are specifying the correct mimetype for the nt:file word can be application/vnd.ms-word or application/msword and pdf is application/pdf -Original Message- From: Dave Brosius [EMAIL PROTECTED] Sent: Thursday, April 24, 2008 5:48pm To: users

Re: Support for lucene query syntax in jcr:contains()

2008-04-17 Thread Dave Brosius
I traced it down into the LuceneQueryBuilder line 414, where it calls Query context = parser.parse(query.toString()); which is a javacc method. The input is for instance 'car NOT bus' and the output is +11:FULL:Title:car +11:FULL:Title:bus However this is wrong as the input string 'car !bus'

Re: Version.getPredecessors()?

2008-04-09 Thread Dave Brosius
Yes, it should. Strictly speaking i believe it is reading the jcr:baseVersion property of the node, which is a reference property. When you checkin the code does internalSetProperty(NameConstants.JCR_BASEVERSION, InternalValue.create(new UUID(v.getUUID(;

RE: JCR versioning tutorial

2008-04-04 Thread Dave Brosius
This should be be a good start http://www.ibm.com/developerworks/java/library/j-jcr/ -Original Message- From: Florian Holeczek [EMAIL PROTECTED] Sent: Friday, April 4, 2008 8:58am To: users@jackrabbit.apache.org Subject: JCR versioning tutorial Hi all, I'm trying to migrate a wiki

RE: Changing a Node after creating a version

2008-04-04 Thread Dave Brosius
When you first create a node that is versionable and set properties on it, you call save on the node. Then the base version of the node has that property value. From there, everytime you checkout, set properties, checkin, you get a new version with potentially different properties in subsequent

RE: Changing a Node after creating a version

2008-04-04 Thread Dave Brosius
, how do you access them? Thanks, Brett -Original Message- From: Dave Brosius [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 12:16 PM To: users@jackrabbit.apache.org Subject: RE: Changing a Node after creating a version When you first create a node that is versionable and set

RE: Problem searching contents of a node

2008-04-04 Thread Dave Brosius
I believe you need to issue the contains on the nt:resource node itself, not the property //element(*, nt:resource)[jcr:contains(., 'repositoryTemplate')] - Original Message - From: Anand Bhagwat [EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Friday, April 04, 2008 4:07 AM

Re: checkin problem

2008-04-02 Thread Dave Brosius
When you first create a versionable node, and set properties on it you don't have to check it in, session.save is all you need. From then on, if you want to make changes follow this pattern node.checkout(); node.setProperty(..); . node.save(); node.checkin(); session.save();

Re: Modifying the NTD of a workspace

2008-04-02 Thread Dave Brosius
://wiki.apache.org/jackrabbit/NodeTypeRegistry seems to be pretty empty CJ Dave Brosius wrote: We are developing a set of node type definitions for our application, and as is to be expected it is changing over time as we develop it. So far, we have just deleted the repository, and started over whenever

Re: problems with getting binary data out of a repository

2008-04-01 Thread Dave Brosius
Don't use getString on a Binary property. Use getStream - Original Message - From: Douglas Fils [EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Tuesday, April 01, 2008 4:26 PM Subject: problems with getting binary data out of a repository Hello, I am hoping someone can

Modifying the NTD of a workspace

2008-04-01 Thread Dave Brosius
We are developing a set of node type definitions for our application, and as is to be expected it is changing over time as we develop it. So far, we have just deleted the repository, and started over whenever we make a change to the NTD, which is perfectly fine in development. My question is,

Re: Node unfound, Node unsaved

2008-03-31 Thread Dave Brosius
Charles, Take a look at Node Type Definitions. I think this is really what you want, NTDs are kind of like xml schemas, so you get the 'type safety' of knowing that a child of 'reviews' is really a thing you know of as being a review. But with the benefit of having it's own name. See

Re: debugging a query that returns no results

2008-03-28 Thread Dave Brosius
[EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Friday, March 28, 2008 5:42 AM Subject: Re: debugging a query that returns no results Hi Dave, Dave Brosius wrote: When i do a search with a query string such as //[EMAIL PROTECTED]:primaryType = 'prm:File' and jcr:contains

nt:folder allowSameNameSiblings and node names

2008-03-27 Thread Dave Brosius
I read JCR-854, and see that nt:folder does not allow same name sibling (children), which i guess makes sense from a directory point of view. Originally this was fine as i used the name of the 'real' document as the name of the node, and avoided name collisions. Then i continued to run into a

Re: nt:folder allowSameNameSiblings and node names

2008-03-27 Thread Dave Brosius
] Subject: Re: nt:folder allowSameNameSiblings and node names On 3/27/08, Dave Brosius [EMAIL PROTECTED] wrote: I read JCR-854, and see that nt:folder does not allow same name sibling (children), which i guess makes sense from a directory point of view. Originally this was fine as i used

RE: how can I say to jackrabbit to index a text when I put a TIFF in the repository?

2008-03-27 Thread Dave Brosius
Maybe add a reference property to your TIFF node, that references a node that contains the text? -Original Message- From: Paco Avila [EMAIL PROTECTED] Sent: Thursday, March 27, 2008 1:51pm To: users@jackrabbit.apache.org Subject: how can I say to jackrabbit to index a text when I put a

debugging a query that returns no results

2008-03-27 Thread Dave Brosius
Greetings, When i do a search with a query string such as //[EMAIL PROTECTED]:primaryType = 'prm:File' and jcr:contains(@prm:Title, 'lazy')] order by jcr:score() descending it works as i expect. When however i limit the sub tree like /prm:Projects/prm:Project3781/prm:Documents//[EMAIL

Re: Path Constrained queries

2008-03-26 Thread Dave Brosius
Wow that was stupendously stupid on my part. Thanks for helping idiots too. - Original Message - From: Ard Schrijvers [EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Wednesday, March 26, 2008 2:28 AM Subject: RE: Path Constrained queries Hello Dave, How does one determing

Path Constrained queries

2008-03-25 Thread Dave Brosius
I am interested in doing descendant based patch constrained queries. I read section 6.6.3.4 Path Constraint, and infer that in order to specify path constraints, you must know the full path to the node at which you are constraining. These seems odd to me. Why doesn't jcr follow the pattern

FW: Search for creation dates - help

2008-03-21 Thread Dave Brosius
(XPathQueryBuilder.java:707) at org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit(XPathQueryBuilder.java:488) [snip...] I see a possibly similar bug that was fixed: JCR-338 -Original Message- From: Dave Brosius [EMAIL PROTECTED] Sent: Thursday, March 20, 2008 7:15pm To: users

Re: Search for creation dates - help

2008-03-20 Thread Dave Brosius
are referenced from Versions? Do i need to instead just add a creation date property aside from the nt:file lastModifiedDate one? - Original Message - From: Dave Brosius [EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Thursday, March 20, 2008 6:15 PM Subject: Search for creation dates

Re: Struggling with search

2008-03-18 Thread Dave Brosius
: Marcel Reutegger [EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 11:46am To: users@jackrabbit.apache.org Subject: Re: Struggling with search Dave Brosius wrote: My next problem is this. I have this query: //*[jcr:primaryType = 'prm:File' and jcr:contains(jcr:content/@jcr:data, 'sample

Re: Struggling with search

2008-03-17 Thread Dave Brosius
So i've decided to ignore the problem that //element(*, prm:prmFile) just doesn't find anything, as checking the jcr:primaryType = 'prm:File' works fine. My next problem is this. I have this query: //*[jcr:primaryType = 'prm:File' and jcr:contains(jcr:content/@jcr:data, 'sample')] order by

Struggling with search

2008-03-14 Thread Dave Brosius
I am starting to try to get search to work. I have my own node type definitions defined, and are derived from nt:file and nt:folder The are (for lack of a better name) prm:prmFile and prm:prmFolder when I do this search criteria //*[jcr:primaryType = 'prm:prmFile'] if works as expected

Re: Difference between older Jackrabbits and 1.4/1.4.1?

2008-02-22 Thread Dave Brosius
()); } - Original Message - From: Dave Brosius [EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Friday, February 22, 2008 2:57 PM Subject: Difference between older Jackrabbits and 1.4/1.4.1? I have this code i use for running fitnesse tests. It ran without incident in past versions

Re: Difference between older Jackrabbits and 1.4/1.4.1?

2008-02-22 Thread Dave Brosius
. - Original Message - From: Dave Brosius [EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Friday, February 22, 2008 3:48 PM Subject: Re: Difference between older Jackrabbits and 1.4/1.4.1? If it helps any, the originating exception is from SharedItemStateManager public NodeReferences

Re: Difference between older Jackrabbits and 1.4/1.4.1?

2008-02-22 Thread Dave Brosius
oracle? What would the different ones be? - Original Message - From: Dave Brosius [EMAIL PROTECTED] To: users@jackrabbit.apache.org Sent: Friday, February 22, 2008 4:02 PM Subject: Re: Difference between older Jackrabbits and 1.4/1.4.1? Hmm, it looks likely that i am running

JSR170 support for the 'explicit checkout' model

2008-02-19 Thread Dave Brosius
Hi folks, Apparently my google skills aren't up to snuff, but i have been trying to figure out whether jsr170 supports the 'explicit checkout' model, as done with clearcase, sourcesafe, etc, etc. As there is no 'undocheckout' method, i am lead to believe it really only supports the svn/cvs

FW: JSR170 support for the 'explicit checkout' model

2008-02-19 Thread Dave Brosius
of a child node, then restore the parent node, can i then restore the orphaned version of the child node back into the child? Is that legal? -Original Message- From: Dave Brosius [EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 1:42pm To: users@jackrabbit.apache.org Subject: JSR170

Re: non versioned attributes on versioned nodes?

2008-02-16 Thread Dave Brosius
: Re: non versioned attributes on versioned nodes? Hi, On Feb 15, 2008 8:36 PM, Dave Brosius [EMAIL PROTECTED] wrote: I am trying to add a stream attribute to a versionable node that represents auditing information regarding access to the node. To that end, i would prefer

Re: non versioned attributes on versioned nodes?

2008-02-16 Thread Dave Brosius
@jackrabbit.apache.org Sent: Saturday, February 16, 2008 9:03 AM Subject: Re: non versioned attributes on versioned nodes? Hi, On Feb 16, 2008 3:33 PM, Dave Brosius [EMAIL PROTECTED] wrote: I have achieved partial success storing audit info in a child node's stream property. As this stream

non versioned attributes on versioned nodes?

2008-02-15 Thread Dave Brosius
Hello, I am trying to add a stream attribute to a versionable node that represents auditing information regarding access to the node. To that end, i would prefer that the these updates are not done in a checkout()/checkin() scenario as i don't want these changes to be represented in the