cancel
Showing results for 
Search instead for 
Did you mean: 

Remote Web Application accessing to Alfresco instance

aique
Champ in-the-making
Champ in-the-making
Hi!.

I'm developing a J2EE application using the JCR API from Alfresco. All works fine when the application and the Alfresco installation were in the same machine.

But I have separated the J2EE into another virtual machine, so the alfresco installation and the J2EE are in separated machines.

When I run the application now I have this error:

Ensure that the property 'dir.root' is pointing to the correct location.

The dir.root ptoperty from the alfresco-global.properties file in my application is pointing the directory /opt/Alfresco/alf_data, it doesn't change, but maybe now because I don`t have the Alfresco installation in this machine it doesn´t work.

What can I do?, I have to use web services instead JCR API when the Alfresco instance is running in another machine?.

Please help, I'm really stuck!.

Thanks.
2 REPLIES 2

dmihelj
Champ in-the-making
Champ in-the-making

aique
Champ in-the-making
Champ in-the-making
Hi!.

Thanks for your answer.

Right now I can't test that solution. But even if I could put the repository accesible in a remote way using the RMI technology, probably the result will be the same. My problem is not access to the JCR API, I have added the .jar files to do that and it works fine. And my web application can access to the alfresco database too. My problem occurs when the web application uses the dir.root property. I have seen the path of this property and my web application have written some folders in there, but I don't know why the mentioned exception is thrown if Alfresco isn`t installed.

Probably the best way to acces to a remote instance of Alfresco is using Web Services… I hope recive more answers about that because I'm still a bit confused.