You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by sudhir <su...@jyog.com> on 2007/10/10 11:02:03 UTC

How to configure jcr plugin to point to existing repository

Hi..

Can anyone explain, how to configure JCR eclipse plug-in to point to my
existing repository?

 

Thanks.

 


Re: How to configure jcr plugin to point to existing repository

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Markus,

Am Donnerstag, den 18.10.2007, 15:49 +0200 schrieb Markus Reis:
> Could you either tell me whether
> a) //localhost:1099/jcrServer works for you (if the repsitory is running 
> on JBoss - after you've set up this environment :-))
> b) what files I'd have to change (and how) in order to correctly 
> configure the RMI interface for the jackrabbit server side

Well, honestly. I do not have any JBoss knowledge at all. So I cannot
tell you whether and how it works.

If on the other hand JBoss implements something on port 4444, you might
want to configure Jackrabbit such, that the Jackrabbit interface tries
to register with the registry on port 4444 instead of the default
setting rmi-port parameter in the RepositoryStartup servlet of the
Jackrabbit web app.

Regards
Felix

> 
> 
> many thanks,
> Markus
> 
> 
> Felix Meschberger schrieb:
> > Hi Markus,
> >
> > Am Dienstag, den 16.10.2007, 14:48 +0200 schrieb Markus Reis:
> >   
> >> Hi Felix,
> >>
> >>
> >> if I try to connect (i.e. click on "Finish") to my jackrabbit repos 
> >> (running on jboss) via rmi://localhost:1099/jcrServer (I also tried 
> >> //localhost:1099/jcrServer in "Repository RMI URL" field), I get the 
> >> following exception:
> >> javax.jcr.RepositoryException: non-JRMP server at remote endpoint: 
> >> non-JRMP server at remote endpoint
> >>     
> >
> > The correct URL is the one without the scheme, //localhost... that is.
> > The name you add to the URL is the one used to register the Repository
> > in the ServerAdapterFactory. If you enter //localhost:1099 in the URL
> > field (provided your RMI registry is running on the default port 1099)
> > you may click on the "Browse..." button to the right to get a list of
> > repositories registered at the addressed RMI registry.
> >
> > Selecting one of those, should do the trick.
> >
> >   
> >> Client side:
> >> CRX Feature for Eclipse, Version 3.5.1
> >>     
> >
> > The most recent version is 3.6.2. You might want to update your feature
> > from http://www.day.com/eclipse using the Eclipse Update Manager.
> >
> >   
> >> Did you already test with repositories running on JBoss?
> >>     
> >
> > To be honest, now :-) But this should actually not make a difference. If
> > the repository is registered using the Jackrabbit RMI
> > ServerAdapterFactory the standard Java RMI implementation should be
> > used, which AFAIK is not different for JBoss.
> >
> > Hope this helps.
> >
> > Regards
> > Felix
> >
> >
> >   
> 
> 


Re: How to configure jcr plugin to point to existing repository

Posted by Vpupkin <ge...@maas.de>.

Edgar Poce wrote:
> 
> ... 
> 
> I think you are right, the class that registers the repository[1] and
> the xml file that declares the jboss mbean service[2] should be fixed.
> 
> [1]
> http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/server/jmx/JCRServer.java
> [2]
> http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/resources/jackrabbit-rmi-service.xml
> 
> Feel free to create a jira issue.
> 
> br,
> edgar 
> ...
> 

Edgar, 10x for advice! ;) But could u pls post your full configuration with
JR-repository with Eclipse?
Most important for me will be :
- applicationServer + version
- JR-version 
- eclipse version
- Plugin version
- JVM version.

