You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Gandhirajan Natarajan <Ga...@igate.com> on 2008/03/05 08:04:35 UTC

Repository Home Lock Problem

Hi,

 

We are trying to access the jackrabbit repository from a stand alone
Java utility.

 

In jackrabbit's web.xml, we have configured the repository-home
parameter as follows,

 

<init-param>

            <param-name>repository-home</param-name>

            <param-value>c:/repo</param-value>

            <description>the repository home</description>

</init-param>

 

 

In my stand alone java utility, I am trying to get the repository
present under the same folder c:/repo

 

But in that case, when I run my stand alone java utility for accessing
the repository while jackrabbit server is running, I am getting the
following error:-

 

The repository home C:\repo appears to be in use since the file named
.lock is locked by another process.

 

But, if we stop the jackrabbit server and run the java utility, it is
able to find the repository. But we need jackrabbit server to be running
for webdav support.

 

So please advice us on this.

 

Thanks & Regards,

Gandhi Rajan.N

________________________________

| iSIGHT Development Team | iGATE Global Solutions| T: +91-80-4104 1312|
M: +91 9886834626 | gandhirajan.natarajan@igate.com |

| 158-162 & 165-170 EPIP Phase II Whitefield Bangalore - 560 066 India |
www.igate.com <http://www.igate.com/>  |

 

iGATE is Ranked No. 3 in DQ-IDC best IT employer survey and Ranked No.6 
by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry survey of Best Companies to work for in India
----------------------------------------------------------------DISCLAIMER---------------------------------------------------------
Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin@igate.com 
and delete this EMAIL including any attachments

Re: Repository Home Lock Problem

Posted by IvanLatysh <iv...@yourmail.com>.
Gandhirajan Natarajan wrote:

> As you said, we have exposed the repository via JNDI.But we still face
> the lock problem, when we try to add a document to the repository from
> our stand alone utility.
Your stand alone utility must lookup JCR Session in JNDI. And not to try to 
create a new repository.

-- 
Ivan Latysh
ivan@yourmail.com

Re: Repository Home Lock Problem

Posted by Greg Klebus <gr...@klebus.com>.
Hi

On Thu, Mar 6, 2008 at 10:15 AM, Gandhirajan Natarajan
<Ga...@igate.com> wrote:
>  But our basic need is webdav so that we can access the repository
>  through the web browser.
>
>  Can I expose the repository both through RMI and Webdav at the same
>  time?

Yes, you can do it.

Both RMI and WebDAV allow your external applications (processes) to
access repository content remotely (bear in mind that these are
different protocols, using different transports, and having different
capabilities though).

Cheers
Greg

-- 
-- Greg Klebus | http://day.com | http://dev.day.com
-- Best open-source JCR repository: http://jacrkabbit.apache.org

RE: Repository Home Lock Problem

Posted by Gandhirajan Natarajan <Ga...@igate.com>.
Ok. We will try that.

But our basic need is webdav so that we can access the repository
through the web browser.

Can I expose the repository both through RMI and Webdav at the same
time?

Please advice. 

Thanks & Regards,
Gandhi Rajan.N
________________________________

| iSIGHT Development Team | iGATE Global Solutions| T: +91-80-4104 1312|
M: +91 9886834626 | gandhirajan.natarajan@igate.com |
| 158-162 & 165-170 EPIP Phase II Whitefield Bangalore - 560 066 India |
www.igate.com |
 

-----Original Message-----
From: Stefan Guggisberg [mailto:stefan.guggisberg@gmail.com] 
Sent: Thursday, March 06, 2008 2:38 PM
To: users@jackrabbit.apache.org
Subject: Re: Repository Home Lock Problem

On Thu, Mar 6, 2008 at 9:01 AM, Gandhirajan Natarajan
<Ga...@igate.com> wrote:
> Hi,
>
>  As you said, we have exposed the repository via JNDI.But we still
face
>  the lock problem, when we try to add a document to the repository
from
>  our stand alone utility.

since your stand alone utility runs in a separate jvm process you need
a remoting protocol (such as RMI) to access the jackrabbit server.

see
http://jackrabbit.apache.org/repository-server-howto.html
http://jackrabbit.apache.org/deployment-models.html (Model 3 Deployment)

cheers
stefan

>
>  Please advice.
>
>
>  Thanks & Regards,
>  Gandhi Rajan.N
>  ________________________________
>
>  | iSIGHT Development Team | iGATE Global Solutions| T: +91-80-4104
1312|
>  M: +91 9886834626 | gandhirajan.natarajan@igate.com |
>  | 158-162 & 165-170 EPIP Phase II Whitefield Bangalore - 560 066
India |
>  www.igate.com |
>
>
>
> -----Original Message-----
>  From: Ivan Latysh [mailto: ivanlatysh@gmail.com]
>  Sent: Wednesday, March 05, 2008 7:20 PM
>  To: users@jackrabbit.apache.org
>  Subject: Re: Repository Home Lock Problem
>
>  Gandhirajan Natarajan wrote:
>
>  > We are trying to access the jackrabbit repository from a stand
alone
>  > Java utility.
>  [skipped]
>  It is obvious, you are trying to access live repository.
>  If you want to get an access to the repository, expose it via JNDI or
>  RMI.
>  Or shut down the server, before launching your utility.
>
>  Just wonder why d.u. need access it from your tool.
>
>  --
>  Ivan Latysh
>  IvanLatysh@gmail.com
>
>
>
> iGATE is Ranked No. 3 in DQ-IDC best IT employer survey and Ranked
No.6
>  by Business Today-Mercer Human Resource Consulting-TNS  in a cross
industry survey of Best Companies to work for in India
>
----------------------------------------------------------------DISCLAIM
ER---------------------------------------------------------
>  Information transmitted by this EMAIL is proprietary to iGATE Group
of Companies and is intended for use only by the individual
>  or entity to whom it is addressed and may contain information that is
privileged, confidential, or exempt from disclosure under
>  applicable law. If you are not the intended recipient of this EMAIL
immediately notify the sender at iGATE or mailadmin@igate.com
>  and delete this EMAIL including any attachments
>
>

