Hi Ben,

Il 29/12/2015 16:45, Ben Sorek ha scritto:
Hi,
Thanks this worked, however even though I place the persistence.properties file in the conf directory (configured for MySQL), Syncope is still looking for H2.

With Apache Syncope 2.0.0 you can configure one or more domains. The difference with Apache Syncope 1.2.0 is that for each domain you can configure an internal repository.
So to configure your persistence, follow this steps:

1) Create new directory domains
mkdir /opt/syncope/conf/domains

mvn clean package -Dconf.directory=/opt/syncope/conf -Dbundles.directory=/opt/syncope/bundles -Dlog.directory=/opt/syncope/log

2) Download persistence file for the Master domain
cd domains
wget https://raw.githubusercontent.com/apache/syncope/master/fit/core-reference/src/main/resources/mysql/domains/Master.properties

Now, you are ready to configure the persistence properties for your master domain.

Regards
Marco

28-Dec-2015 20:32:21.287 SEVERE [RMI TCP Connection(6)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userWorkflowLogic': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.apache.syncope.core.workflow.api.UserWorkflowAdapter org.apache.syncope.core.logic.UserWorkflowLogic.uwfAdapter; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uwfAdapter': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected org.apache.syncope.core.workflow.activiti.spring.DomainProcessEngine org.apache.syncope.core.workflow.activiti.ActivitiUserWorkflowAdapter.engine; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.syncope.core.workflow.activiti.spring.DomainProcessEngineFactoryBean#0': FactoryBean threw exception on object creation; nested exception is org.activiti.engine.ActivitiException: couldn't check if tables are already present using metadata: Cannot load JDBC driver class 'org.h2.Driver' at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)


On Tue, Dec 29, 2015 at 10:43 AM, Marco Di Sabatino Di Diodoro <[email protected] <mailto:[email protected]>> wrote:

    Hi Ben

    Il 28/12/2015 17:22, Ben Sorek ha scritto:

        Hi,
        Can someone point me to where in the documentation I can find
        instructions on how to configure an external directory for
        Syncope. I am creating a project from the 2.0.0-M1 archetype

    The documentation will be updated soon.
    To configure an external configuration directory, follow these steps:

    1) Create your directories

    $ mkdir /opt/syncope
    $ mkdir /opt/syncope/bundles
    $ mkdir /opt/syncope/log
    $ mkdir /opt/syncope/conf

    2) mvn clean package -Dconf.directory=/opt/syncope/conf
    -Dbundles.directory=/opt/syncope/bundles
    -Dlog.directory=/opt/syncope/log

    Regards
    Marco

        Thanks
        Ben

-- Dott. Marco Di Sabatino Di Diodoro
        Tel. +39 3939065570 <tel:%2B39%203939065570>

        Tirasa S.r.l.
        Viale D'Annunzio 267 - 65127 Pescara
        Tel +39 0859116307 <tel:%2B39%200859116307> / FAX +39
        0859111173 <tel:%2B39%200859111173>
        http://www.tirasa.net

        Apache Syncope PMC Member
        http://people.apache.org/~mdisabatino/
        <http://people.apache.org/%7Emdisabatino/>



--
Dott. Marco Di Sabatino Di Diodoro
Tel. +39 3939065570

Tirasa S.r.l.
Viale D'Annunzio 267 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member
http://people.apache.org/~mdisabatino/

Reply via email to