mam-dev / cosmo

Cosmo Calendar Server implements the server side of the CalDAV protocol.
Apache License 2.0
77 stars 45 forks source link

demo application not starting / maven issues #44

Closed pkerspe closed 3 years ago

pkerspe commented 4 years ago

When trying to start the demo application using mvn spring-boot:run

It fails with errors:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.202 s
[INFO] Finished at: 2020-08-31T13:56:40+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project cosmo-webapp: Could not resolve dependencies for project net.oneandone.cosmo:cosmo-webapp:war:3.7.1: Failed to collect dependencies at net.oneandone.cosmo:cosmo-core:jar:3.7.2: Failed to read artifact descriptor for net.oneandone.cosmo:cosmo-core:jar:3.7.2: Could not transfer artifact net.oneandone.cosmo:cosmo-core:pom:3.7.2 from/to central (http://jcenter.bintray.com): Authorization failed for http://jcenter.bintray.com/net/oneandone/cosmo/cosmo-core/3.7.2/cosmo-core-3.7.2.pom 403 Forbidden -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
danielgrigore commented 4 years ago

Hi @pkerspe I released a new version that uses https instead of http for bintray repo and that solved the issue. Cheers,

pkerspe commented 4 years ago

thanks for the quick resolution. The initial error is gone, yet building / starting the app still fails, now with a different error, obviously some issue with MySQL db (besides some other issues):

[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for net.oneandone.cosmo:cosmo-webapp:war:3.7.4
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-war-plugin is missing. @ line 63, column 12
[WARNING] 'build.plugins.plugin.version' for org.springframework.boot:spring-boot-maven-plugin is missing. @ line 59, column 12
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] 
[INFO] ------------------< net.oneandone.cosmo:cosmo-webapp >------------------
[INFO] Building cosmo-webapp 3.7.4
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] >>> spring-boot-maven-plugin:2.3.3.RELEASE:run (default-cli) > test-compile @ cosmo-webapp >>>
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (default-enforce) @ cosmo-webapp ---
[INFO] Skipping Rule Enforcement.
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.2:prepare-agent (default-prepare-agent) @ cosmo-webapp ---
[INFO] argLine set to -javaagent:/Users/nobody/.m2/repository/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2-runtime.jar=destfile=/Users/nobody/git/cosmo/cosmo-webapp/target/jacoco.exec
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.2:prepare-agent (default) @ cosmo-webapp ---
[INFO] argLine set to -javaagent:/Users/nobody/.m2/repository/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2-runtime.jar=destfile=/Users/nobody/git/cosmo/cosmo-webapp/target/jacoco.exec
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ cosmo-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ cosmo-webapp ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ cosmo-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/nobody/git/cosmo/cosmo-webapp/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ cosmo-webapp ---
[INFO] No sources to compile
[INFO] 
[INFO] <<< spring-boot-maven-plugin:2.3.3.RELEASE:run (default-cli) < test-compile @ cosmo-webapp <<<
[INFO] 
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.3.3.RELEASE:run (default-cli) @ cosmo-webapp ---
[INFO] Attaching agents: []

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.6.RELEASE)

2020-09-02 15:26:26.190  INFO 82242 --- [           main] c.u.calendar.CalendarDemoApplication     : Starting CalendarDemoApplication on MAC-UM-246 with PID 82242 (/Users/nobody/git/cosmo/cosmo-webapp/target/classes started by nobody in /Users/nobody/git/cosmo/cosmo-webapp)
2020-09-02 15:26:26.192  INFO 82242 --- [           main] c.u.calendar.CalendarDemoApplication     : The following profiles are active: local
2020-09-02 15:26:26.962  INFO 82242 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-09-02 15:26:26.984  INFO 82242 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 12ms. Found 0 JPA repository interfaces.
2020-09-02 15:26:27.770  INFO 82242 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8093 (http)
2020-09-02 15:26:27.781  INFO 82242 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-09-02 15:26:27.782  INFO 82242 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.33]
2020-09-02 15:26:28.435  INFO 82242 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/cosmo]  : Initializing Spring embedded WebApplicationContext
2020-09-02 15:26:28.435  INFO 82242 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2196 ms
2020-09-02 15:26:28.534  INFO 82242 --- [           main] ch.vorburger.mariadb4j.DB                : Installing a new embedded database to: target/maridb/base
2020-09-02 15:26:28.545  INFO 82242 --- [           main] ch.vorburger.exec.ManagedProcess         : Starting Program [/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql_install_db, --datadir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data, --basedir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base, --no-defaults, --force, --skip-name-resolve] (in working directory /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base)
2020-09-02 15:26:28.598  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
2020-09-02 15:26:28.599  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:   Referenced from: /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/my_print_defaults
2020-09-02 15:26:28.599  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:   Reason: image not found
2020-09-02 15:26:28.626  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: Installing MariaDB/MySQL system tables in '/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data' ...
2020-09-02 15:26:28.632  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
2020-09-02 15:26:28.632  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:   Referenced from: /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysqld
2020-09-02 15:26:28.632  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:   Reason: image not found
2020-09-02 15:26:28.632  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql_install_db: line 420: 82271 Abort trap: 6           "$mysqld_bootstrap" $defaults "$mysqld_opt" --bootstrap "--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 --enforce-storage-engine="" $args --max_allowed_packet=8M --net_buffer_length=16K
2020-09-02 15:26:28.637  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.637  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: Installation of system tables failed!  Examine the logs in
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data for more information.
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: The problem could be conflicting information in an external
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: my.cnf files. You can ignore these by doing:
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:     shell> /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/scripts/scripts/mysql_install_db --defaults-file=~/.my.cnf
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: You can also try to start the mysqld daemon with:
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:     shell> /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysqld --skip-grant --general-log &
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: and use the command line tool /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: to connect to the mysql database and look at the grant tables:
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:     shell> /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql -u root mysql
2020-09-02 15:26:28.638  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db:     mysql> show tables;
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: Try 'mysqld --help' if you have problems with paths.  Using
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: --general-log gives you a log in /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data that may be helpful.
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: The latest information about mysql_install_db is available at
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: email lists at http://launchpad.net/maria
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: Please check all of the above before submitting a bug report
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: at http://mariadb.org/jira
2020-09-02 15:26:28.639  INFO 82242 --- [c Stream Pumper] ch.vorburger.exec.ManagedProcess         : mysql_install_db: 
2020-09-02 15:26:28.642 ERROR 82242 --- [efault Executor] ch.vorburger.exec.ManagedProcess         : Program [/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql_install_db, --datadir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data, --basedir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base, --no-defaults, --force, --skip-name-resolve] (in working directory /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base) failed unexpectedly

