Chirag.Jakharia | 28 Aug 13:29

Jackrabbit not working on Oracle

Below is the repository.xml

<?xml version="1.0"?>
        <!--
                Licensed to the Apache Software Foundation (ASF) under one 
or more
                contributor license agreements. See the NOTICE file 
distributed with
                this work for additional information regarding copyright 
ownership.
                The ASF licenses this file to You under the Apache 
License, Version
                2.0 (the "License"); you may not use this file except in 
compliance
                with the License. You may obtain a copy of the License at
                http://www.apache.org/licenses/LICENSE-2.0 Unless required 
by
                applicable law or agreed to in writing, software 
distributed under the
                License is distributed on an "AS IS" BASIS, WITHOUT 
WARRANTIES OR
                CONDITIONS OF ANY KIND, either express or implied. See the 
License for
                the specific language governing permissions and 
limitations under the
                License.
        -->
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD 
Jackrabbit 1.4//EN"

(Continue reading)

Aleksei Lukin | 28 Aug 10:46

OCM: how to persist Maps?

Hello, All!

I did not found example in "testmodel" to work with simple maps like  HashMap<String,String>.

May be we need @Map annotation?

--

-- 
SY, Alex Lukin
RIPE NIC HDL: LEXA1-RIPE

Aleksei Lukin | 28 Aug 10:42

OCM: recursive behavior q. and exception info q.

Dear Christophe, dar All!

I use latest SVN snapshot of  OCM for development. 
I have some difficulties with ocm in following situations with  class like this:

@Node
public class Category{
  @Collection List<Category> subslist;
} 

When I do:

myclass.getSubsList().add(sub);
ocm.update(myclass)

sub does not get saved and I need ocm.insert(sub).  If I do ocm.insert(sub),
I need provide path because it is null so...

I do not think it is convinient way to manage subclasses. Any suggestions? Is there some "thumb rule" for
situations like above?

Besides it, when I do ocm.insert() or ocm.update() and something goes wrong e.g. some field is null, I see
uninformative exceptions that do not
have any information what class and what field cuased failure. 

--

-- 
SY, Alex Lukin
RIPE NIC HDL: LEXA1-RIPE

(Continue reading)

zhjw | 28 Aug 20:57

How to deploy jackrabbit 1.4.5 to Jetty?


I am new to jackrabbit and this is the first time for me trying to deploy
jackrabbit.

I installed jetty6 and downloaded jackrabbit-core-1.4.5.zip, and plan to use
jackrabbit as the repository for JSPWiki under jetty.  but I couldn't find
an installation guide to deploy jackrackrabbit to Jetty.

What's the procedure to install and config jackrabbit, so that when jetty
starts, it will use jackrabbit as the repository?

Thanks.
--

-- 
View this message in context: http://www.nabble.com/How-to-deploy-jackrabbit-1.4.5-to-Jetty--tp19206981p19206981.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

hakutechien | 28 Aug 20:31

ERROR org.apache.jackrabbit.core.RepositoryImpl - Failed to initialize workspace 'default'


Hello,

I am new to jackrabbit, and I was just trying First Hobs. But it seems not
working for me. Could you please help me? The code from website compiles
fine, but in runtime it throws an exception.

this is the full output log:

172 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting
repository...
188 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path repository\repository
375 [main] INFO org.apache.jackrabbit.core.nodetype.NodeTypeRegistry - no
custom node type definitions found
375 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path repository\version
969 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
- Database: Apache Derby / 10.2.1.6 - (452058)
969 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
- Driver: Apache Derby Embedded JDBC Driver / 10.2.1.6 - (452058)
1719 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing
workspace 'default'...
1719 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path repository\workspaces\default
1766 [main] INFO
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager
- Database: Apache Derby / 10.2.1.6 - (452058)
(Continue reading)

MARTINEZ Antonio | 28 Aug 19:27

Using a proxy DB Connector to several MySql DBs

Hello,

In my deployment environment I need to use a proxy DB-connector to
MySql. In our case we have 2 MySql databases (they are kept in sync),
and this connector determines which DB is active and forwards commands
to it.

This is the way I use it (note that in url we actually use two)

  <Cluster id="SOME_ID">
    <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
      <param name="revision" value="${rep.home}/revision.log" />
      <param name="driver"
value="com.alu.cnm.infrastructure.hadbconnector.HaDriver" />
      <param name="url"
value="hapool:localhost:3307;sometherurl:3307;emlplatform?useUnicode=tru
e&characterEncoding=UTF-8" />
      <param name="user" value="root" />
      <param name="password" value="mysql" />
    </Journal>
  </Cluster>

The problem I'm facing (I guess) is that JackRabbit does not know this
driver is just a MySql proxy, and therefore writes code for other DB
instead of not MySql (see the "falling back to default.dll", which I do
not seen when directly using MySql)

     2008-09-22 17:16:16,317 INFO
[org.apache.jackrabbit.core.RepositoryImpl] Starting repository..."
     2008-09-22 17:16:18,048 INFO
(Continue reading)

