Boden, David | 2 Jan 14:18 2007

Overriding the repository home and config location doesn't work in Tomcat

The .war deployment documentation
http://jackrabbit.apache.org/doc/deploy/howto-model1.html doesn't quite
work for me. The Tomcat resource that I setup doesn't cause the
repository home or the repository config xml file settings to be
updated.

I'd appreciate some feedback if someone has experienced the same
teething problems. Maybe a spelling mistake in the documentation? Does
anyone have this simple use case working successfully?

Question details are posted here:
http://wiki.apache.org/jackrabbit/QuestionsAndAnswers

- Dave

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

This message is intended only for the personal and confidential use of the designated recipient(s) named
above.  If you are not the intended recipient of this message you are hereby notified that any review,
dissemination, distribution or copying of this message is strictly prohibited.  This communication is
for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer
to buy any financial product, an official confirmation of any transaction, or as an official statement of
Lehman Brothers.  Email transmission cannot be guaranteed to be secure or error-free.  Therefore, we do
not represent that this information is complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.

Steven Huey | 2 Jan 19:26 2007

Search on Multiple Value Properties

I tried searching the archives and wiki but couldn't find any  
examples of XPath or SQL queries for searching the contents of  
multiple-value string properties. I have a set of nodes, each with a  
property that can contain multiple string values and I'd like to be  
able to quickly find all the nodes that have a given string as one of  
their values.

Thanks,
Steve

--

Steven Huey
Steven.Huey <at> sparta.com

rainer | 2 Jan 21:31 2007
Picon
Picon

Re: ORDER BY clause in XPath Query using Magnolia


can u tell me why this has no effect? 
the query is being accepted, but the resultset has exactly the same order as
before...
just like i woulndt have ordered by ... 

i checked both ways u told me... and i prayed a little ;) but it didnt
help...

Maybe i have to change the syntax? or sth. like that
so if so. knows why the order by doesnt work plz tell me, thx in advance!

i tried those queries:
"//*[ <at> jcr:primaryType='mgnl:hierarchyNode']/*/*[jcr:contains(., 'foooooo')]
order by  <at> modificationDate"
"//*[ <at> jcr:primaryType='mgnl:hierarchyNode']/*/*[jcr:contains(., 'foooooo')]
order by  <at> jcr:score"

--> no effect - and no exception

Marcel Reutegger wrote:
> 
> 
>> 
>> //*[ <at> jcr:primaryType='mgnl:hierarchyNode']/*/*[jcr:contains(.,
>> 'foooooo')]
> 
> to get the nodes ordered by modification date append:
> 
> order by  <at> modificationDate
(Continue reading)

Háber János | 2 Jan 21:49 2007
Picon

XML configuration problem

Hi!

I have this exception:

org.apache.jackrabbit.core.config.ConfigurationException: Configuration 
element FileSystem not found in Workspace.
    at 
org.apache.jackrabbit.core.config.ConfigurationParser.getElement(ConfigurationParser.java:243)
    at 
org.apache.jackrabbit.core.config.ConfigurationParser.getElement(ConfigurationParser.java:218)
    at 
org.apache.jackrabbit.core.config.ConfigurationParser.parseBeanConfig(ConfigurationParser.java:105)
    at 
org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:324)
    at 
org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:355)
    at 
org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:310)
    at 
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142)
    at 
org.springmodules.jcr.jackrabbit.RepositoryFactoryBean.resolveConfigurationResource(RepositoryFactoryBean.java:80)
    at 
org.springmodules.jcr.RepositoryFactoryBean.afterPropertiesSet(RepositoryFactoryBean.java:56)
    at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1057)
    at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1024)
    at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
(Continue reading)

Jukka Zitting | 3 Jan 10:42 2007
Picon

Re: XML configuration problem

Hi,

On 1/2/07, Háber János <boci <at> javaportal.hu> wrote:
> I have this exception:
>
> org.apache.jackrabbit.core.config.ConfigurationException: Configuration
> element FileSystem not found in Workspace.
> [...]
> I used  this XML:
> [...]
> <Repository>
> [...]
>
> I dunno why. The workspace HAVE FileSystem definition... but it's not
> recognize, why?

Take a look at the workspace.xml file within workspaces/default in
your repository directory. The Workspace section in repository.xml is
used only as a template for the actual workspace configuration files.

BR,

Jukka Zitting
Shaun Barriball | 3 Jan 11:05 2007
Picon

Is anyone using MySql for persistence

Hi all,
Can anyone provide experiences of using JackRabbit with MySql? I'm
particularly interested in reliability, performance and any experiences in
replicating JackRabbit instances?

