On 26/03/2015 22:40, Alan Evans wrote:
I have tried to follow the instructions linked below but I am having trouble.

https://cwiki.apache.org/confluence/display/SYNCOPE/Enable+Activiti+Modeler

I have gotten to a point where the "Activiti Modeler" button is no longer greyed out but I am not getting it to work.

I have installed syncope from debian package. I have installed maven2 and gotten a "target" directory.

I am working in /root/activity. The syncope-deb build seems to contain a oryx.debug.js-tokenValueMap.properties file so I've used that one.

My pom.xml contains:
<activiti-modeler.directory>/usr/share/apache-syncope</activiti-modeler.directory>
<tokenValueMap>/etc/apache-syncope/oryx.debug.js-tokenValueMap.properties</tokenValueMap>

I've noticed that the deb comes with a console.properties in /etc/apache-syncope, but it seems the one in the WEB-INF directory is the one that's used.

I copied /root/activity/target/activiti-webapp-explorer2 to /var/lib/tomcat7/webapps.

/var/lib/tomcat7/webapps/syncope-console/WEB-INF/classes/console.properties contains:
scheme=https
host=my-real-hostname.example.com <http://my-real-hostname.example.com>
port=8443
rootPath=/syncope/rest/
activitiModelerDirectory=/var/lib/tomcat7/webapps/activiti-webapp-explorer2/

I am using Ubuntu 14.04, and the 1.2.2 debs from http://syncope.apache.org/downloads.html

Should I have done the build from the webaps directory? Am I setting the properties in pom.xml correct?

Hi Alan,
I've just completed the full installation procedure on a clean Debian 7 machine (didn't have an Ubuntu 14.04 ready to use, but things should be pretty close).

1. followed indications from [1] to install Apache Syncope 1.2.3 (recently release) via deb files 2. followed indications from [2] to build a sample project (which I also put at [3] for reference) - having /usr/local/activiti-modeler as Activiti Modeler directory 3. adjusted the activitiModelerDirectory property in /etc/apache-syncope/console.properties with value /usr/local/activiti-modeler
4. restarted Apache Tomcat

At this point I was expecting that things were just working, but there was still a problem (that you also report above): the configuration files under /etc/apache-syncope were barely ignored. This is actually a bug which I reported [4]; as temporary workaround you need to replace the line 37 of

/var/lib/tomcat7/webapps/syncope-console/WEB-INF/classes/consoleContext.xml

with

<property name="location" value="file:/etc/pache-syncope/console.properties"/>

At this point, after restarting Tomcat, everything was working as expected, including Activiti Modeler.

HTH
Regards.

[1] https://cwiki.apache.org/confluence/display/SYNCOPE/Install+Syncope+from+.deb+packages [2] https://cwiki.apache.org/confluence/display/SYNCOPE/Enable+Activiti+Modeler
[3] https://github.com/ilgrosso/ActivitiModelerEnabler4ApacheSyncope
[4] https://issues.apache.org/jira/browse/SYNCOPE-655

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/

Reply via email to