org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) ~[commons-exec-1.3.jar:1.3]
    at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48) ~[commons-exec-1.3.jar:1.3]
    at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200) ~[commons-exec-1.3.jar:1.3]
    at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]

2020-09-02 15:26:28.656 ERROR 82242 --- [           main] ch.vorburger.exec.ManagedProcess         : Program [/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql_install_db, --datadir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data, --basedir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base, --no-defaults, --force, --skip-name-resolve] (in working directory /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base) failed
2020-09-02 15:26:28.660 ERROR 82242 --- [           main] o.s.b.web.embedded.tomcat.TomcatStarter  : Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'securityFilterConfig': Unsatisfied dependency expressed through field 'extraTicketFilter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'extraTicketProcessingFilter' defined in URL [jar:file:/Users/nobody/.m2/repository/net/oneandone/cosmo/cosmo-core/3.7.4/cosmo-core-3.7.4.jar!/org/unitedinternet/cosmo/acegisecurity/providers/ticket/ExtraTicketProcessingFilter.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDaoImpl': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
2020-09-02 15:26:28.690  INFO 82242 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2020-09-02 15:26:28.694  WARN 82242 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
2020-09-02 15:26:28.701  INFO 82242 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-09-02 15:26:28.704 ERROR 82242 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at com.unitedinternet.calendar.CalendarDemoApplication.main(CalendarDemoApplication.java:34) ~[classes/:na]
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:88) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:438) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:191) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    ... 8 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityFilterConfig': Unsatisfied dependency expressed through field 'extraTicketFilter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'extraTicketProcessingFilter' defined in URL [jar:file:/Users/nobody/.m2/repository/net/oneandone/cosmo/cosmo-core/3.7.4/cosmo-core-3.7.4.jar!/org/unitedinternet/cosmo/acegisecurity/providers/ticket/ExtraTicketProcessingFilter.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDaoImpl': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1422) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:207) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:211) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.getOrderedBeansOfType(ServletContextInitializerBeans.java:202) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.addServletContextInitializerBeans(ServletContextInitializerBeans.java:96) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.servlet.ServletContextInitializerBeans.<init>(ServletContextInitializerBeans.java:85) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getServletContextInitializerBeans(ServletWebServerApplicationContext.java:253) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.selfInitialize(ServletWebServerApplicationContext.java:227) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.springframework.boot.web.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:53) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5140) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[na:na]
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[na:na]
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.apache.catalina.startup.Tomcat.start(Tomcat.java:468) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
    at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:107) ~[spring-boot-2.2.6.RELEASE.jar:2.2.6.RELEASE]
    ... 13 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'extraTicketProcessingFilter' defined in URL [jar:file:/Users/nobody/.m2/repository/net/oneandone/cosmo/cosmo-core/3.7.4/cosmo-core-3.7.4.jar!/org/unitedinternet/cosmo/acegisecurity/providers/ticket/ExtraTicketProcessingFilter.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDaoImpl': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1290) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    ... 62 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDaoImpl': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessProperties(PersistenceAnnotationBeanPostProcessor.java:362) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1422) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1158) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveBean(DefaultListableBeanFactory.java:419) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:349) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:342) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1126) ~[spring-context-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.unitedinternet.cosmo.dao.ContentDaoInvocationHandler.getContentDao(ContentDaoInvocationHandler.java:107) ~[cosmo-core-3.7.4.jar:3.7.4]
    at org.unitedinternet.cosmo.dao.ContentDaoInvocationHandler.invoke(ContentDaoInvocationHandler.java:44) ~[cosmo-core-3.7.4.jar:3.7.4]
    at com.sun.proxy.$Proxy75.hashCode(Unknown Source) ~[na:na]
    at java.base/java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936) ~[na:na]
    at java.base/java.util.concurrent.ConcurrentHashMap.containsKey(ConcurrentHashMap.java:964) ~[na:na]
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.requiresDestruction(PersistenceAnnotationBeanPostProcessor.java:393) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DisposableBeanAdapter.hasApplicableProcessors(DisposableBeanAdapter.java:405) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.requiresDestruction(AbstractBeanFactory.java:1846) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.registerDisposableBeanIfNecessary(AbstractBeanFactory.java:1863) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:636) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1290) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:885) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    ... 75 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:798) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:228) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1358) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1204) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1338) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:557) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1158) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveNamedBean(DefaultListableBeanFactory.java:1125) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:586) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:549) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:717) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:690) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:239) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessProperties(PersistenceAnnotationBeanPostProcessor.java:359) ~[spring-orm-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    ... 107 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:160) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:416) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:517) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:323) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:321) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1290) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1210) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:885) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:789) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    ... 134 common frames omitted
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
    at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:99) ~[mariaDB4j-core-2.2.2.jar:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
    at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:389) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:333) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:157) ~[spring-beans-5.2.5.RELEASE.jar:5.2.5.RELEASE]
    ... 149 common frames omitted
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
    at ch.vorburger.mariadb4j.DB.install(DB.java:129) ~[mariaDB4j-core-2.2.2.jar:na]
    at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:76) ~[mariaDB4j-core-2.2.2.jar:na]
    at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66) ~[mariaDB4j-core-2.2.2.jar:na]
    at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:96) ~[mariaDB4j-core-2.2.2.jar:na]
    ... 156 common frames omitted
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql_install_db, --datadir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data, --basedir=/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base, --no-defaults, --force, --skip-name-resolve] (in working directory /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base) failed, exitValue=1, last 100 lines of console:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/my_print_defaults
  Reason: image not found
