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
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
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
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,
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
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.
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
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:
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/
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 ==
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'
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:
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
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:
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
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
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
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
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
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
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'
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(;
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
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
, 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
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
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();
://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
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
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,
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
[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
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
]
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
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
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
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
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
(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
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
: 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
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
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
());
}
- 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
.
- 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
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
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
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?
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
@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
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
51 matches
Mail list logo