Re: Any tutorials?

2017-08-29 Thread Sergio Muriel
Aha! I was having this exception:
Could not load JDBC driver class [org.postgresql.Driver]

Then I solved it with:
CATALINA_HOME/lib/postgresql-42.1.4.jar

I restarted Tomcat but ran into this new exception:

org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check 
that the hostname and port are correct and that the postmaster is accepting 
TCP/IP connections.
12:51:50.755 ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception 
during pool initialization.
at 
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:265)
 ~[postgresql-42.1.4.jar:42.1.4]
at 
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) 
~[postgresql-42.1.4.jar:42.1.4]
at org.postgresql.jdbc.PgConnection.(PgConnection.java:194) 
~[postgresql-42.1.4.jar:42.1.4]
at org.postgresql.Driver.makeConnection(Driver.java:450) 
~[postgresql-42.1.4.jar:42.1.4]
at org.postgresql.Driver.connect(Driver.java:252) 
~[postgresql-42.1.4.jar:42.1.4]
at 
com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:112)
 ~[HikariCP-java7-2.4.12.jar:?]
at 
com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:118)
 ~[HikariCP-java7-2.4.12.jar:?]
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:341) 
~[HikariCP-java7-2.4.12.jar:?]
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:193) 
~[HikariCP-java7-2.4.12.jar:?]
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:428) 
~[HikariCP-java7-2.4.12.jar:?]
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:499) 
~[HikariCP-java7-2.4.12.jar:?]
at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:112) 
~[HikariCP-java7-2.4.12.jar:?]
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:97) 
~[HikariCP-java7-2.4.12.jar:?]
at 
org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
 ~[spring-jdbc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
 ~[spring-jdbc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:46)
 ~[spring-jdbc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.jdbc.datasource.init.DataSourceInitializer.execute(DataSourceInitializer.java:108)
 ~[spring-jdbc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.jdbc.datasource.init.DataSourceInitializer.afterPropertiesSet(DataSourceInitializer.java:93)
 ~[spring-jdbc-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:296)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
 ~[spring-beans-4.3.9.RELEASE.jar:4.3.9.RELEASE]
at 

Re: Any tutorials?

2017-08-29 Thread ilgrosso

>From my project root I ran:

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

Then I copied the respective *.properties into /opt/syncope/conf
and the respective *.war into Tomcat (CATALINA_HOME/webapps)

Tried with both 8080 and 9080 on these files:

CATALINA_HOME\conf\server.xml (

Ok, please move step by step.

First, since you have 9080 configured on $CATALINA_HOME/conf/server.xml (but
why?), then it's ok to have that port also on 

/opt/syncope/conf/console.properties
/opt/syncope/conf/enduser.properties

Now:

1. shut down Tomcat
2. tail -f (or xtail, better) on $CATALINA_HOME/logs/catalina.out and
/opt/syncope/log/*.log
3. startup Tomcat
4. watch the logs and see if any exception occurs

If any exception is raised, please report; if not, try to access

http://localhost:9080/syncope/

and see if any error is reported there.

If no error, then there is no reason why the Admin Console should not be
working; anyway, keep watching the logs and access

http://localhost:9080/syncope-console/

and see if any error is reported.

HTH
Regards.

--
View this message in context: 
http://syncope-user.1051894.n5.nabble.com/Any-tutorials-tp5709363p5709429.html
Sent from the syncope-user mailing list archive at Nabble.com.