Yep. I had forgotten to put the jdbc dirvers in the right place. I am remote this morning but will test it again in the afternoon.
I did get the same error with Tomcat 9 and Java 12 though -- This email, and any files transmitted with it, are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please advise [email protected] <mailto:[email protected]>. 3480 Preston Ridge Road Suite 450 Alpharetta, GA 30005 Philip W. Dalrymple III <[email protected]> MDT Software - Automation Management Company +1 678 297 1001 Fax +1 678 297 1003 ________________________________________ From: Francesco Chicchiriccò <[email protected]> Sent: Friday, September 13, 2019 3:46 To: [email protected] Subject: Re: Syncope trying to deploy using Maven and not getting login Hi Philip, nope, you are not "still getting the same error". With JDK 8 and Tomcat 7 (see [1]) you used to have java.lang.NoClassDefFoundError: javax/el/ELManager because you did not met the Tomcat version requirements. With JDK 8 and Tomcat 9 (right below) you have instead java.lang.RuntimeException: Failed to load driver class org.postgresql.Driver in either of HikariConfig class loader or Thread context classloader simply because you forgot to place the appropriate JDBC driver for PostgreSQL inside Tomcat's $CATALINA_HOME/li HTH Regards. [1] https://lists.apache.org/thread.html/26c3ab705b62367b0e970d3c833d1210ac47c6fe72db9bf89c0007e6@%3Cuser.syncope.apache.org%3E On 2019/09/12 18:13:37, "Dalrymple, Philip" wrote: > OK I was able to get 1.8 on my testing VM Still getting the same error> > > Now running> > > Apache Tomcat/9.0.24 Java/1.8.0_222-b10> > > > 14:09:13.507 INFO org.springframework.web.context.ContextLoader - Root > WebApplicationContext: initialization started> > 14:09:16.452 WARN > org.springframework.web.context.support.XmlWebApplicationContext - Exception > encountered during context initialization - cancelling refresh attempt: > org.springframework> > .beans.factory.BeanCreationException: Error creating bean with name > 'MasterEntityManagerFactory' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/syncope/WEB-INF/lib/syncope-cor> > e-persistence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: Cannot resolve > reference to bean 'MasterDataSource' while setting bean property > 'dataSource'; nested exception is org.springframewo> > rk.beans.factory.BeanCreationException: Error creating bean with name > 'MasterDataSource' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/syncope/WEB-INF/lib/syncope-core-persis> > tence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: Cannot resolve reference to > bean 'localMasterDataSource' while setting bean property 'defaultObject'; > nested exception is org.springframewo> > rk.beans.factory.BeanCreationException: Error creating bean with name > 'localMasterDataSource' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/syncope/WEB-INF/lib/syncope-core-p> > ersistence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: Error setting property > values; nested exception is > org.springframework.beans.PropertyBatchUpdateException; nested > PropertyAccessExcept> > ions (1) are:> > PropertyAccessException 1: > org.springframework.beans.MethodInvocationException: Property > 'driverClassName' threw exception; nested exception is > java.lang.RuntimeException: Failed to load> > driver class org.postgresql.Driver in either of HikariConfig class loader or > Thread context classloader> > Related cause: org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'MasterDataSource' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/syncope> > /WEB-INF/lib/syncope-core-persistence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: > Cannot resolve reference to bean 'localMasterDataSource' while setting bean > property 'defaultObject'; neste> > d exception is org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'localMasterDataSource' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/sy> > ncope/WEB-INF/lib/syncope-core-persistence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: > Error setting property values; nested exception is > org.springframework.beans.PropertyBatchUpdateExcept> > ion; nested PropertyAccessExceptions (1) are:> > PropertyAccessException 1: > org.springframework.beans.MethodInvocationException: Property > 'driverClassName' threw exception; nested exception is > java.lang.RuntimeException: Failed to load> > driver class org.postgresql.Driver in either of HikariConfig class loader or > Thread context classloader> > 14:09:16.455 ERROR org.springframework.web.context.ContextLoader - Context > initialization failed> > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'MasterEntityManagerFactory' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/syncope/WEB-> > INF/lib/syncope-core-persistence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: > Cannot resolve reference to bean 'MasterDataSource' while setting bean > property 'dataSource'; nested exception i> > s org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'MasterDataSource' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/syncope/WEB-INF/lib/> > syncope-core-persistence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: Cannot > resolve reference to bean 'localMasterDataSource' while setting bean property > 'defaultObject'; nested exception i> > s org.springframework.beans.factory.BeanCreationException: Error creating > bean with name 'localMasterDataSource' defined in URL > [jar:file:/opt/apache-tomcat-9.0.24/webapps/syncope/WEB-INF> > /lib/syncope-core-persistence-jpa-2.1.4.jar!/domains/MasterDomain.xml]: Error > setting property values; nested exception is > org.springframework.beans.PropertyBatchUpdateException; nested P> > ropertyAccessExceptions (1) are:> > PropertyAccessException 1: > org.springframework.beans.MethodInvocationException: Property > 'driverClassName' threw exception; nested exception is > java.lang.RuntimeException: Failed to load> > driver class org.postgresql.Driver in either of HikariConfig class loader or > Thread context classloader> > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]> > at > org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEA> > SE]> > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1681) > ~[spring-beans-5.1.6.RELEASE.jar:> > 5.1.6.RELEASE]> > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1433) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.R> > ELEASE]> > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RE> > LEASE]> > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELE> > ASE]> > at > org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]> > at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]> > at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]> > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) > ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]> > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105) > ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]> > at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) > ~[spring-context-5.1.6.RELEASE.jar:5.1.6.REL> > > --> > This email, and any files transmitted with it, are confidential> > and intended solely for the use of the individual or entity to> > whom they are addressed. If you have received this email in error,> > please advise [email protected]<mailto:[email protected]> .> > > 3480 Preston Ridge Road> > Suite 450> > Alpharetta, GA 30005> > > Philip W. Dalrymple III > > MDT Software - Automation Management Company> > +1 678 297 1001> > Fax +1 678 297 1003> > > ________________________________________> > From: Dalrymple, Philip > > Sent: Thursday, September 12, 2019 8:58> > To: [email protected]<mailto:[email protected]>> > Subject: Re: Syncope trying to deploy using Maven and not getting login> > > I will have to build a new vm to have Java 1.8 with tomcat 9> > > > --> > This email, and any files transmitted with it, are confidential> > and intended solely for the use of the individual or entity to> > whom they are addressed. If you have received this email in error,> > please advise [email protected]<mailto:[email protected]> .> > > 3480 Preston Ridge Road> > Suite 450> > Alpharetta, GA 30005> > > Philip W. Dalrymple III > > MDT Software - Automation Management Company> > +1 678 297 1001> > Fax +1 678 297 1003> > > ________________________________________> > From: Andrea Patricelli > > Sent: Thursday, September 12, 2019 8:54> > To: [email protected]<mailto:[email protected]>> > Subject: Re: Syncope trying to deploy using Maven and not getting login> > > Il 12/09/19 14:40, Dalrymple, Philip ha scritto:> > > My tomcat for this is Apache Tomcat/7.0.76> > > DBMS is postgres 11> > > Java is 1.8.> > > I have another test VM (where I was doing the build) with> > Apache Tomcat/9.0.24 Java/12.0.2+10> > > (I don't have a system with tomcat 8.5+ and java just 1.8)> > > Should it work on the java12.0.2 version?> > > > No, please work on Tomcat 8.5+ and Java 8.> > > This error> > tence-jpa-2.1.4.jar!/persistenceContext.xml]: Invocation of init method > failed; nested exception is java.lang.NoClassDefFoundError: > javax/el/ELManager> > > seems to be caused by JEE version used by Tomcat and for building artifacts.> > > Please build the project with Java 8 and deploy on JEE container laying on > Java 8 JVM (Tomcat 9 is fine).> > > > > --> > This email, and any files transmitted with it, are confidential> > and intended solely for the use of the individual or entity to> > whom they are addressed. If you have received this email in error,> > please advise [email protected]<mailto:[email protected]> .> > > 3480 Preston Ridge Road> > Suite 450> > Alpharetta, GA 30005> > > Philip W. Dalrymple III > > MDT Software - Automation Management Company> > +1 678 297 1001> > Fax +1 678 297 1003> > > ________________________________________> > From: Andrea Patricelli > > Sent: Thursday, September 12, 2019 8:36> > To: [email protected]<mailto:[email protected]>> > Subject: Re: Syncope trying to deploy using Maven and not getting login> > > Are you respecting versions of:> > > - JEE container [1] (at least Tomcat 8.5, better 9)> > - Java (1.8)> > - DBMS [2]> > > Best regards,> > Andrea> > > [1]> > https://syncope.apache.org/docs/2.1/getting-started.html#java-ee-container> > [2]> > https://syncope.apache.org/docs/2.1/getting-started.html#internal-storage> > > Il 12/09/19 14:28, Dalrymple, Philip ha scritto:> > > > I had not looked int the rest log, that had the error in it. see the bottom > of this message> > > All the tables are there> > > List of relations> > Schema | Name | Type | Owner> > --------+--------------------------------+-------+---------> > public | accesstoken | table | syncope> > public | accountpolicy | table | syncope> > public | accountpolicy_externalresource | table | syncope> > public | accountpolicyrule | table | syncope> > public | adyngroupmembers | table | syncope> > public | adyngroupmembership | table | syncope> > public | amembership | table | syncope> > public | anyabout | table | syncope> > public | anyobject | table | syncope> > public | anyobject_anytypeclass | table | syncope> > public | anyobject_externalresource | table | syncope> > public | anytemplatepulltask | table | syncope> > public | anytemplaterealm | table | syncope> > public | anytype | table | syncope> > public | anytype_anytypeclass | table | syncope> > public | anytypeclass | table | syncope> > public | aplainattr | table | syncope> > public | aplainattruniquevalue | table | syncope> > public | aplainattrvalue | table | syncope> > public | application | table | syncope> > public | arelationship | table | syncope> > public | conninstance | table | syncope> > public | conninstance_capabilities | table | syncope> > public | conninstancehistoryconf | table | syncope> > public | cplainattr | table | syncope> > public | cplainattruniquevalue | table | syncope> > public | cplainattrvalue | table | syncope> > public | derschema | table | syncope> > public | dynrealm | table | syncope> > public | dynrealmmembers | table | syncop> > > > --> > This email, and any files transmitted with it, are confidential> > and intended solely for the use of the individual or entity to> > whom they are addressed. If you have received this email in error,> > please advise [email protected]<mailto:[email protected]> .> > > > At least I think that they are all there.> > > The full core-connid log for this startup is> > > 08:04:04.430 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.soap bundleVersion=1.4.3 > connectorName=net.tirasa.connid.bundles.soap.WebServiceConnector ) to Local C> > onnector Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.soap-1.4.3.jar Method: > lambda$null$3> > 08:04:04.451 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.rest bundleVersion=1.0.4 > connectorName=net.tirasa.connid.bundles.rest.RESTConnector ) to Local Connect> > or Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.rest-1.0.4.jar Method: > lambda$null$3> > 08:04:04.460 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.csvdir bundleVersion=0.8.8 > connectorName=net.tirasa.connid.bundles.csvdir.CSVDirConnector ) to Local C> > onnector Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.csvdir-0.8.8.jar Method: > lambda$null$3> > 08:04:04.483 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.db.table bundleVersion=2.2.6 > connectorName=net.tirasa.connid.bundles.db.table.DatabaseTableConnector )> > to Local Connector Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.db.table-2.2.6.jar > Method: lambda$null$3> > 08:04:04.494 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.db.scriptedsql bundleVersion=2.2.6 > connectorName=net.tirasa.connid.bundles.db.scriptedsql.ScriptedSQLC> > onnector ) to Local Connector Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.db.scriptedsql-2.2.6.jar > Method: lambda$null$3> > 08:04:04.517 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.ldap bundleVersion=1.5.3 > connectorName=net.tirasa.connid.bundles.ldap.LdapConnector ) to Local Connect> > or Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.ldap-1.5.3.jar Method: > lambda$null$3> > 08:04:04.543 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.ad bundleVersion=1.3.6 > connectorName=net.tirasa.connid.bundles.ad.ADConnector ) to Local Connector > Inf> > o Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.ad-1.3.6.jar Method: > lambda$null$3> > 08:04:04.593 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.googleapps bundleVersion=1.4.2 > connectorName=net.tirasa.connid.bundles.googleapps.GoogleAppsConnector> > ) to Local Connector Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.googleapps-1.4.2.jar > Method: lambda$null$3> > 08:04:04.618 INFO Add ConnectorInfo ConnectorKey( > bundleName=net.tirasa.connid.bundles.azure bundleVersion=1.0.1 > connectorName=net.tirasa.connid.bundles.azure.AzureConnector ) to Local Conn> > ector Info Manager from > file:/opt/syncope/bundles/net.tirasa.connid.bundles.azure-1.0.1.jar [message truncated...] -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Member at The Apache Software Foundation Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail http://home.apache.org/~ilgrosso/
