Markus Gallmetzer | 1 Dec 08:17 2010

Re: Jackrabbit JCA on JBoss

Hi,

sorry for my late reply. This indeed solves that problem (at least no error
messages). I didn't like the idea of removing required libraries from the
jca-archive at first but as i couldn't get it to work with classloading.xml
(maybe it is possible though) it is a quick workaround.

Thank you all for your help,

Markus

2010/11/15 Sverker Abrahamsson <sverker <at> abrahamsson.com>

> Hi,
> I haven't read all mails in this thread and haven't tried to run jackrabbit
> on jboss6 yet, but the symptoms you describe below are usually because of
> conflicts in the class loading. Test to remove the commons-collections jar
> from jackrabbit-jca package.
> /Sverker
>
> > -----Original Message-----
> > From: Markus Gallmetzer [mailto:markus.gallmetzer <at> googlemail.com]
> > Sent: den 8 november 2010 7:32
> > To: users <at> jackrabbit.apache.org
> > Subject: Jackrabbit JCA on JBoss
> >
> > Hi,
> >
> > i tried to deploy jackrabbit to JBoss with JCA on Mac OS X and followed
> > almost literally the instructions provided in the wiki
(Continue reading)

Mario Killmer | 1 Dec 13:03 2010
Picon

AW: Can't open files

Hello again,

that's make me crazy ! Maybe some of you can point me to the right
direction.

I try to open an word document in read-write mode from a windows webdav
client (explorer). But when I click on the files in the webfolder nothing
happens. And I don't know where my problem is !
I use the simplewebdavservlet and the default repository (with user
anonymus) from the jackrabbit.war archive. Is the anonymus user the problem
? How can I setup a new user for testing my issues ? Must I define a jaas
authentification ? Or is there an easier way to define a user with
read/write permissions ?

Regards,
Mario

-----Ursprüngliche Nachricht-----
Von: Alexander Klimetschek [mailto:aklimets <at> adobe.com] 
Gesendet: Dienstag, 30. November 2010 21:46
An: users <at> jackrabbit.apache.org
Betreff: Re: Can't open files

On 30.11.10 21:34, "Mario Killmer" <info <at> mk-webservices.de> wrote:

>Hello Alex,
>thanks for your response. After many hours more in the internet I find 
>an new point. Can it be an issue regarding to the anonymus user in 
>jackrabbit? Because the anonymus user has only read permissions.
>Can that be the Problem ?
(Continue reading)

Alexander Klimetschek | 1 Dec 13:30 2010
Picon

Re: AW: Can't open files

On 01.12.10 13:03, "Mario Killmer" <info <at> mk-webservices.de> wrote:

>Hello again,
>
>that's make me crazy ! Maybe some of you can point me to the right
>direction.
>
>I try to open an word document in read-write mode from a windows webdav
>client (explorer). But when I click on the files in the webfolder nothing
>happens. And I don't know where my problem is !
>I use the simplewebdavservlet and the default repository (with user
>anonymus) from the jackrabbit.war archive. Is the anonymus user the
>problem
>? How can I setup a new user for testing my issues ? Must I define a jaas
>authentification ? Or is there an easier way to define a user with
>read/write permissions ?

AFAIK there is no web interface to create users. This has to be done by
using the user management API [1]. You get the user manager by casting the
JCR session to the JackrabbitSession [2] interface:

    UserManager um = ((JackrabbitSession) session).getUserManager();
    um.createUser("user", "password");

But you should have a default administrative user with the credentials
"admin/admin" to get started.

[1] 
http://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/api/security/use
r/package-summary.html
(Continue reading)

Angela Schreiber | 1 Dec 14:12 2010

Re: AW: Can't open files

hi mario

my very first answer (sent on 30th november) somehow got eaten up
by adobe or apache or both... second try:

did you trace the http conversation?
that's usually the first thing I do, to get a better idea of what
is going wrong. feel free to post log details here if you don't get
along with it.

apart from that it might as well be a vista specific issue.
see http://greenbytes.de/tech/webdav/webdav-redirector-list.html