Installing MariaDB/MySQL system tables in '/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data' ...
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysqld
  Reason: image not found
/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql_install_db: line 420: 82271 Abort trap: 6           "$mysqld_bootstrap" $defaults "$mysqld_opt" --bootstrap "--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 --enforce-storage-engine="" $args --max_allowed_packet=8M --net_buffer_length=16K

Installation of system tables failed!  Examine the logs in
/Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

    shell> /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/scripts/scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

    shell> /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysqld --skip-grant --general-log &

and use the command line tool /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql
to connect to the mysql database and look at the grant tables:

    shell> /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/base/bin/mysql -u root mysql
    mysql> show tables;

Try 'mysqld --help' if you have problems with paths.  Using
--general-log gives you a log in /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data that may be helpful.

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before submitting a bug report
at http://mariadb.org/jira

    at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:297) ~[mariaDB4j-core-2.2.2.jar:na]
    at ch.vorburger.exec.ManagedProcess.startExecute(ManagedProcess.java:207) ~[mariaDB4j-core-2.2.2.jar:na]
    at ch.vorburger.exec.ManagedProcess.start(ManagedProcess.java:134) ~[mariaDB4j-core-2.2.2.jar:na]
    at ch.vorburger.mariadb4j.DB.install(DB.java:126) ~[mariaDB4j-core-2.2.2.jar:na]
    ... 159 common frames omitted
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) ~[commons-exec-1.3.jar:1.3]
    at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48) ~[commons-exec-1.3.jar:1.3]
    at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200) ~[commons-exec-1.3.jar:1.3]
    at java.base/java.lang.Thread.run(Thread.java:832) ~[na:na]

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.886 s
[INFO] Finished at: 2020-09-02T15:26:28+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.3.RELEASE:run (default-cli) on project cosmo-webapp: Application finished with exit code: 1 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
danielgrigore commented 4 years ago

Hi @pkerspe From the log info it looks like the application fails to start the embedded maria db instance. It gives you some hints where to look for. See these messages:

"$mysqld_bootstrap" $defaults "$mysqld_opt" --bootstrap "--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 --enforce-storage-engine="" $args --max_allowed_packet=8M --net_buffer_length=16K mysql_install_db: mysql_install_db: Installation of system tables failed! Examine the logs in mysql_install_db: /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data for more information. mysql_install_db: mysql_install_db: The problem could be conflicting information in an external mysql_install_db: my.cnf files. You can ignore these by doing:

Hope this helps.

pkerspe commented 4 years ago

Thanks for the Feedback Daniel,

I checked /Users/nobody/git/cosmo/cosmo-webapp/target/maridb/data but the folder is all empry, so not more deails there. I also checked for an existing mysql installation, but there is none present on my Laptop.

I will check the customer datasource configuration later this week. Maybe I also give it a try on a vanilla ubuntu installation in a VM

pkerspe commented 4 years ago

short udpate: Calling mvn clean spring-boot:run on fresh Ubuntu 20 installation starts the application. Yet during startup some exceptions are thrown during some "alter table" SQL Statements and also quite a number of warnings are printed out. But at least I can see that the application has been started and is listening on port 8080.