Is there a way to configure openSocial with a different nuxeo context Path

nuxeo-update-5.5.0-HF-02 with Tomcat 6

  1. I've changed org.nuxeo.ecm.contextPath in nuxeo.conf (nuxeo.url either) : org.nuxeo.ecm.contextPath=/nxcollab
  2. I've changed templates/default/conf/Catalina/localhost/nuxeo.xml to nxcollab.xml

OK : nuxeo works quite fine except… OpenSocial Dashboard… each gadget sends “No Data received from server :404”

in the logs : HTTP Error 404 fetching service methods from endpoint http://localhost:8080/nuxeo/opensocial/gadgets/api/rpc

N.B : I attempted to alter nuxeo-opensocial-server/src/main/resources/opensocial/containers/opensocial-container.js with /nxcollab insted of /nuxeo… It works…

Is there a solution using a configuration file ?

0 votes

1 answers

735 views

ANSWER



You did it the right way.
Please fill a Jira issue about opensocial-container.js: the script should not use a hardcoded contextPath. If you know how to fix it, feel free to patch it on GitHub and send us a pull-request. See how to contribute.
Thanks.

0 votes



Jira issue created (https://jira.nuxeo.com/browse/NXP-8841)
02/10/2012

Ticket is fixed and deliver on HF02 for Nuxeo 5.5 and built-in for the next release (5.6)
03/14/2012