iGATE is Ranked No. 3 in DQ-IDC best IT employer survey and Ranked No.6 
by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry survey of Best Companies to work for in India
----------------------------------------------------------------DISCLAIMER---------------------------------------------------------
Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin@igate.com 
and delete this EMAIL including any attachments


Re: Repository Home Lock Problem

Posted by Stefan Guggisberg <st...@gmail.com>.
On Thu, Mar 6, 2008 at 9:01 AM, Gandhirajan Natarajan
<Ga...@igate.com> wrote:
> Hi,
>
>  As you said, we have exposed the repository via JNDI.But we still face
>  the lock problem, when we try to add a document to the repository from
>  our stand alone utility.

since your stand alone utility runs in a separate jvm process you need
a remoting protocol (such as RMI) to access the jackrabbit server.

see
http://jackrabbit.apache.org/repository-server-howto.html
http://jackrabbit.apache.org/deployment-models.html (Model 3 Deployment)

cheers
stefan

>
>  Please advice.
>
>
>  Thanks & Regards,
>  Gandhi Rajan.N
>  ________________________________
>
>  | iSIGHT Development Team | iGATE Global Solutions| T: +91-80-4104 1312|
>  M: +91 9886834626 | gandhirajan.natarajan@igate.com |
>  | 158-162 & 165-170 EPIP Phase II Whitefield Bangalore - 560 066 India |
>  www.igate.com |
>
>
>
> -----Original Message-----
>  From: Ivan Latysh [mailto: ivanlatysh@gmail.com]
>  Sent: Wednesday, March 05, 2008 7:20 PM
>  To: users@jackrabbit.apache.org
>  Subject: Re: Repository Home Lock Problem
>
>  Gandhirajan Natarajan wrote:
>
>  > We are trying to access the jackrabbit repository from a stand alone
>  > Java utility.
>  [skipped]
>  It is obvious, you are trying to access live repository.
>  If you want to get an access to the repository, expose it via JNDI or
>  RMI.
>  Or shut down the server, before launching your utility.
>
>  Just wonder why d.u. need access it from your tool.
>
>  --
>  Ivan Latysh
>  IvanLatysh@gmail.com
>
>
>
> iGATE is Ranked No. 3 in DQ-IDC best IT employer survey and Ranked No.6
>  by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry survey of Best Companies to work for in India
>  ----------------------------------------------------------------DISCLAIMER---------------------------------------------------------
>  Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual
>  or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under
>  applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin@igate.com
>  and delete this EMAIL including any attachments
>
>

RE: Repository Home Lock Problem

Posted by Gandhirajan Natarajan <Ga...@igate.com>.
Hi,

As you said, we have exposed the repository via JNDI.But we still face
the lock problem, when we try to add a document to the repository from
our stand alone utility.

Please advice.

Thanks & Regards,
Gandhi Rajan.N
________________________________

| iSIGHT Development Team | iGATE Global Solutions| T: +91-80-4104 1312|
M: +91 9886834626 | gandhirajan.natarajan@igate.com |
| 158-162 & 165-170 EPIP Phase II Whitefield Bangalore - 560 066 India |
www.igate.com |
 
-----Original Message-----
From: Ivan Latysh [mailto: ivanlatysh@gmail.com] 
Sent: Wednesday, March 05, 2008 7:20 PM
To: users@jackrabbit.apache.org
Subject: Re: Repository Home Lock Problem

Gandhirajan Natarajan wrote:

> We are trying to access the jackrabbit repository from a stand alone
> Java utility.
[skipped]
It is obvious, you are trying to access live repository.
If you want to get an access to the repository, expose it via JNDI or
RMI.
Or shut down the server, before launching your utility.

Just wonder why d.u. need access it from your tool.

-- 
Ivan Latysh
IvanLatysh@gmail.com

iGATE is Ranked No. 3 in DQ-IDC best IT employer survey and Ranked No.6 
by Business Today-Mercer Human Resource Consulting-TNS  in a cross industry survey of Best Companies to work for in India
----------------------------------------------------------------DISCLAIMER---------------------------------------------------------
Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual 
or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under 
applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or mailadmin@igate.com 
and delete this EMAIL including any attachments


Re: Repository Home Lock Problem

Posted by Ivan Latysh <iv...@gmail.com>.
Gandhirajan Natarajan wrote:

> We are trying to access the jackrabbit repository from a stand alone
> Java utility.
[skipped]
It is obvious, you are trying to access live repository.
If you want to get an access to the repository, expose it via JNDI or RMI.
Or shut down the server, before launching your utility.

Just wonder why d.u. need access it from your tool.

-- 
Ivan Latysh
IvanLatysh@gmail.com