angela

On 12/1/10 1:03 PM, Mario Killmer wrote:
> Hello again,
>
> that's make me crazy ! Maybe some of you can point me to the right
> direction.
>
> I try to open an word document in read-write mode from a windows webdav
> client (explorer). But when I click on the files in the webfolder nothing
> happens. And I don't know where my problem is !
> I use the simplewebdavservlet and the default repository (with user
> anonymus) from the jackrabbit.war archive. Is the anonymus user the problem
> ? How can I setup a new user for testing my issues ? Must I define a jaas
> authentification ? Or is there an easier way to define a user with
> read/write permissions ?
>
(Continue reading)

Stefan Hagedorn | 1 Dec 14:38 2010
Picon
Picon

XPath query: check if child-node does not exist

Hi,

I am trying to build a XPath query that gets all nodes that do not have 
a certain (grand)child node but do have a property with a certain value

example

node1 (property=test)
  + child
     + grandchild1
     + grandchild2

node2 (property=test)
  + child
     + grandchild1

With my query I would like to find all nodes ("nodeX") that do not have 
a grandchild "grandchild2" but do have a property "property" with value 
"test".

i.e. in the example above I would like the query to return node2 (since 
node1 has a grandchild "grandchild2".

It doesn't matter to me if "grandchildX" is the name of the 
grandchild-node, or if it was in an extra name-property of the grandchild.

I tried with the grandchild names as a property (all grandchildren have 
the same node name) and have the following sample:
//element(*,mynode)[child/grandchild/ <at> name!='grandchild2' and 
 <at> property='test']
(Continue reading)

Nicolas Betheuil | 1 Dec 14:47 2010
Picon

RE: XPath query: check if child-node does not exist

Hi,

Only to tell you where i'm gone because i ever try this
http://dev.day.com/discussion-groups/content/lists/jackrabbit-users/2010-11/2010-11-23_Re_xpath_query_of_subnode_Alexander_Klimetschek.html

You will not succeed to do what you want. The xpath implementation is very far to be exaustive as all the
documentation tell it. Think about going back to whiteboard to try to find a workaround to your problem.

The conditions (between []) can only test properties on same node, not child nodes even is sql2.

-----Message d'origine-----
De : Stefan Hagedorn [mailto:nachteilhaft <at> gmx.de] 
Envoyé : mercredi 1 décembre 2010 14:39
À : users <at> jackrabbit.apache.org
Objet : XPath query: check if child-node does not exist

Hi,

I am trying to build a XPath query that gets all nodes that do not have 
a certain (grand)child node but do have a property with a certain value

example

node1 (property=test)
  + child
     + grandchild1
     + grandchild2

node2 (property=test)
  + child
(Continue reading)

Wouter Boers | 1 Dec 15:11 2010
Picon

Re: AW: Can't open files

Hi Mario,

Jaas would be nice to have. Webdav can only use digest or basic authentication. Having a 'real'  user makes is
easier to set-up access rights, The problem you have is not a Jackrabbit problem but a MS issue. 

Unless you use sharepoint, the office stack by definition does not allow you to open files in read/write
mode on a webdav server. You need to adjust the registry settings for that.  The fix depends on the office
version you use. 

Windows Registry Editor Version 5.00

; Created by Wouter Boers - Ogle
; Ogle NV - Nooderdereinde 311 - 1243JX 's Graveland
; http://www.ogle.nl
; See http://support.microsoft.com/kb/870853 and http://blogs.sharepointhosting.com/Lists/Posts/Post.aspx?List=399ed944%2D72d2%2D4932%2Dbc13%2Dde0586abf2d1&ID=75

[HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Internet]
"OpenDocumentsReadWriteWhileBrowsing"=dword:00000001

Regards, Wouter
On 1 dec 2010, at 13:03, Mario Killmer wrote:

> Hello again,
> 
> that's make me crazy ! Maybe some of you can point me to the right
> direction.
> 
> I try to open an word document in read-write mode from a windows webdav
> client (explorer). But when I click on the files in the webfolder nothing
> happens. And I don't know where my problem is !
(Continue reading)