This question follows on from my original email below.
Regards,
Shaun.

  _____  

From: Shaun Barriball [mailto:sbarriba <at> yahoo.co.uk] 
Sent: 08 December 2006 09:46
To: 'users <at> jackrabbit.apache.org'
Subject: Deployment use-case : 1 read/write instance / multiple read-only
instances

Hi,
We have an application that has 2 types of JackRabbit client:
 1) an editor JCR client requiring read/write access, and
 2) multiple viewer JCR clients which only require read access to
JackRabbit. The viewer is responsible for displaying the data being managed
by the editor.

Is it critical that the viewers are as fast as possible.

The simple approach is to use RMI from both 1) and 2) to remotely access a
single JackRabbit instance. Testing has shown that has major performance
implications over say using a local file repository. 

(Continue reading)

Dominique Pfister | 3 Jan 11:46 2007

Re: Is anyone using MySql for persistence

Hi Shaun,

Sorry for having missed your initial post that deals with
replication/clustering Jackrabbit.

>  * can MySql replication be used as a transport for sync'ing read-only
> repositories? I'm guessing not as JackRabbit probably won't like the
> underlying storage being updated directly.

That's right. JackRabbit's internal caches won't be notified about
changes to persistent data and clients will therefore not see changes
made by another instance.

>  * does the ongoing clustering work
> (http://issues.apache.org/jira/browse/JCR-623) offer a viable solution?

Well, I'm probably biased on this question ;) The approach taken in
JCR-623 assumes that all JackRabbit instances in the cluster persist
to the same database. This in turn allows the log records, containing
the actual items that changed, to be very small. Currently, this log
record journaling including proper synchronization between instances
has only a file-based implementation, i.e. you'll need a shared
directory that all your instances can access, but an implementation
using a database as backend should be available soon.

You might take a look at the following post to get more information on
how to configure JackRabbit clustering:

http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/9381

(Continue reading)

Shaun Barriball | 3 Jan 15:14 2007
Picon

RE: Is anyone using MySql for persistence

Hi Dominique et al,
Thanks for the response.
My high level goal is to deploy a JackRabbit-based solution without a single
point of failure. A secondary goal is to be able to scale a system
horizontally with more instances. Both common requirements. I was hoping
that we could leverage the mature and bullet-proof replication solutions
provided by MySql or Oracle.

You've clearly been working hard on the JCR-623 solution. I'll review the
solution in more detail.

Has anyone else got any relevent experiences in this area?

Regards,
Shaun.

-----Original Message-----
From: dominique.pfister <at> gmail.com [mailto:dominique.pfister <at> gmail.com] On
Behalf Of Dominique Pfister
Sent: 03 January 2007 10:46
To: users <at> jackrabbit.apache.org
Subject: Re: Is anyone using MySql for persistence

Hi Shaun,

Sorry for having missed your initial post that deals with
replication/clustering Jackrabbit.

>  * can MySql replication be used as a transport for sync'ing read-only 
> repositories? I'm guessing not as JackRabbit probably won't like the 
(Continue reading)

Jukka Zitting | 3 Jan 15:38 2007
Picon

Re: Unsubscribe

Hi,

To unsubscribe from any Apache mailing list like
list <at> project.apache.org, send a message to
list-unsubscribe <at> project.apache.org. To request more instructions,
send a message to list-help <at> project.apache.org.

See also the Jackrabbit mailing list page at
http://jackrabbit.apache.org/mail-lists.html.

BR,

Jukka Zitting

Dominique Pfister | 3 Jan 16:39 2007

Re: Is anyone using MySql for persistence

On 1/3/07, Shaun Barriball <sbarriba <at> yahoo.co.uk> wrote:
> Hi Dominique et al,
> Thanks for the response.
> My high level goal is to deploy a JackRabbit-based solution without a single
> point of failure. A secondary goal is to be able to scale a system
> horizontally with more instances. Both common requirements. I was hoping
> that we could leverage the mature and bullet-proof replication solutions
> provided by MySql or Oracle.

Please correct me, if I misunderstood your statement. The JCR-623
solution has NO single point of failure: there is no central server
delivering events to all interested parties, but every instance
actively polls for changes made my some other instance. Setting up a
new instance in the cluster is a matter of copying an existing
instance's configuration and starting it up: it will automatically
sync to the latest revision. And, of course, replicated MySql or
Oracle databases can be used on the persistence layer. Isn't this what
you are looking for?

Kind regards
Dominique


Gmane