I try to configure it with my env, but still without success :(

My Env looks like:
AppServer :geronimo/tomcat 1.1.1
JR 1.3.3
Eclipse 3.2.1
CRX Feature for Eclipse 3.6.2
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Microsoft Windows XP [Version 5.1.2600]



When i try to make a new RepositoryConnection by
JCRRepoTab->New->Conf..new..(RMI)..->
Repository RMI URL = //:1099/JMXConnector

i get just repository exception :(
Could somebody share some success-story about using JR-plugin ?



-- 
View this message in context: http://www.nabble.com/How-to-configure-jcr-plugin-to-point-to-existing-repository-tf4599454.html#a13611648
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: How to configure jcr plugin to point to existing repository

Posted by Edgar Poce <ed...@gmail.com>.
On 10/18/07, Markus Reis <ma...@researchstudio.at> wrote:
> Hi Felix,
>
>
> many thanks for your response.
>
> The problem - as I can see it - is that JBoss uses port 4444 as the
> RMIObjectPort (see http://wiki.jboss.org/wiki/Wiki.jsp?page=JRMPInvoker
> for details). The default Jackrabbit server implementation however
> (tries to) bind(s) to port 1099 (although via the jnp protocol!)
>

I think you are right, the class that registers the repository[1] and
the xml file that declares the jboss mbean service[2] should be fixed.

[1] http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/java/org/apache/jackrabbit/rmi/server/jmx/JCRServer.java
[2] http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr-rmi/src/main/resources/jackrabbit-rmi-service.xml

Feel free to create a jira issue.

br,
edgar

> Could you either tell me whether
> a) //localhost:1099/jcrServer works for you (if the repsitory is running
> on JBoss - after you've set up this environment :-))
> b) what files I'd have to change (and how) in order to correctly
> configure the RMI interface for the jackrabbit server side
>
>
> many thanks,
> Markus
>
>
> Felix Meschberger schrieb:
> > Hi Markus,
> >
> > Am Dienstag, den 16.10.2007, 14:48 +0200 schrieb Markus Reis:
> >
> >> Hi Felix,
> >>
> >>
> >> if I try to connect (i.e. click on "Finish") to my jackrabbit repos
> >> (running on jboss) via rmi://localhost:1099/jcrServer (I also tried
> >> //localhost:1099/jcrServer in "Repository RMI URL" field), I get the
> >> following exception:
> >> javax.jcr.RepositoryException: non-JRMP server at remote endpoint:
> >> non-JRMP server at remote endpoint
> >>
> >
> > The correct URL is the one without the scheme, //localhost... that is.
> > The name you add to the URL is the one used to register the Repository
> > in the ServerAdapterFactory. If you enter //localhost:1099 in the URL
> > field (provided your RMI registry is running on the default port 1099)
> > you may click on the "Browse..." button to the right to get a list of
> > repositories registered at the addressed RMI registry.
> >
> > Selecting one of those, should do the trick.
> >
> >
> >> Client side:
> >> CRX Feature for Eclipse, Version 3.5.1
> >>
> >
> > The most recent version is 3.6.2. You might want to update your feature
> > from http://www.day.com/eclipse using the Eclipse Update Manager.
> >
> >
> >> Did you already test with repositories running on JBoss?
> >>
> >
> > To be honest, now :-) But this should actually not make a difference. If
> > the repository is registered using the Jackrabbit RMI
> > ServerAdapterFactory the standard Java RMI implementation should be
> > used, which AFAIK is not different for JBoss.
> >
> > Hope this helps.
> >
> > Regards
> > Felix
> >
> >
> >
>
>
> --
> Mag. Markus Reis
>
> Austrian Research Centers GmbH - ARC
> Research Studios
> Studio Digital Memory Engineering
>
> Thurngasse 8/3/20, A-1090 Wien
> Mobile: +43 664 825 1106
> Tel.: +43-1-585 05 37 - 16
> Fax: +43-1-585 37 41
>
> <ma...@researchstudio.at>
> http://www.arcs.ac.at/
> http://www.researchstudio.at/
> http://dme.researchstudio.at/
>
> HG Wien – FN 115980i – ATU14703506
>
>

Re: How to configure jcr plugin to point to existing repository

Posted by Markus Reis <ma...@researchstudio.at>.
Hi Felix,


many thanks for your response.

The problem - as I can see it - is that JBoss uses port 4444 as the 
RMIObjectPort (see http://wiki.jboss.org/wiki/Wiki.jsp?page=JRMPInvoker 
for details). The default Jackrabbit server implementation however 
(tries to) bind(s) to port 1099 (although via the jnp protocol!)

Could you either tell me whether
a) //localhost:1099/jcrServer works for you (if the repsitory is running 
on JBoss - after you've set up this environment :-))
b) what files I'd have to change (and how) in order to correctly 
configure the RMI interface for the jackrabbit server side


many thanks,
Markus


Felix Meschberger schrieb:
> Hi Markus,
>
> Am Dienstag, den 16.10.2007, 14:48 +0200 schrieb Markus Reis:
>   
>> Hi Felix,
>>
>>
>> if I try to connect (i.e. click on "Finish") to my jackrabbit repos 
>> (running on jboss) via rmi://localhost:1099/jcrServer (I also tried 
>> //localhost:1099/jcrServer in "Repository RMI URL" field), I get the 
>> following exception:
>> javax.jcr.RepositoryException: non-JRMP server at remote endpoint: 
>> non-JRMP server at remote endpoint
>>     
>
> The correct URL is the one without the scheme, //localhost... that is.
> The name you add to the URL is the one used to register the Repository
> in the ServerAdapterFactory. If you enter //localhost:1099 in the URL
> field (provided your RMI registry is running on the default port 1099)
> you may click on the "Browse..." button to the right to get a list of
> repositories registered at the addressed RMI registry.
>
> Selecting one of those, should do the trick.
>
>   
>> Client side:
>> CRX Feature for Eclipse, Version 3.5.1
>>     
>
> The most recent version is 3.6.2. You might want to update your feature
> from http://www.day.com/eclipse using the Eclipse Update Manager.
>
>   
>> Did you already test with repositories running on JBoss?
>>     
>
> To be honest, now :-) But this should actually not make a difference. If
> the repository is registered using the Jackrabbit RMI
> ServerAdapterFactory the standard Java RMI implementation should be
> used, which AFAIK is not different for JBoss.
>
> Hope this helps.
>
> Regards
> Felix
>
>
>   


