Re: Instructions for deploying Apache Syncope-2.0.2 in WildFly 10.1.Final with Postgresql Datasource

2017-02-13 Thread Andrea Patricelli

Hi Ravindra,


Il 13/02/2017 17:35, Ravindra Singareddy ha scritto:


Hi Andrea,

I have followed instructions [1] but not much of luck and still faced 
same issues. This document needs to be updated, it is referencing old 
directory structures. These need to be fit\core-reference, 
fit\console-reference and fit\end-user


Do not start from sources to build you own project, please try to start 
from maven archetype, follow the instructions provided here [3].



I have used reference[2] to build syncope, syncope-console and 
syncope-enduser. I have tried to create user in syncope-console and 
getting following error


a) Class NotFound Exception: 
com.sun.org.apache.xerces.internal.dom.DOMSimplementationSourceImpl 
from module "deployment.syncope.war


I have tried to create a user from console-enduser, captcha image is 
not displaying.


b) 11:10:55,399 ERROR [io.undertow.request] (default task-80) 
UT005023: Exception handling request to /syncope-enduser/api/captcha: 
java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.syncope.client.enduser.resources.CaptchaResource



Finally, does syncope database source can be configured from 
DatabaseSource, instead of reading from Master.properties?


Yes. Please take a look to other branches of the project at [2] and you 
will find examples (in that case for MariaDB, but the logic is similar), 
for instance at [4].


HTH,
Andrea

[3] http://syncope.apache.org/docs/getting-started.html#create-project
[4] 
https://github.com/Tirasa/syncopeOnJBoss/tree/MariaDB_ContainerDataSource



Thanks


Ravi



*From:* andrea 
*Sent:* Monday, February 13, 2017 9:04:48 AM
*To:* user@syncope.apache.org
*Subject:* Re: Instructions for deploying Apache Syncope-2.0.2 in 
WildFly 10.1.Final with Postgresql Datasource


Il 13/02/2017 09:21, Ravindra Singareddy ha scritto:


Hello, Experts.

I am going in circles while deploying syncope 2.0.2 in WildFly 
10.1.Final with Postgresql Datasource. Anybody got clear instructions 
regarding correct datasource definition in standalone.xml file and 
other required configurations, maven command line options? Is this 
following configuration correct for master? Is it similar for two?


1)

pool-name="syncopeMasterDataSource" enabled="true" 
use-java-context="true">

jdbc:postgresql://localhost:5432/syncope
2) Is it correct master and two datasource definitions in 
standalone.xml will suffice and no need to define in 
master.properties and two.properties?
3) I am getting some weird error while deploying the application in 
WildFly, see below. Any Idea?

Thanks in advance

Ravi
_
2017-02-13 02:44:46,966 INFO 
 [org.springframework.jdbc.datasource.init.ScriptUtils] 
(ServerService Thread Pool -- 184) Executing SQL script from class 
path resource [quartz/tables_postgres.sql]
2017-02-13 02:44:47,104 INFO 
 [org.springframework.jdbc.datasource.init.ScriptUtils] 
(ServerService Thread Pool -- 184) Executed SQL script from class 
path resource [quartz/tables_postgres.sql] in 138 ms.
2017-02-13 02:44:47,287 WARN 
 [org.springframework.web.context.support.XmlWebApplicationContext] 
(ServerService Thread Pool -- 184) Exception encountered during 
context initialization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'taskServiceImpl': Unsatisfied 
dependency expressed through field 'logic'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'taskLogic': Unsatisfied dependency 
expressed through field 'jobManager'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: 
Error creating bean with name 'jobManagerImpl': Unsatisfied 
dependency expressed through field 'scheduler'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'scheduler' defined in VFS resource 
["/D:/code/framework/wildfly-10.1.0.Final/bin/content/syncope.war/WEB-INF/lib/syncope-core-provisioning-java-2.0.2.jar/provisioningContext.xml"]: 
Invocation of init method failed; nested exception is 
org.springframework.transaction.CannotCreateTransactionException: 
Could not open JPA EntityManager for transaction; nested exception is 
 
org.apache.openjpa.persistence.PersistenceException: null
2017-02-13 02:44:47,393 INFO 
 [org.apache.syncope.core.persistence.jpa.spring.DomainEntityManagerFactoryBean] 