Marvin Lau | 28 Aug 02:32

JCAConnectionRequestInfo leak in Jackrabbit JCA?

I am running Jackrabbit JCA 1.3.1 on JBoss 4.3, with an Oracle database.
I found that every time a new connection is made, an instance of
JCAConnectionRequestInfo is created and is never deallocated.  The
instance and the objects that it references (e.g. a SimpleCredential)
stay in memory until JBoss is shutdown.

I also ran tests with Jackrabbit JCA 1.4 (using jackrabbit-jca-1.4.rar
that I downloaded from a mirror site) and found that it has the
same problem.

The following is my jcr-ds.xml

==========================================================
<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>
    <tx-connection-factory>
        <jndi-name>jcr/local</jndi-name>
        <xa-transaction/>
        <rar-name>jackrabbit-jca-1.4.rar</rar-name>
        <connection-definition>javax.jcr.Repository</connection-definition>
        <config-property name="homeDir" 
type="java.lang.String">/tmp/myrepository</config-property>
        <config-property name="configFile" 
type="java.lang.String">/opt/jboss/jboss-4.0.5.GA/server/default/userdata/repository.xml</config-property>
        <config-property name="bindSessionToTransaction" 
type="java.lang.Boolean">true</config-property>
        <application-managed-security/>
    </tx-connection-factory>
</connection-factories>
==========================================================
(Continue reading)

Warner Onstine | 28 Aug 01:45

problem accessing repo through JNDI

Ok, I have now setup my repo as outlined here:
http://jackrabbit.apache.org/shared-j2ee-resource-howto.html

I have one webapp that has setup the repo for access through WebDAV. I  
have another application that only needs read-only access to the repo.  
The WebDAV seems to be working just fine, but the second webapp has  
constantly been having problems gaining access to the repo.

I am getting this error:
org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
javax.jcr.RepositoryException: The repository home /Users/warnero/test- 
repo appears to be in use since the file named .lock is locked by  
another process.

Any help is greatly appreciated, I feel like I'm slowly beating my  
brains to a pulp here :D.

-warner

Peter Koch | 27 Aug 10:49

Problems with SearchIndex

Hi folks,
I have a small application and problems to push nodes into the repository.

I want to push up to 3200nodes on one block into the repository. Nodes are
only data and information within properties, without documents to handle
inside a DataStore.
To push one node into the repository, there are a some queries to execute.
Until 1600nodes everything is fine, but at some point the Java Heap Space
runs out of memory.
below config of the SearchIndex:
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
           <param name="textFilterClasses"
value="org.apache.jackrabbit.core.query.lucene.TextPlainTextFilter"/>
            <param name="extractorPoolSize" value="0"/>
            <param name="queryClass "
value="org.apache.jackrabbit.core.query.QueryImpl"/>
            <param name="analyzer"
value="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
            <param name="volatileIdleTime " value="1"/>
            <param name="respectDocumentOrder" value="false"/>
            <param name="supportHighlighting" value="false"/>
        </SearchIndex>

While adding nodes sometimes lucene gives this message to console: [main]
INFO org.apache.jackrabbit.core.query.lucene.MultiIndex - Unable to delete
obsolete index: _83

And the expection within the stack:
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
(Continue reading)

Emmanuel Hugonnet | 26 Aug 11:59

Xpath query with RMI

Hi,
I would like to execute an xpath query remotly with RMI on my repository.
I have connected to my repository using URLRepository.
I can create my nodes but can't create an XPath query because I can't 
access the workspace :o(
QueryManager manager = session.getWorkspace().getQueryManager(); is 
failing with the following exception :
org.apache.jackrabbit.rmi.client.RemoteRuntimeException: 
java.rmi.ServerException: RemoteException occurred in server thread; 
nested exception is:
    java.rmi.StubNotFoundException: Stub class not found: 
org.apache.jackrabbit.rmi.jackrabbit.ServerJackrabbitWorkspace_Stub; 
nested exception is:
    java.lang.ClassNotFoundException: 
org.apache.jackrabbit.rmi.jackrabbit.ServerJackrabbitWorkspace_Stub
    at 
org.apache.jackrabbit.rmi.client.ClientSession.getWorkspace(ClientSession.java:141)

Is there a workaround to create my xpath query remotely (I am using Jackrabbit 1.4 with core 1.4.5 ?

Thanks,
Emmanuel

Anil K. Kotha | 26 Aug 09:38

Regarding Versioning

Hi All,

      I have found the following description for versioning in
jackrabbit mail archives.

Here's the relevant documentation from

AbstractVersionManager.calculateCheckinVersionName:

The name is determined as follows:

* first the predecessor version with the shortes name is searched.

* if that predecessor version is the root version, the new version

gets the name "{number of successors}+1" + ".0"

* if that predecessor version has no successor, the last digit of it's

version number is incremented.

* if that predecessor version has successors but the incremented name

does not exist, that name is used.

* otherwise a ".0" is added to the name until a non conflicting name is
found.

Example Graph:

(Continue reading)


Gmane