Hello,

What about accessing Jackrabbit deployed on JBoss?

I have my Jackrabbit repository configured with JCA and I've already
made it accessible through WebDAV but I'm having trouble configuring the
RMI server in order to connect from JCRBrowser.
I followed instructions on
http://wiki.apache.org/jackrabbit/JackrabbitOnJBoss and posts on this
subject, but I'm not very confident with the result.

I've successfully deployed the jcr-rmi JAR with the following
configuration in jackrabbit-rmi-service.xml

        <mbean code="org.apache.jackrabbit.rmi.server.jmx.JCRServer"
                name="Jackrabbit.services:RMIServer = JCR RMI Server">
                <attribute
name="LocalAddress">java:jcr/local</attribute>
                <attribute
name="RemoteAddress">jnp://localhost:1199/jcrServer</attribute> 
                <!-- Optional attribute 
                <attribute name="LocalEnvironment">
        
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
        
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
                        java.naming.provider.url=localhost:1199
                </attribute>    -->
                <!-- Optional attribute-->
                <attribute name="RemoteEnvironment">
        
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
        
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
                        java.naming.provider.url=localhost:1199
                </attribute>    
        
<depends>jboss.jca:service=ManagedConnectionFactory,name=jcr/local</depe
nds>                                    
        </mbean>

When I try to connect from JCRBrowser I keep getting the following
error:

"Could not connect to remote JCR-Server using the following RMI-URL:
rmi://localhost:1199/jcrServer
non-JRMP server at remote endpoint"

Can someone help me figuring out what could be wrong?
Many thanks in advance.

Cheers,

Carlos

-----Mensaje original-----
De: Nithya Mani [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 05 de febrero de 2007 11:48
Para: [email protected]
Asunto: RE: Anyone using JCR Browser???

Hi Shaun,

I could use JCR browser with jackrabbit 1.2.1 only for remote connection
(model 3). For local connection we should go with 1.0/1.1 as mentioned
in
Sandro's reply. What he has explained is the exact reason for this
issue.
Thanks for Sandro for his clarification.

Nithya Mani
Senior Developer, webMethods
[EMAIL PROTECTED]
IM: nithya_infravio (Yahoo)
        
        
                

-----Original Message-----
From: Shaun Barriball [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 05, 2007 3:53 PM
To: [email protected]
Subject: RE: Anyone using JCR Browser???

Hi,

We used both the Eclipse JCR Browser and the JackRabbit Viewer with
JackRabbit 1.1 successfully.

After upgrading to 1.2.1, and creating a new repository with 1.2.1, I
get
the following:
 * Eclipse JCR Browser - 
        I get the same "-1: -1: -1" error
 * JackRabbit Viewer
     Also the same "-1: -1: -1" error

I tried upgrading the jars within the viewers from 1.0 to 1.2.1 but this
generates:

java.lang.NoClassDefFoundError:
org/apache/jackrabbit/core/config/ConfigurationException
        at java.lang.Class.getDeclaredConstructors0(Native Method)
(for the Eclipse JCR Browser).

So it appears the APIs used by these browsers has changed in 1.2.1.


Is is possible to deploy a separate RMI server using a Model 2
deployment
model such that you have deployed:
 - web app 1 and 2 using JNDI to access JackRabbit
 - JackRabbit RMI web app 3 also JNDI to make the same repository
externally
accessible?

Regards,
Shaun.

-----Original Message-----
From: Nithya Mani [mailto:[EMAIL PROTECTED] 
Sent: 05 February 2007 07:32
To: [email protected]
Subject: RE: Anyone using JCR Browser???

Hi,

I am using JCR browser 0.9 Eclipse plug-in with jackrabbit-core-1.0.jar.
I
tried with the local jackrabbit repository. There is a problem during
login.
I have set only 'userid' as user name for Simple Credentials of JCR
browser.
It doesn't throw any error message. It just says '-1:-1:-1'. 

It was not possible to login. Please check the credentials.
-1: -1: -1

What does the meaning of this message? Here is the repository.xml file I
am
using. 

<Repository>
    <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    </FileSystem>
  
    <Security appName="Jackrabbit">
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager">

        </AccessManager>

        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">
          
        </LoginModule>
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default"/>
    <Workspace name="${wsp.name}">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>
        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
                   <param name="driver"
value="oracle.jdbc.driver.OracleDriver"/>
                   <param name="url"
value="jdbc:oracle:thin:@xxxx:1521:orcl"/>
                   <param name="user" value="nithya"/>
                   <param name="password" value="nithya"/>
                   <param name="schema" value="oracle"/>
                   <param name="schemaObjectPrefix"
value="${wsp.name}_"/>
                   <param name="externalBLOBs" value="false"/>
           </PersistenceManager>
        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
        </SearchIndex>
    </Workspace>

    <!--
        Configures the versioning
    -->
    <Versioning rootPath="${rep.home}/version">       
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${rep.home}/version" />
        </FileSystem>        

        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
                   <param name="driver"
value="oracle.jdbc.driver.OracleDriver"/>
                   <param name="url"
value="jdbc:oracle:thin:@blizzard:1521:orcl"/>
                   <param name="user" value="nithya_registry"/>
                   <param name="password" value="nithya"/>
                   <param name="schema" value="oracle"/>
                   <param name="schemaObjectPrefix" value="version_"/>
                   <param name="externalBLOBs" value="false"/>
           </PersistenceManager>

    </Versioning>

    <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
        <param name="path" value="${rep.home}/repository/index"/>
    </SearchIndex>
</Repository>

Am I missing anything? 

Regards,

Nithya Mani
Senior Developer, webMethods
[EMAIL PROTECTED]
IM: nithya_infravio (Yahoo)
        
        
                

-----Original Message-----
From: Sandro Boehme [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 25, 2007 3:14 PM
To: [email protected]
Subject: Re: Anyone using JCR Browser?

Hi Waldemar,

you are right the local repository (deployment model 1) connection of
the
JCR Browser uses the Jackrabbit 1.0 libraries in the Eclipse classpath.
But
the Eclipse plugin classpath is not configurable at runtime. This means
you
cannot change to a newer Jackrabbit version by design while using the
local
repository connection of the JCR Browser.

But you can use the remote repository (deployment model 3) connection
method
of the JCR Browser to connect to a repository version of your choice.
You
will find a short how-to in the ReadMeFirst.txt file of the JCR Browser
distribution. If I can help you any further you can either ask in the
mailing list of the JCR Browser or here and I will help you get it
running.

Best regards,

Sandro

--
https://www.xing.com/profile/Sandro_Boehme
http://www.linkedin.com/in/sandroboehme
http://www.wingsuit.de 


                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new
Yahoo!
Security Centre. http://uk.security.yahoo.com


Reply via email to