(ServerService Thread Pool -- 184) Closing JPA EntityManagerFactory 
for persistence unit 'Two'
2017-02-13 02:44:47,403 INFO 
 [org.apache.syncope.core.persistence.jpa.spring.DomainEntityManagerFactoryBean] 
(ServerService Thread Pool -- 184) Closing JPA EntityManagerFactory 
for persistence unit 'Master'
2017-02-13 02:44:47,428 INFO 
 

Re: Instructions for deploying Apache Syncope-2.0.2 in WildFly 10.1.Final with Postgresql Datasource

2017-02-13 Thread Ravindra Singareddy
Hi Andrea,

I have followed instructions [1] but not much of luck and still faced same 
issues. This document needs to be updated, it is referencing old directory 
structures. These need to be fit\core-reference, fit\console-reference and 
fit\end-user


I have used reference[2] to build syncope, syncope-console and syncope-enduser. 
I have tried to create user in syncope-console and getting following error

a) Class NotFound Exception: 
com.sun.org.apache.xerces.internal.dom.DOMSimplementationSourceImpl from module 
"deployment.syncope.war

I have tried to create a user from console-enduser, captcha image is not 
displaying.

b) 11:10:55,399 ERROR [io.undertow.request] (default task-80) UT005023: 
Exception handling request to /syncope-enduser/api/captcha: 
java.lang.NoClassDefFoundError: Could not initialize class 
org.apache.syncope.client.enduser.resources.CaptchaResource


Finally, does syncope database source can be configured from DatabaseSource, 
instead of reading from Master.properties?


Thanks


Ravi



From: andrea 
Sent: Monday, February 13, 2017 9:04:48 AM
To: user@syncope.apache.org
Subject: Re: Instructions for deploying Apache Syncope-2.0.2 in WildFly 
10.1.Final with Postgresql Datasource


Il 13/02/2017 09:21, Ravindra Singareddy ha scritto:

Hello, Experts.

I am going in circles while deploying syncope 2.0.2 in WildFly 10.1.Final with 
Postgresql Datasource. Anybody got clear instructions regarding correct 
datasource definition in standalone.xml file and other required configurations, 
maven command line options? Is this following configuration correct for master? 
Is it similar for two?

1)



jdbc:postgresql://localhost:5432/syncope
2) Is it correct master and two datasource definitions in standalone.xml will 
suffice and no need to define in master.properties and two.properties?
3) I am getting some weird error while deploying the application in WildFly, 
see below. Any Idea?
Thanks in advance

Ravi
_
2017-02-13 02:44:46,966 INFO  
[org.springframework.jdbc.datasource.init.ScriptUtils] (ServerService Thread 
Pool -- 184) Executing SQL script from class path resource 
[quartz/tables_postgres.sql]
2017-02-13 02:44:47,104 INFO  
[org.springframework.jdbc.datasource.init.ScriptUtils] (ServerService Thread 
Pool -- 184) Executed SQL script from class path resource 
[quartz/tables_postgres.sql] in 138 ms.
2017-02-13 02:44:47,287 WARN  
[org.springframework.web.context.support.XmlWebApplicationContext] 
(ServerService Thread Pool -- 184) Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskServiceImpl': Unsatisfied dependency expressed 
through field 'logic'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskLogic': Unsatisfied dependency expressed through 
field 'jobManager'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'jobManagerImpl': Unsatisfied dependency expressed 
through field 'scheduler'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'scheduler' defined in VFS resource 
["/D:/code/framework/wildfly-10.1.0.Final/bin/content/syncope.war/WEB-INF/lib/syncope-core-provisioning-java-2.0.2.jar/provisioningContext.xml"]:
 Invocation of init method failed; nested exception is 
org.springframework.transaction.CannotCreateTransactionException: Could not 
open JPA EntityManager for transaction; nested exception is 
 
