On 23/12/2015 14:56, Nisreen wrote:
Hi, thanks for your reply :)

I am trying to deploy syncope in a real environment with the following
properties:
1.      Windows 7 operating system
2.      Apache tomcat version 8
3.      Java version 7

I have created a new syncope project using Maven archetype, I run the
following command

mvn archetype:generate -DarchetypeGroupId=org.apache.syncope
-DarchetypeArtifactId=syncope-archetype
-DarchetypeRepository=http://repo1.maven.org/maven2 -DarchetypeVersion=1.2.6

and then package it using the command
mvn clean package -Dbundles.directory=C:\syncope_IDM\bundles
-Dlog.directory=C:\syncope_IDM\log

This command is missing a parameter, e.g. conf.directory, that's why you experience the problem below.

As specified in

https://cwiki.apache.org/confluence/display/SYNCOPE/Run+Syncope+in+real+environments#RunSyncopeinrealenvironments-Syncope%3E=1.2.0

While waiting for someone support, I have noticed the following:
1.The problem is related to the ${conf.directory} Value , it was always
evaluated to file:C:\\syncope_IDM\\core\\target/test-classes/ , instead of
C:\\Apache\\apache-tomcat-8.0\\webapps\\syncope\\WEB-INF\\classes/, I have
changed it manually and many problems were solved, but can you tell me how
can we solve at building time

The build command above should have been instead

mvn clean package -Dconf.directory=C:\syncope_IDM\conf -Dbundles.directory=C:\syncope_IDM\bundles -Dlog.directory=C:\syncope_IDM\log


2. I have read in many articles that I only need to define the internal
storage at persistence.properties file (I am using MySQL 5.6), but I
discovered that I also need to define it in Master.properties, is this
correct or I am missing something?

You are using 1.2.6, so persistence.properties is the file to go, as specified in the wiki page mentioned above.

Master.properties is instead for upcoming 2.0.0 (2.0.0-M1 is currently under vote); for this new version we are working to provide better documentation.

3. after I solve all problems and the logs are all clear from exceptions I
still see nothing when running http://localhost:8080/syncope/rest/
And when running http://localhost:8080/syncope-console/ , I get the
following exception java.security.AccessControlException: User anonymous not
authenticated

There is something odd with your installation; I'd suggest to clean up your database by removing all tables, start again from scratch and carefully follow instructions from the wiki page mentioned above.

Regards.

--
Francesco Chicchiriccò

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

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


Reply via email to