Ard Schrijvers | 1 Dec 16:01 2010

Re: XPath query: check if child-node does not exist

On Wed, Dec 1, 2010 at 2:47 PM, Nicolas Betheuil
<Nicolas.Betheuil <at> europe.adp.com> wrote:
> Hi,
>
> Only to tell you where i'm gone because i ever try this
> http://dev.day.com/discussion-groups/content/lists/jackrabbit-users/2010-11/2010-11-23_Re_xpath_query_of_subnode_Alexander_Klimetschek.html
>
> You will not succeed to do what you want. The xpath implementation is very far to be exaustive as all the
documentation tell it. Think about going back to whiteboard to try to find a workaround to your problem.
>
> The conditions (between []) can only test properties on same node, not child nodes even is sql2.

What makes you think this is the case? Are you referring to some JR version?

child conditions are supported within the where [] clause. Only
fn:name() which you should use for nodename clauses, does not seem to
work in child where clauses.

I am however not sure what the query below would need to return:

//element(*,mynode)[child/grandchild/ <at> name!='grandchild2' and  <at> property='test']

I think the query is very confusing. Imo, for child predicates you
should try to avoid != . I think not many developers know the subtle
difference between != and not() : It is *very* different when handling
multi valued properties. The != is not very intuitive then. Same holds
imo for child queries.

You can try:

(Continue reading)

James Abley | 3 Dec 15:07 2010
Picon

Hot lock in BitsetENTCacheImpl

Hi,

Jackrabbit core 1.4.5 running on Sun Java 1.6.0_20.

We are seeing intermittent slowdowns in our application. Thread dumps show
that a lot of requests are blocked with a stack trace similar to the
following:

   java.lang.Thread.State: BLOCKED (on object monitor)
at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.size(Unknown
Source)
 - waiting to lock <0x8dfea658> (a
EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap)
at
org.apache.jackrabbit.core.nodetype.BitsetENTCacheImpl.getKey(BitsetENTCacheImpl.java:86)
 at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.getEffectiveNodeType(NodeTypeRegistry.java:1049)
at
org.apache.jackrabbit.core.nodetype.NodeTypeRegistry.getEffectiveNodeType(NodeTypeRegistry.java:478)
 at
org.apache.jackrabbit.core.NodeImpl.getEffectiveNodeType(NodeImpl.java:854)
at org.apache.jackrabbit.core.NodeImpl.isNodeType(NodeImpl.java:1237)
 at org.apache.jackrabbit.core.NodeImpl.isNodeType(NodeImpl.java:2608)
at com.example.contentrepository.jcr.JcrFactory.wrap(JcrFactory.java:51)
 at
com.example.contentrepository.jcr.NodeIteratorImpl.next(NodeIteratorImpl.java:73)
at
com.example.contentrepository.jcr.NodeIteratorImpl.next(NodeIteratorImpl.java:22)

Examining that call stack:
(Continue reading)

Christian Stocker | 4 Dec 17:31 2010
Picon

Fwd: [symfony-cmf-devs] PHP content repository status update

this may be of interest for some of you

chregu

---------- Forwarded message ----------
From: David Buchmann <david.buchmann <at> liip.ch>
Date: Fri, Dec 3, 2010 at 5:06 PM
Subject: [symfony-cmf-devs] PHP content repository status update
To: symfony-cmf-devs <at> googlegroups.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi everybody,

i want to point you to a blog post about phpcr and jackalope:
http://liip.to/jcrtophpcr

we pushed things quite a bit and will hopefully release a beta jackalope
by end of year.

also, liip has now a confirmed project for a large website that we will
build with jackalope and the cmf. read the blog post - but in short, we
will keep this list up to date about progress and if you have comments
or want to do something: we still push everything to github. contact me
or lukas :-)

once the Symfony2 bundle, phpcr doctrine and jackalope are ready as
beta, we take another try at implementing cmf components.

(Continue reading)


Gmane