org.apache.openjpa.persistence.PersistenceException: null
2017-02-13 02:44:47,393 INFO  
[org.apache.syncope.core.persistence.jpa.spring.DomainEntityManagerFactoryBean] 
(ServerService Thread Pool -- 184) Closing JPA EntityManagerFactory for 
persistence unit 'Two'
2017-02-13 02:44:47,403 INFO  
[org.apache.syncope.core.persistence.jpa.spring.DomainEntityManagerFactoryBean] 
(ServerService Thread Pool -- 184) Closing JPA EntityManagerFactory for 
persistence unit 'Master'
2017-02-13 02:44:47,428 INFO  
[org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] 
(ServerService Thread Pool -- 184) Shutting down ExecutorService
2017-02-13 02:44:47,445 ERROR [org.springframework.web.context.ContextLoader] 
(ServerService Thread Pool -- 184) Context initialization failed: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskServiceImpl': Unsatisfied dependency expressed 
through field 'logic'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskLogic': Unsatisfied dependency expressed through 
field 'jobManager'; nested exception is 

Instructions for deploying Apache Syncope-2.0.2 in WildFly 10.1.Final with Postgresql Datasource

2017-02-13 Thread Ravindra Singareddy
Hello, Experts.

I am going in circles while deploying syncope 2.0.2 in WildFly 10.1.Final with 
Postgresql Datasource. Anybody got clear instructions regarding correct 
datasource definition in standalone.xml file and other required configurations, 
maven command line options? Is this following configuration correct for master? 
Is it similar for two?

1)



jdbc:postgresql://localhost:5432/syncope
2) Is it correct master and two datasource definitions in standalone.xml will 
suffice and no need to define in master.properties and two.properties?
3) I am getting some weird error while deploying the application in WildFly, 
see below. Any Idea?
Thanks in advance

Ravi
_
2017-02-13 02:44:46,966 INFO  
[org.springframework.jdbc.datasource.init.ScriptUtils] (ServerService Thread 
Pool -- 184) Executing SQL script from class path resource 
[quartz/tables_postgres.sql]
2017-02-13 02:44:47,104 INFO  
[org.springframework.jdbc.datasource.init.ScriptUtils] (ServerService Thread 
Pool -- 184) Executed SQL script from class path resource 
[quartz/tables_postgres.sql] in 138 ms.
2017-02-13 02:44:47,287 WARN  
[org.springframework.web.context.support.XmlWebApplicationContext] 
(ServerService Thread Pool -- 184) Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskServiceImpl': Unsatisfied dependency expressed 
through field 'logic'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskLogic': Unsatisfied dependency expressed through 
field 'jobManager'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'jobManagerImpl': Unsatisfied dependency expressed 
through field 'scheduler'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'scheduler' defined in VFS resource 
["/D:/code/framework/wildfly-10.1.0.Final/bin/content/syncope.war/WEB-INF/lib/syncope-core-provisioning-java-2.0.2.jar/provisioningContext.xml"]:
 Invocation of init method failed; nested exception is 
org.springframework.transaction.CannotCreateTransactionException: Could not 
open JPA EntityManager for transaction; nested exception is 
 
org.apache.openjpa.persistence.PersistenceException: null
2017-02-13 02:44:47,393 INFO  
[org.apache.syncope.core.persistence.jpa.spring.DomainEntityManagerFactoryBean] 
(ServerService Thread Pool -- 184) Closing JPA EntityManagerFactory for 
persistence unit 'Two'
2017-02-13 02:44:47,403 INFO  
[org.apache.syncope.core.persistence.jpa.spring.DomainEntityManagerFactoryBean] 
(ServerService Thread Pool -- 184) Closing JPA EntityManagerFactory for 
persistence unit 'Master'
2017-02-13 02:44:47,428 INFO  
[org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] 
(ServerService Thread Pool -- 184) Shutting down ExecutorService
2017-02-13 02:44:47,445 ERROR [org.springframework.web.context.ContextLoader] 
(ServerService Thread Pool -- 184) Context initialization failed: 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskServiceImpl': Unsatisfied dependency expressed 
through field 'logic'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'taskLogic': Unsatisfied dependency expressed through 
field 'jobManager'; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'jobManagerImpl': Unsatisfied dependency expressed 
through field 'scheduler'; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'scheduler' defined in VFS resource 
["/D:/code/framework/wildfly-10.1.0.Final/bin/content/syncope.war/WEB-INF/lib/syncope-core-provisioning-java-2.0.2.jar/provisioningContext.xml"]:
 Invocation of init method failed; nested exception is 
org.springframework.transaction.CannotCreateTransactionException: Could not 
open JPA EntityManager for transaction; nested exception is 
 
org.apache.openjpa.persistence.PersistenceException: null
at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at 
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
at