-- 
Mag. Markus Reis

Austrian Research Centers GmbH - ARC
Research Studios
Studio Digital Memory Engineering

Thurngasse 8/3/20, A-1090 Wien
Mobile: +43 664 825 1106
Tel.: +43-1-585 05 37 - 16
Fax: +43-1-585 37 41

<ma...@researchstudio.at>
http://www.arcs.ac.at/
http://www.researchstudio.at/
http://dme.researchstudio.at/

HG Wien – FN 115980i – ATU14703506


Re: How to configure jcr plugin to point to existing repository

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Markus,

Am Dienstag, den 16.10.2007, 14:48 +0200 schrieb Markus Reis:
> Hi Felix,
> 
> 
> if I try to connect (i.e. click on "Finish") to my jackrabbit repos 
> (running on jboss) via rmi://localhost:1099/jcrServer (I also tried 
> //localhost:1099/jcrServer in "Repository RMI URL" field), I get the 
> following exception:
> javax.jcr.RepositoryException: non-JRMP server at remote endpoint: 
> non-JRMP server at remote endpoint

The correct URL is the one without the scheme, //localhost... that is.
The name you add to the URL is the one used to register the Repository
in the ServerAdapterFactory. If you enter //localhost:1099 in the URL
field (provided your RMI registry is running on the default port 1099)
you may click on the "Browse..." button to the right to get a list of
repositories registered at the addressed RMI registry.

Selecting one of those, should do the trick.

> Client side:
> CRX Feature for Eclipse, Version 3.5.1

The most recent version is 3.6.2. You might want to update your feature
from http://www.day.com/eclipse using the Eclipse Update Manager.

> Did you already test with repositories running on JBoss?

To be honest, now :-) But this should actually not make a difference. If
the repository is registered using the Jackrabbit RMI
ServerAdapterFactory the standard Java RMI implementation should be
used, which AFAIK is not different for JBoss.

Hope this helps.

Regards
Felix



Re: How to configure jcr plugin to point to existing repository

Posted by Markus Reis <ma...@researchstudio.at>.
Hi Felix,


if I try to connect (i.e. click on "Finish") to my jackrabbit repos 
(running on jboss) via rmi://localhost:1099/jcrServer (I also tried 
//localhost:1099/jcrServer in "Repository RMI URL" field), I get the 
following exception:
javax.jcr.RepositoryException: non-JRMP server at remote endpoint: 
non-JRMP server at remote endpoint

I saw that some other people had the same problems, but couldn't find a 
solution.

My server environment (runs the repos):
JBoss 4.0.5
jackrabbit 1.3.1 (including jca, jcr-rmi, webapp, etc.)

Client side:
CRX Feature for Eclipse, Version 3.5.1

Did you already test with repositories running on JBoss?


many thanks,
Markus


Felix Meschberger schrieb:
> Hi,
>
> Your existing repository must be exported via RMI. Then - in the
> Repository View (Use Window->Views->Other->Java Content
> Repository->Repository) - "create" a new repository accessible via RMI
> and enter the RMI URL. If you just enter the hostname and port
> (ala //host:port) and click on browse you see alist of RMI exported
> repositories (generally only one).
>
> Also select the type of Repository, e.g. Jackrabbit 1 for any Jackrabbit
> version. At the bottom enter login details and a workspace to connect
> to, again use the browse button to select from a list of existing
> workspaces.
>
> This should do the trick.
>
> Regards
> Felix
>
> Am Mittwoch, den 10.10.2007, 14:32 +0530 schrieb sudhir:
>   
>> Hi..
>>
>> Can anyone explain, how to configure JCR eclipse plug-in to point to my
>> existing repository?
>>
>>  
>>
>> Thanks.
>>
>>  
>>
>>     
>
>   

Re: How to configure jcr plugin to point to existing repository

Posted by Felix Meschberger <fm...@gmail.com>.
Hi,

Your existing repository must be exported via RMI. Then - in the
Repository View (Use Window->Views->Other->Java Content
Repository->Repository) - "create" a new repository accessible via RMI
and enter the RMI URL. If you just enter the hostname and port
(ala //host:port) and click on browse you see alist of RMI exported
repositories (generally only one).

Also select the type of Repository, e.g. Jackrabbit 1 for any Jackrabbit
version. At the bottom enter login details and a workspace to connect
to, again use the browse button to select from a list of existing
workspaces.

This should do the trick.

Regards
Felix

Am Mittwoch, den 10.10.2007, 14:32 +0530 schrieb sudhir:
> Hi..
> 
> Can anyone explain, how to configure JCR eclipse plug-in to point to my
> existing repository?
> 
>  
> 
> Thanks.
> 
>  
>