cancel
Showing results for 
Search instead for 
Did you mean: 

Errors During the Server Statup while using JCR to JNDI

shanmugaraja
Champ in-the-making
Champ in-the-making
I am trying use the JCR-RMI API to access the repository.

I followed the following steps.

1) Downloaded the jcr-rmi-alfreco.zip from the URL  http://issues.alfresco.com/browse/AR-1131
2) Removed the jcr-1.0.jar  from  the alfresco.war.
3) Added the jcr-1.0.jar and jcr-rmi-1-impl-classes.jar  in  jboss/server/default/lib
4) Added the following properties mentioned in then repository.properties provided in the jcr-rmi-alfresco.jar to the repository.properties in the alfresco.war


# ##################### #
# RMI JCR Configuration #
# ##################### #

rmi.jcr.rmiregistry.servername=pl00031
rmi.jcr.rmiregistry.port=1099
rmi.jcr.rmiregistry.repository.moniker=javaContentRepository

5) Added the file jcr-rmi-context.xml  file into the alfresco\extension folder.
6) Commented out the  <import resource="classpath:alfresco/application-context.xml"/> in the jcr-context.xml file
7) Added the following  in JBoss jboss-service.xml

    <mbean code="org.alfresco.jcr.repository.JBossJndiJcr"
           name="baseJcr.alfresc:service=JBossJndiJcr">
        <attribute name="JndiName">jcr/baseRepository</attribute>
        <attribute name="JcrRepositoryName">baseAlfrescoRepository</attribute>
        <depends>jboss:service=Naming</depends>
    </mbean>

7) Added the RemoteJcrFactory.class in the alfresco.war and rebuid the alfreco.war and deployed


I am getting errors while stating the Jboss server.

Definitely I missing the steps for adding <Resource> and <ResourceLink>,
because I'm not sure about where to put the <Resource> and <ResourceLink>

Is there any other step, I am missing so that I could avoid errors during the start up of the server or is there any step mentioned above is wrong.

Environment :

Windows XP
Tomcat 5.5
Alfresco 2.0.1
Java 1.5.11
Jboss Aplication Server 4.0.5 GA
jboss Portal server 2.4.1


your help is highly appreciated. Thanks in advance.

Raj
1 REPLY 1

nikkijuk
Champ in-the-making
Champ in-the-making
I never got JNDI-JCR bridge working with JBoss. Test application worked somehow giving right results, but throwing exceptions. Tomcat worked fine, and I had quite a bunch of experts helping with JBoss, so I really think there might be some real blocker on this. Anyway, I didn't really want to debug it lot more, so I just dropped it.

- Jukkis