cancel
Showing results for 
Search instead for 
Did you mean: 

Run Share against a custom app using embedded alfresco

hagak
Champ in-the-making
Champ in-the-making
I have developed an application using Alfresco embedded however I would like to be able to connect the Share app to the alfresco instance.  Is it possible to connect the share app to my embedded version of alfresco?  What modifications do I need to make to my embedded app to do this?

Thank you
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

you need to have the ReST API / webscripts of the embedded Alfresco be accessible to clients and have the Share client connect to the corresponding endpoint (configured via share-config-custom.xml). So if your "embedding" has disabled the webscript Spring context configurations / removed the alfresco-remote-api.jar, you need to re-enable / re-add them. And you may have to write a custom Spring web script container / runtime to handle HTTP requests when the embedded Alfresco does not run in a Java servlet environment.

Regards
Axel

hagak
Champ in-the-making
Champ in-the-making
I am including the alfresco-remote-api.jar with the rest of the alfresco jars.  Our application is deployed within Tomcat.

During deployment I see that a number of webscripts are registered:
2014-03-10 11:12:11,721  INFO  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 351 Web Scripts (+0 failed), 365 URLs

However I see no context that is accessible to call the webscripts.  Under our custom app context nothing is created.  And of course we have no "alfresco" context since we do not deploy that war.

I do see this warning popup on deployment, course not sure where those generic named webscrits are defined.  They appear to be some samples but can not find any reference to them.

2014-03-10 11:11:51,679  WARN  [extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Unable to register script classpath:alfresco/webscripts/classpath/folder1/subfolder1/folder1_subfolder1_file2.desc.xml due to error: 02100005 Failed to parse web script description document classpath/folder1/subfolder1/folder1_subfolder1_file2.desc.xml ; 02100004 Unable to establish HTTP Method from web script description: naming convention must be <name>.<method>.desc.xml