Cheng Zhang | 2 Jan 06:21 2009
Picon

ocm: is not a registered namespace prefix.

Hi,

I started to use OCM to save object to repository today and got an exception below. It seems that I need to
register a namespace ocm. Can anybody please tell me how to fix it?

org.apache.jackrabbit.ocm.exception.ObjectContentManagerException: Cannot create new node of
type nt:folder from mapped class class com.openandgreen.service.system.Folder; nested exception is
javax.jcr.NamespaceException: ocm: is not a registered namespace prefix.
javax.jcr.NamespaceException: ocm: is not a registered namespace prefix.

Thanks a lot,
Kevin

Fran Diaz | 2 Jan 08:50 2009
Picon

Re: Jackrabbit Security Authentication Policy

And is also working for me.

Lot of thanks.

2008/12/28 Savvas Triantafyllou <savvas.triantafyllou <at> gmail.com>

> Hello,
>
> > Hello. I'm trying to deploy Jackrabbit 1.5.0 via JCA resource adapter in
> > JBoss 4.2.3. I don't want any access control to the repository, therefore
> I
> > just left the default security config in the repository.xml as follows:
> >
> >    <Security appName="Jackrabbit">
> >        <SecurityManager
> > class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
> > workspaceName="security">
> >        </SecurityManager>
> >        <AccessManager
> > class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
> >        </AccessManager>
> >        <LoginModule
> > class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule">
> >           <param name="anonymousId" value="anonymous"/>
> >           <param name="adminId" value="admin"/>
> >        </LoginModule>
> >    </Security>
> >
> > The problem is that Jackrabbit ignores it and is using instead the
> > UsersRolesLoginModule, that is, the JBoss default JAAS authentication.
(Continue reading)

Anand Bhagwat | 2 Jan 12:16 2009
Picon

Strange problem in repository creation

Hi,I am getting following error when I start my tomcat server. I am using
Spring and Hibernate as underlying technology. Following are excerpts from
spring bean configuration:

<bean id="repositoryManagedConnectionFactory"
class="org.apache.jackrabbit.jca.JCAManagedConnectionFactory"
destroy-method="finalize">
<property name="homeDir" value="${user.home}/jackrabbit" />
<property name="configFile" value="classpath:repository.xml" />
</bean>
When the server loads all the spring bean it tries to start jackrabbit
repository and I get this strange error. I am running Tomcat on Windows XP.
This error is coming intermittently so I am bit confused. Please let me know
if anyone had faced similar problems.

Regards,
Anand.

Tomcat 6.0, Hibernate 3.1, Spring 2.5.4, Jackrabbit 1.4

EXCEPTION TRACE

0    [main] ERROR org.apache.jackrabbit.core.fs.db.DbFileSystem  - failed to
open output stream to file: /meta/rootUUID

java.io.IOException: The system cannot find the path specified

        at java.io.WinNTFileSystem.createFileExclusively(Native Method)

        at java.io.File.checkAndCreate(File.java:1345)
(Continue reading)

Fran Diaz | 2 Jan 13:35 2009
Picon

Re: Jackrabbit JCA 1.5 problem on Jboss 4.2.3.GA-jdk6

As I can see in the error trace, perhaps que zip file is corrupted
(java.util.zip.ZipException: invalid stored block lengths). For some reason,
the mvn task could be generating a non-valid zip.

Have you tried to download de JCA rar file from
http://www.apache.org/dyn/closer.cgi/jackrabbit/binaries/jackrabbit-jca-1.5.0.rar?

2008/12/27 Savvas Triantafyllou <savvas.triantafyllou <at> gmail.com>

> Hello again,
> I had to do a mvn install on jackrabbit-1.5.0 sources and use the
> jackrabbit-jca-1.5.0.rar
> created from this install in order for jboss to start without any errors.
>
> mvn install run with jdk6.
>
> Does anybody have a clue on what the problem might be?
>
> Savvas
>
> 2008/12/27 Savvas Triantafyllou <savvas.triantafyllou <at> gmail.com>
>
> > Hello,
> > I am trying to upgrade jackrabbit-1.4.5 to jackrabbit 1.5.0 in Jboss
> > 4.2.3.GA and I am getting the following error
> > when starting Jboss.
> >
> > Any thoughts? (Previous version of JCA on the same Jboss did not have a
> > problem)
> >
(Continue reading)

Todd Seiber | 2 Jan 14:36 2009
Picon

Re: ocm: is not a registered namespace prefix.

Try

workspace.getNamespaceRegistry().registerNamespace("ocm", "
http://jackrabbit.apache.org/ocm");

On Fri, Jan 2, 2009 at 12:21 AM, Cheng Zhang <zhangyongjiang <at> yahoo.com>wrote:

> Hi,
>
> I started to use OCM to save object to repository today and got an
> exception below. It seems that I need to register a namespace ocm. Can
> anybody please tell me how to fix it?
>
> org.apache.jackrabbit.ocm.exception.ObjectContentManagerException: Cannot
> create new node of type nt:folder from mapped class class
> com.openandgreen.service.system.Folder; nested exception is
> javax.jcr.NamespaceException: ocm: is not a registered namespace prefix.
> javax.jcr.NamespaceException: ocm: is not a registered namespace prefix.
>
> Thanks a lot,
> Kevin
>
>

--

-- 
Todd Seiber
830 Fishing Creek Rd.
New Cumberland, PA 17070

h. 717-938-5778
(Continue reading)

Mattheis, Erik W. | 2 Jan 17:37 2009

Temp File Semantics

We┬╣ve been testing Jackrabbit for a few months now and are starting to roll
it out into production. We recently noticed that during heavy load temp
files (e.g. - dbRecord12345.tmp) are not getting cleaned up. This occurs
when the temp filesystem fills up and a we get an exception like this:

org.apache.jackrabbit.core.data.DataStoreException: Can not read identifier
240b723f5a9fc1969f8f653382daf6a5aefff5f2: No space left on device: No space
left on device

It seems at this point that Jackrabbit abandons the files and does not make
any attempt to remove them from the temp directory. Obviously, this leaves
the system in an unusable state until we manually purge the temp files.

I assume the files I'm seeing are intended to be transient cache files since
our data store is on a central DB and I don't see any files lingering during
normal operation.

So, I have a few questions:

1 - Can I configure the temp directory used by Jackrabbit? I don't want to
set the temp directory globally, just for Jackrabbit.

2 - Is there a way to recover from this more gracefully and purge the temp
files? Ideally I can wait for space to free up on the device when Jackrabbit
purges other transient files from the temp space.

3 - Why create so many short-lived files? I notice that when the problem
occurs, there are many copies of the exact same file in the temp directory.
It seems more appropriate to keep a single cache file around for a given
item and manage the local cache at a set maximum size using an LRU
(Continue reading)

Cheng Zhang | 2 Jan 19:57 2009
Picon

Re: ocm: is not a registered namespace prefix.

Hi Todd,

I added your code but got exception

javax.jcr.NamespaceException: failed to register namespace ocm -&amp;gt;
http://jackrabbit.apache.org/ocm: mapping already exists

Any idea?

Thanks a lot,
Kevin

----- Original Message ----
From: Todd Seiber <todd.seiber <at> gmail.com>
To: users <at> jackrabbit.apache.org
Sent: Friday, January 2, 2009 5:36:19 AM
Subject: Re: ocm: is not a registered namespace prefix.

Try

workspace.getNamespaceRegistry().registerNamespace("ocm", "
http://jackrabbit.apache.org/ocm");

On Fri, Jan 2, 2009 at 12:21 AM, Cheng Zhang <zhangyongjiang <at> yahoo.com>wrote:

> Hi,
>
> I started to use OCM to save object to repository today and got an
> exception below. It seems that I need to register a namespace ocm. Can
> anybody please tell me how to fix it?
(Continue reading)

Todd Seiber | 2 Jan 20:09 2009
Picon

Re: ocm: is not a registered namespace prefix.

You only have to register the namespace once. Perhaps this exception was
thrown on a second run?

On Fri, Jan 2, 2009 at 1:57 PM, Cheng Zhang <zhangyongjiang <at> yahoo.com>wrote:

> Hi Todd,
>
> I added your code but got exception
>
> javax.jcr.NamespaceException: failed to register namespace ocm -&gt;
> http://jackrabbit.apache.org/ocm: mapping already exists
>
> Any idea?
>
> Thanks a lot,
> Kevin
>
>
> ----- Original Message ----
> From: Todd Seiber <todd.seiber <at> gmail.com>
> To: users <at> jackrabbit.apache.org
> Sent: Friday, January 2, 2009 5:36:19 AM
> Subject: Re: ocm: is not a registered namespace prefix.
>
> Try
>
> workspace.getNamespaceRegistry().registerNamespace("ocm", "
> http://jackrabbit.apache.org/ocm");
>
> On Fri, Jan 2, 2009 at 12:21 AM, Cheng Zhang <zhangyongjiang <at> yahoo.com
(Continue reading)

Cheng Zhang | 3 Jan 00:22 2009
Picon

Re: ocm: is not a registered namespace prefix.

Thanks, Todd. You're right. I called more than one time. -Kevin

----- Original Message ----
From: Todd Seiber <todd.seiber <at> gmail.com>
To: users <at> jackrabbit.apache.org
Sent: Friday, January 2, 2009 11:09:01 AM
Subject: Re: ocm: is not a registered namespace prefix.

You only have to register the namespace once. Perhaps this exception was
thrown on a second run?

On Fri, Jan 2, 2009 at 1:57 PM, Cheng Zhang <zhangyongjiang <at> yahoo.com>wrote:

> Hi Todd,
>
> I added your code but got exception
>
> javax.jcr.NamespaceException: failed to register namespace ocm -&gt;
> http://jackrabbit.apache.org/ocm: mapping already exists
>
> Any idea?
>
> Thanks a lot,
> Kevin
>
>
> ----- Original Message ----
> From: Todd Seiber <todd.seiber <at> gmail.com>
> To: users <at> jackrabbit.apache.org
> Sent: Friday, January 2, 2009 5:36:19 AM
(Continue reading)

Dan Tran | 3 Jan 08:29 2009
Picon

Extra entry in get file list with jackrabbit webdav


Hi I am a developer at maven wagon.  we use jackrabbit 1.5.0 to list the
content of a webdev directory.
However, the jackrabbit webdav always return an extra entry which is the
directory of the parent

so here is the code

                DavPropertyNameSet nameSet = new DavPropertyNameSet();
                nameSet.add( DavPropertyName.create(
DavConstants.PROPERTY_DISPLAYNAME ) );

                method = new PropFindMethod( url, nameSet,
DavConstants.DEPTH_1 );
                int status = execute( method );
                if ( method.succeeded() )
                {
                    ArrayList dirs = new ArrayList();
                    MultiStatus multiStatus =
method.getResponseBodyAsMultiStatus();

                    for ( int i = 0; i < multiStatus.getResponses().length;
i++ )
                    {

                        MultiStatusResponse response =
multiStatus.getResponses()[i];

                        String entryUrl =  response.getHref();
                        String fileName = PathUtils.filename(
(Continue reading)


Gmane