Closed zacharycarter closed 10 years ago
I was able to reproduce using the following steps on a Windows 7 machine :
1) Create new directory jhipstertest 2) Change directory to jhipstertest and run yo jhipster 3) Set options to use gradle, Java 7, token based auth, sql db, local cache, no clustered http sessions, no web sockets, postgresql prod db, h2 dev db, gulp, no compass 4) Update build.gradle and yeoman.gradle according to - https://github.com/jhipster/generator-jhipster/pull/410 5) Update profile_dev.gradle to -
apply plugin: 'spring-boot'
applicationDefaultJvmArgs = [
"-javaagent:d:/Projects/uclpreferences/spring_loaded/springloaded-jhipster.jar",
"-noverify",
"-Dspringloaded=plugins=io.github.jhipster.loaded.instrument.JHipsterLoadtimeInstrumentationPlugin"
]
6) Update src/main/resources/config/application-dev.yml. Change
hotReload
...
watchdir:
- target/classes
to
hotReload
...
watchdir:
- build/classes
7) Run gradle clean build -x test bootRun 8) Generate an entity using yo jhipster:entity foo 9) Run gradle compileJava
The new class files are picked up but all sorts of errors are logged and then an exception is thrown.
I'm not sure if it's an issue with the jvm args or not. I always see them being passed as a single argument, but I cannot get the gradle bootRun task to execute unless they're passed in as a list. Really need some help with this. I do NOT want to configure db changesets manually if I can avoid it.
We are working on this issue. This error is due to a old version of liquibase loaded by spring-boot. I have an issue with the generation of the changesets.
I will let you know when we will be able to publish a fix
We released today a 0.9 snapshot of the springloaded library to test our changes before releasing.
i.e: the generation of the changeset is not perfect and we will try to improve it. However, in every case, you must check the generated changeset and update it if needed. For example, if you manage two different databases between dev and prod, you should modify the generated changeset to set how the date is calculated (see db-changelog-001.xml).
Could you please update your project as follow to check if the change has fixed this problem.
Add a new liquibase.version property and update the jhipster-loaded.version property
<properties>
<jhipster-loaded.version>0.9-SNAPSHOT</jhipster-loaded.version>
<liquibase.version>3.2.0</liquibase.version>
</properties>
excludeTables: T_AUTHORITY,T_PERSISTENT_AUDIT_EVENT,T_PERSISTENT_AUDIT_EVENT_DATA,T_PERSISTENT_TOKEN,T_USER,T_USER_AUTHORITY
Let me know if it works
i'm having trouble with it. I made the adjustments to the POM and YML file as you suggesed to my test application called jhipster07 and id did not work so i thought I would just created a bran new jhipster application and i'm still having issues. I've described how I set up the new jhipster09 application and attached the logs
Following step for today's test. (Windows 8 Machine, MySQL Java 7 (JDK) and Spring STS 3.5.1.RELEASE)
npm install -g yo npm install -g generator-jhipster
yo jhipster (My test Application name was jhipster09 and database name is jhipster09 . Package names are com.jhipster09.myapp. Kept most defaults except for JVM Java8 and DEV/Prod to both use MySQL.)
Options for Application setup: 1) application name: jhipster09 2) using maven 3) default package: com.jhipster09.myapp 4) Java 7 (JDK) 5) cookie-based authentication 6) database SQL 7) hibernated ehcache 8) No to clustered HTTP sessions 9) No to Web Sockets 10) Production: MySQL 11)Development: MySQL 12)Grunt 13 No to Compass CSS Authoring
After the application was created, made sure that the mysql schema jhipster09 was created
At this point, i wanted to create the initial tables before adjusting the POM file and excluding tables from the application-dev.yml.
i went to the command line and issues the following command: mvn spring-boot:run >> initial_run_results.txt
Opened my browser entered URL: localhost:8080
Application jhipster09 was created with no problems.
MySQL tables were created.
[image: Inline image 8]
At this point i'm ready to change the POM file and the dev.yml file to the following:
Add a new liquibase.version property and update the jhipster-loaded.version property
BEFORE Change:
[image: Inline image 2]
After Change:
[image: Inline image 3]
excludeTables: T_AUTHORITY,T_PERSISTENT_AUDIT_EVENT,T_PERSISTENT_AUDIT_EVENT_DATA,T_PERSISTENT_TOKEN,T_USER,T_USER_AUTHORITY
[image: Inline image 1]
Did not set hotload yet from the IDE and wanted to test everything before i went and did that. I went to the command line and issued the mvn spring-boot:run >> pom_change_results.txt
[image: Inline image 4]
This time with the POM and YML file changes I got errors. see attached file called POM_CHANGE_RESULTS.txt
I went back to my POM file and see if the liquibase version was defined for the group/artifact and noticed that its not defined so I thought I would add the version
[image: Inline image 5]
So i changed the above to the following and added and added < version>${liquibase.version}
[image: Inline image 6]
I went to the command line and issued the mvn spring-boot:run >> pom_change_with_liquibase_version_results.txt
[image: Inline image 7]
Are you seeing any errors if you create a brand new jhipster application using the generating and adjusting the POM.xml file?
Thanks again for helping on this
Andy
On Wed, Jul 9, 2014 at 3:41 AM, Jérôme Mirc notifications@github.com wrote:
We released today a 0.9 snapshot of the springloaded library to test our changes before releasing.
i.e: the generation of the changeset is not perfect and we will try to improve it. However, in every case, you must check the generated changeset and update it if needed. For example, if you manage two different databases between dev and prod, you should modify the generated changeset to set how the date is calculated (see db-changelog-001.xml).
Could you please update your project as follow to check if the change has fixed this problem.
- pom.xml
Add a new liquibase.version property and update the jhipster-loaded.version property
0.9-SNAPSHOT 3.2.0
- application-dev.yml Set the excludesTable in the hotreload section
excludeTables: T_AUTHORITY,T_PERSISTENT_AUDIT_EVENT,T_PERSISTENT_AUDIT_EVENT_DATA,T_PERSISTENT_TOKEN,T_USER,T_USER_AUTHORITY
Let me know if it works
— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/413#issuecomment-48454646 .
[INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building jhipster09 0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 >>> [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jhipster09 --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jhipster09 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 25 resources [INFO] [INFO] --- maven-dependency-plugin:2.8:copy (copy) @ jhipster09 --- [INFO] Configured Artifact: io.github.jhipster.loaded:agent:0.8:jar [INFO] Copying agent-0.8.jar to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\spring_loaded\springloaded-jhipster.jar [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jhipster09 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 76 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jhipster09 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jhipster09 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 4 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\test-classes [INFO] [INFO] <<< spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 <<< [INFO] [INFO] --- spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 --- [INFO] Attaching agents: [] [INFO] com.jhipster09.myapp.Application - Starting Application on ab-8 with PID 11208 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes started by Andy in C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09) [DEBUG] com.jhipster09.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE [DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider [DEBUG] com.jhipster09.myapp.config.AsyncConfiguration - Creating Async Task Executor [DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Liquibase [DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Datasource [DEBUG] com.jhipster09.myapp.config.MetricsConfiguration - Registring JVM gauges [INFO] com.jhipster09.myapp.config.MetricsConfiguration - Initializing Metrics JMX reporting [DEBUG] com.jhipster09.myapp.config.CacheConfiguration - Starting Ehcache [DEBUG] com.jhipster09.myapp.config.CacheConfiguration - Registring Ehcache Metrics gauges [INFO] com.jhipster09.myapp.config.ThymeleafConfiguration - loading non-reloadable mail messages resources [DEBUG] com.jhipster09.myapp.config.MailConfiguration - Configuring mail server [INFO] com.jhipster09.myapp.config.WebConfigurer - Web application configuration, using profiles: [dev] [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Initializing Metrics registries [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Registering Metrics Filter [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Registering Metrics Servlet [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Registering GZip Filter [INFO] com.jhipster09.myapp.config.WebConfigurer - Web application fully configured [INFO] com.jhipster09.myapp.Application - Running with Spring profile(s) : [dev] [DEBUG] com.jhipster09.myapp.aop.logging.LoggingAspect - Enter: com.jhipster09.myapp.repository.CustomAuditEventRepository.auditEventRepository() with argument[s] = [] [DEBUG] com.jhipster09.myapp.aop.logging.LoggingAspect - Exit: com.jhipster09.myapp.repository.CustomAuditEventRepository.auditEventRepository() with result = com.jhipster09.myapp.repository.CustomAuditEventRepository$1@27cf7abb [INFO] com.jhipster09.myapp.Application - Started Application in 29.358 seconds (JVM running for 29.801) [DEBUG] com.jhipster09.myapp.aop.logging.LoggingAspect - Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Wed Jul 09 09:36:14 PDT 2014, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={message=Access is denied, type=org.springframework.security.access.AccessDeniedException}]] Hibernate: select sequence_next_hi_value from hibernate_sequences where sequence_name = 'T_PERSISTENT_AUDIT_EVENT' for update Hibernate: insert into hibernate_sequences(sequence_name, sequence_next_hi_value) values('T_PERSISTENT_AUDIT_EVENT', ?) Hibernate: update hibernate_sequences set sequence_next_hi_value = ? where sequence_next_hi_value = ? and sequence_name = 'T_PERSISTENT_AUDIT_EVENT' Hibernate: insert into T_PERSISTENT_AUDIT_EVENT (event_date, event_type, principal, event_id) values (?, ?, ?, ?) Hibernate: insert into T_PERSISTENT_AUDIT_EVENT_DATA (event_id, name, value) values (?, ?, ?) Hibernate: insert into T_PERSISTENT_AUDIT_EVENT_DATA (event_id, name, value) values (?, ?, ?) [DEBUG] com.jhipster09.myapp.aop.logging.LoggingAspect - Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null [DEBUG] com.jhipster09.myapp.security.Http401UnauthorizedEntryPoint - Pre-authenticated entry point called. Rejecting access [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:14.039s [INFO] Finished at: Wed Jul 09 09:36:46 PDT 2014 [INFO] Final Memory: 39M/459M [INFO] ------------------------------------------------------------------------ Terminate batch job (Y/N)?
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jhipster09 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jhipster09 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jhipster09 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 25 resources
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy (copy) @ jhipster09 ---
[INFO] Configured Artifact: io.github.jhipster.loaded:agent:0.9-SNAPSHOT:jar
[INFO] Copying agent-0.9-SNAPSHOT.jar to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\spring_loaded\springloaded-jhipster.jar
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jhipster09 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 76 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jhipster09 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jhipster09 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 <<<
[INFO]
[INFO] --- spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 ---
[INFO] Attaching agents: []
[INFO] com.jhipster09.myapp.Application - Starting Application on ab-8 with PID 8920 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes started by Andy in C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09)
[DEBUG] com.jhipster09.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE
[DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
[DEBUG] com.jhipster09.myapp.config.AsyncConfiguration - Creating Async Task Executor
[DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Liquibase
[DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Datasource
[ERROR] org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed:
1 change sets check sum
classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:471) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:618) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at com.jhipster09.myapp.Application.main(Application.java:62) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:289) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:958) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:930) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:465) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 20 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 44 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:356) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:912) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 46 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:294) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:549) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:515) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:682) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:655) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:155) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:353) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 66 common frames omitted
Caused by: liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:181) ~[liquibase-core-3.2.0.jar:na]
at liquibase.Liquibase.update(Liquibase.java:191) ~[liquibase-core-3.2.0.jar:na]
at liquibase.Liquibase.update(Liquibase.java:174) ~[liquibase-core-3.2.0.jar:na]
at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:330) ~[liquibase-core-3.2.0.jar:na]
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:287) ~[liquibase-core-3.2.0.jar:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 81 common frames omitted
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:471)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232)
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:618)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
at com.jhipster09.myapp.Application.main(Application.java:62)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101)
at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85)
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:958)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:930)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:465)
... 20 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
... 44 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:356)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:912)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480)
... 46 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:549)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:515)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:682)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:655)
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:155)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:353)
... 66 more
Caused by: liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:181)
at liquibase.Liquibase.update(Liquibase.java:191)
at liquibase.Liquibase.update(Liquibase.java:174)
at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:330)
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:287)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)
... 81 more
[INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.480s [INFO] Finished at: Wed Jul 09 09:46:31 PDT 2014 [INFO] Final Memory: 33M/321M [INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jhipster09 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jhipster09 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jhipster09 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 25 resources
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy (copy) @ jhipster09 ---
[INFO] Configured Artifact: io.github.jhipster.loaded:agent:0.9-SNAPSHOT:jar
[INFO] Copying agent-0.9-SNAPSHOT.jar to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\spring_loaded\springloaded-jhipster.jar
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jhipster09 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 76 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jhipster09 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jhipster09 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 <<<
[INFO]
[INFO] --- spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 ---
[INFO] Attaching agents: []
[INFO] com.jhipster09.myapp.Application - Starting Application on ab-8 with PID 17028 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes started by Andy in C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09)
[DEBUG] com.jhipster09.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE
[DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
[DEBUG] com.jhipster09.myapp.config.AsyncConfiguration - Creating Async Task Executor
[DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Liquibase
[DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Datasource
[ERROR] org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed:
1 change sets check sum
classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:471) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:618) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at com.jhipster09.myapp.Application.main(Application.java:62) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:289) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:958) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:930) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:465) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 20 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster09/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELE
You have some liquibase checksum issue. Could you please remove the two liquibase tables DATABASECHANGELOGLOCK and DATABASECHANGELOG and let me know if it works.
I removed all the tables and issues the following command:
[image: Inline image 1]
i attached the results. getting other errors.
there seems to be a conflict some where
On Wed, Jul 9, 2014 at 10:31 AM, Jérôme Mirc notifications@github.com wrote:
You have some liquibase checksum issue. Could you please remove the two liquibase tables DATABASECHANGELOGLOCK and DATABASECHANGELOG and let me know if it works.
— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/413#issuecomment-48507200 .
[INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building jhipster09 0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 >>> [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jhipster09 --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jhipster09 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 25 resources [INFO] [INFO] --- maven-dependency-plugin:2.8:copy (copy) @ jhipster09 --- [INFO] Configured Artifact: io.github.jhipster.loaded:agent:0.9-SNAPSHOT:jar [INFO] Copying agent-0.9-SNAPSHOT.jar to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\spring_loaded\springloaded-jhipster.jar [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jhipster09 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 76 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jhipster09 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jhipster09 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 <<< [INFO] [INFO] --- spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 --- [INFO] Attaching agents: [] [INFO] com.jhipster09.myapp.Application - Starting Application on ab-8 with PID 6604 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes started by Andy in C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09) [DEBUG] com.jhipster09.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE [DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider [DEBUG] com.jhipster09.myapp.config.AsyncConfiguration - Creating Async Task Executor [DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Liquibase [DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Datasource [DEBUG] com.jhipster09.myapp.config.MetricsConfiguration - Registring JVM gauges [INFO] com.jhipster09.myapp.config.MetricsConfiguration - Initializing Metrics JMX reporting [DEBUG] com.jhipster09.myapp.config.CacheConfiguration - Starting Ehcache [DEBUG] com.jhipster09.myapp.config.CacheConfiguration - Registring Ehcache Metrics gauges [INFO] com.jhipster09.myapp.config.ThymeleafConfiguration - loading non-reloadable mail messages resources [INFO] com.jhipster09.myapp.config.CacheConfiguration - Remove Cache Manager metrics [INFO] com.jhipster09.myapp.config.CacheConfiguration - Closing Cache Manager [ERROR] org.springframework.boot.SpringApplication - Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jettyEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:135) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:476) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE] at com.jhipster09.myapp.Application.main(Application.java:62) [classes/:na] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jettyEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:597) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:195) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:158) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:132) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE] ... 5 common frames omitted Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] ... 16 common frames omitted Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory(EmbeddedServletContainerAutoConfiguration.java:86) ~[spring-boot-autoconfigure-1.1.3.RELEASE.jar:1.1.3.RELEASE] at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty$$EnhancerBySpringCGLIB$$942fa89f.CGLIB$jettyEmbeddedServletContainerFactory$0() ~[spring-core-4.0.5.RELEASE.jar:1.1.3.RELEASE] at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty$$EnhancerBySpringCGLIB$$942fa89f$$FastClassBySpringCGLIB$$b8b00481.invoke( ) ~[spring-core-4.0.5.RELEASE.jar:1.1.3.RELEASE] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[spring-core-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:312) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE] at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty$$EnhancerBySpringCGLIB$$942fa89f.jettyEmbeddedServletContainerFactory( ) ~[spring-core-4.0.5.RELEASE.jar:1.1.3.RELEASE] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_55] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_55] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_55] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE] ... 17 common frames omitted Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.webapp.WebAppContext at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.7.0_55] at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[na:1.7.0_55] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_55] at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[na:1.7.0_55] at java.lang.ClassLoader.loadClass(ClassLoader.java:425) ~[na:1.7.0_55] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) ~[na:1.7.0_55] at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ~[na:1.7.0_55] ... 28 common frames omitted Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jettyEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:135) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:476) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683) at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) at com.jhipster09.myapp.Application.main(Application.java:62) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jettyEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:597) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:195) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:158) at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:132) ... 5 more Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory()] threw exception; nested exception is java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:586) ... 16 more Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/webapp/WebAppContext at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty.jettyEmbeddedServletContainerFactory(EmbeddedServletContainerAutoConfiguration.java:86) at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty$$EnhancerBySpringCGLIB$$942fa89f.CGLIB$jettyEmbeddedServletContainerFactory$0( ) at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty$$EnhancerBySpringCGLIB$$942fa89f$$FastClassBySpringCGLIB$$b8b00481.invoke( ) at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:312) at org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration$EmbeddedJetty$$EnhancerBySpringCGLIB$$942fa89f.jettyEmbeddedServletContainerFactory( ) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166) ... 17 more Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.webapp.WebAppContext at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 28 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30.625s [INFO] Finished at: Wed Jul 09 11:02:11 PDT 2014 [INFO] Final Memory: 34M/317M [INFO] ------------------------------------------------------------------------
You're right. I forgot to mention to add the following exclusion
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
</exclusion>
</exclusions>
</dependency>
I'll try that out.
should i include the liquibase version too?
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
*<version>${liquibase.version}</version>*
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
</exclusion>
</exclusions>
</dependency>
On Wed, Jul 9, 2014 at 11:25 AM, Jérôme Mirc notifications@github.com wrote:
You're right. I forgot to mention to add the following exclusion
<dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core</artifactId> <exclusions> <exclusion> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlet</artifactId> </exclusion> </exclusions> </dependency>
— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/413#issuecomment-48514307 .
Not needed. The version will come from the spring-boot dependencies
Just tried it. looks good. I attached the log
this is what i changed my pom.xml to..
Now i'll try the hot load
On Wed, Jul 9, 2014 at 11:41 AM, Andy B. cagreek@gmail.com wrote:
I'll try that out.
should i include the liquibase version too?
<dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core</artifactId> *<version>${liquibase.version}</version>* <exclusions> <exclusion> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlet</artifactId> </exclusion> </exclusions> </dependency>
On Wed, Jul 9, 2014 at 11:25 AM, Jérôme Mirc notifications@github.com wrote:
You're right. I forgot to mention to add the following exclusion
<dependency> <groupId>org.liquibase</groupId> <artifactId>liquibase-core</artifactId> <exclusions> <exclusion> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-servlet</artifactId> </exclusion> </exclusions> </dependency>
— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/413#issuecomment-48514307 .
[INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building jhipster09 0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 >>> [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jhipster09 --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jhipster09 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 25 resources [INFO] [INFO] --- maven-dependency-plugin:2.8:copy (copy) @ jhipster09 --- [INFO] Configured Artifact: io.github.jhipster.loaded:agent:0.9-SNAPSHOT:jar [INFO] Copying agent-0.9-SNAPSHOT.jar to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\spring_loaded\springloaded-jhipster.jar [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jhipster09 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 76 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jhipster09 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jhipster09 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 <<< [INFO] [INFO] --- spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster09 --- [INFO] Attaching agents: [] [INFO] com.jhipster09.myapp.Application - Starting Application on ab-8 with PID 15608 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09\target\classes started by Andy in C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster09) [DEBUG] com.jhipster09.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE [DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider [DEBUG] com.jhipster09.myapp.config.AsyncConfiguration - Creating Async Task Executor [DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Liquibase [DEBUG] com.jhipster09.myapp.config.DatabaseConfiguration - Configuring Datasource [DEBUG] com.jhipster09.myapp.config.MetricsConfiguration - Registring JVM gauges [INFO] com.jhipster09.myapp.config.MetricsConfiguration - Initializing Metrics JMX reporting [DEBUG] com.jhipster09.myapp.config.CacheConfiguration - Starting Ehcache [DEBUG] com.jhipster09.myapp.config.CacheConfiguration - Registring Ehcache Metrics gauges [INFO] com.jhipster09.myapp.config.ThymeleafConfiguration - loading non-reloadable mail messages resources [DEBUG] com.jhipster09.myapp.config.MailConfiguration - Configuring mail server [INFO] com.jhipster09.myapp.config.WebConfigurer - Web application configuration, using profiles: [dev] [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Initializing Metrics registries [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Registering Metrics Filter [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Registering Metrics Servlet [DEBUG] com.jhipster09.myapp.config.WebConfigurer - Registering GZip Filter [INFO] com.jhipster09.myapp.config.WebConfigurer - Web application fully configured [INFO] com.jhipster09.myapp.Application - Running with Spring profile(s) : [dev] [DEBUG] com.jhipster09.myapp.aop.logging.LoggingAspect - Enter: com.jhipster09.myapp.repository.CustomAuditEventRepository.auditEventRepository() with argument[s] = [] [DEBUG] com.jhipster09.myapp.aop.logging.LoggingAspect - Exit: com.jhipster09.myapp.repository.CustomAuditEventRepository.auditEventRepository() with result = com.jhipster09.myapp.repository.CustomAuditEventRepository$1@1015948b [INFO] com.jhipster09.myapp.Application - Started Application in 12.574 seconds (JVM running for 13.045)
I can verify that 0.9-SNAPSHOT has solved the issue I reported.
I'm using gradle btw, not maven.
My build.gradle -
buildscript {
repositories {
maven { url 'http://repo.spring.io/libs-snapshot' }
mavenLocal()
jcenter()
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:1.0.2.RELEASE')
classpath('net.saliman:gradle-liquibase-plugin:1.0.0')
classpath("org.postgresql:postgresql:$postgresql_version")
classpath('com.moowork.gradle:gradle-node-plugin:0.4')
classpath('com.moowork.gradle:gradle-grunt-plugin:0.5')
classpath('be.filipblondeel.gradle:gradle-gulp-plugin:0.1')
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'spring-boot'
apply plugin: 'liquibase'
apply plugin: 'idea'
// apply plugin: 'war'
apply from: 'yeoman.gradle'
if (profile == 'prod')
apply from: 'profile_prod.gradle'
else
apply from: 'profile_dev.gradle'
group = 'com.company.uclpreferences'
version = '0.1-SNAPSHOT'
description = ''
jar {
baseName = 'uclpreferences'
version = '0.1-SNAPSHOT'
}
repositories {
mavenCentral()
maven { url 'http://ia-resolver/artifactory/repo' }
maven { url 'http://repo.spring.io/milestone' }
maven { url 'http://repo.spring.io/snapshot' }
// maven { url 'https://repository.jboss.org/nexus/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/releases' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'http://repo.maven.apache.org/maven2' }
maven { url 'http://repository.apache.org/snapshots/' } {
providedRuntime
}
dependencies {
compile group: 'com.codahale.metrics', name: 'metrics-core', version: codahale_metrics_version
compile group: 'com.codahale.metrics', name: 'metrics-ehcache', version: codahale_metrics_version
compile group: 'com.codahale.metrics', name: 'metrics-graphite', version: codahale_metrics_version
compile group: 'com.codahale.metrics', name: 'metrics-jvm', version: codahale_metrics_version
compile group: 'com.codahale.metrics', name: 'metrics-servlet', version: codahale_metrics_version
compile group: 'com.codahale.metrics', name: 'metrics-json', version: codahale_metrics_version
compile(group: 'com.codahale.metrics', name: 'metrics-servlets', version: codahale_metrics_version) {
exclude(module: 'metrics-healthchecks')
}
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-json-org', version: jackson_version
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-hppc', version: jackson_version
compile group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-joda', version: jackson_version
compile group: 'com.ryantenney.metrics', name: 'metrics-spring', version:'3.0.0-RC4'
compile(group: 'com.zaxxer', name: 'HikariCP', version: HikariCP_version) {
exclude(module: 'tools')
}
compile group: 'commons-lang', name: 'commons-lang', version: commons_lang_version
compile group: 'commons-io', name: 'commons-io', version: commons_io_version
compile group: 'javax.inject', name: 'javax.inject', version: javax_inject_version
compile group: 'joda-time', name: 'joda-time', version: joda_time_version
compile group: 'joda-time', name: 'joda-time-hibernate', version: joda_time_hibernate_version
compile group: 'org.apache.geronimo.javamail', name: 'geronimo-javamail_1.4_mail', version: geronimo_javamail_1_4_mail_version
compile group: 'org.hibernate', name: 'hibernate-core', version: hibernate_entitymanager_version
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: hibernate_entitymanager_version
compile group: 'org.hibernate', name: 'hibernate-ehcache', version: hibernate_entitymanager_version
compile group: 'org.hibernate', name: 'hibernate-validator', version: hibernate_validator_version
compile group: 'org.jadira.usertype', name: 'usertype.core', version: usertype_core_version
compile(group: 'org.liquibase', name: 'liquibase-core', version: liquibase_core_version) {
exclude(module: 'jetty-servlet')
}
compile(group: 'org.liquibase.ext', name: 'liquibase-hibernate4', version: liquibase_hibernate_version) {
exclude(module: 'hibernate-jpa-2.0-api')
}
compile group: 'org.springframework.boot', name: 'spring-boot-actuator', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-autoconfigure', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-loader-tools', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-starter-logging', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-starter-security', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat', version: spring_boot_version
compile(group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: spring_boot_version) {
exclude module: 'spring_boot-starter-tomcat'
}
compile group: 'org.springframework.boot', name: 'spring-boot-starter-jetty', version: spring_boot_version
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version: spring_boot_version
compile(group: 'org.springframework', name: 'spring-context-support', version: spring_context_support_version) {
exclude(module: 'quartz')
}
compile group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: spring_security_oauth2_version
compile group: 'io.github.jhipster.loaded', name: 'core', version: jhipster_loaded_version
compile group: 'io.github.jhipster.loaded', name: 'agent', version: jhipster_loaded_version
compile group: 'com.mangofactory', name: 'swagger-springmvc', version: swagger_springmvc_version
compile group: 'org.postgresql', name: 'postgresql', version: postgresql_version
compile group: 'com.h2database', name: 'h2', version: h2_version
compile group: 'com.mattbertolini', name: 'liquibase-slf4j', version: liquibase_slf4j_version
testCompile group: 'com.jayway.awaitility', name: 'awaitility', version: awaility_version
testCompile group: 'com.jayway.jsonpath', name: 'json-path', version: json_path_version
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: spring_boot_version
testCompile group: 'org.assertj', name: 'assertj-core', version: assertj_core_version
testCompile group: 'junit', name: 'junit', version:'4.11'
testCompile group: 'org.mockito', name: 'mockito-core', version:'1.9.5'
testCompile group: 'com.mattbertolini', name: 'liquibase-slf4j', version: liquibase_slf4j_version
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version:'1.3'
}
idea {
module {
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
liquibase {
activities {
main {
changeLogFile 'src/main/resources/config/liquibase/master.xml'
url 'jdbc:postgresql://localhost/postgres'
username 'postgres'
password 'admin'
}
}
}
task copyLiquibase(dependsOn: classes, type: Copy) {
from {
configurations.compile.findAll {
it.name == "liquibase-slf4j-${liquibase_slf4j_version}.jar"
}.collect {
zipTree(it)
}
}
from {
configurations.compile.findAll {
it.name == "liquibase-core-${liquibase_core_version}.jar"
}.collect {
zipTree(it)
}
}
into sourceSets.main.output.classesDir
include 'liquibase/**/*.class'
}
jar.dependsOn copyLiquibase
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
distributionUrl = "http://services.gradle.org/distributions/gradle-${gradleVersion}-bin.zip"
}
gradle.properties
rootProject.name=uclpreferences
sourceCompatibility=1.7
targetCompatibility=1.7
profile=dev
assertj_core_version=1.6.0
awaility_version=1.4.0
commons_lang_version=2.6
commons_io_version=2.4
codahale_metrics_version=3.0.2
javax_inject_version=1
joda_time_hibernate_version=1.3
joda_time_version=2.3
json_path_version=0.9.1
jackson_version=2.3.3
geronimo_javamail_1_4_mail_version=1.8.3
hibernate_entitymanager_version=4.3.5.Final
HikariCP_version=1.3.8
jhipster_loaded_version=0.9-SNAPSHOT
liquibase_slf4j_version=1.2.1
liquibase_core_version=3.2.0
liquibase_hibernate_version=3.4
hibernate_validator_version=5.0.3.Final
metrics_spring_version=3.0.1
postgresql_version=9.3-1100-jdbc41
spring_security_oauth2_version=2.0.0.RC2
swagger_springmvc_version=0.8.2
spring_boot_version=1.1.3.RELEASE
spring_context_support_version=4.0.3.RELEASE
usertype_core_version=3.2.0.GA
h2_version=1.3.175
application-dev.yaml
server:
port: 8080
spring:
profiles: dev
datasource:
dataSourceClassName: org.postgresql.ds.PGSimpleDataSource
url:
databaseName: postgres
serverName: localhost
username: postgres
password: admin
jpa:
database-platform: com.company.uclpreferences.dialect.JsonPostgreSQLDialect
database: POSTGRESQL
openInView: false
show_sql: true
generate-ddl: false
hibernate:
ddl-auto: none
naming-strategy: org.hibernate.cfg.EJB3NamingStrategy
properties:
hibernate.cache.use_second_level_cache: true
hibernate.cache.use_query_cache: false
hibernate.generate_statistics: true
hibernate.cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
mail:
baseUrl: http://localhost:8080
thymeleaf:
mode: XHTML
cache: false
metrics:
jmx.enabled: true
graphite:
enabled: false
host: localhost
port: 2003
cache:
timeToLiveSeconds: 3600
ehcache:
maxBytesLocalHeap: 16M
# You can add as many as folders to watch
# You just need to add a dash + the directory to watch
hotReload:
enabled: true
package:
project: com.company.uclpreferences
domain: com.company.uclpreferences.domain
restdto: com.company.uclpreferences.web.rest.dto
liquibase:
defaultCatalogName:
defaultSchema: public
excludeTables: oauth_access_token,oauth_approvals,oauth_client_details,oauth_client_token,oauth_code,oauth_refresh_token
watchdir:
- out/production/uclpreferences
Some interesting info -
Liquibase does some funky class loading to find implementation classes. This is why the liquibase-slf4j is used by jhipster - because liquibase wants you to implement your own logger, if you want to log to anything other than sysout.
The problem occurs when you want to make a fat jar - Liquibase is expecting several classes to implement several of their interfaces (I'm guessing at several right now I know of two) and those classes need to be placed inside a certain package.
This all breaks down in a fat jar - since the compiled liquibase and liquibase-slf4j files won't exist in a package at the root of your jar. If you produce a fat jar with spring boot and try to run it, it will fail because of this liquibase issue.
That's where the copyLiquibase task comes in. It copies packages from the two dependencies and places them at the root of the jar. This could be done more elegantly, especially since not every class from liquibase-core needs to be moved.
I can create a separate issue for this if you'd like, but i feel like it's an issue with liquibase and not so much jhipster - even though it will need to be addressed. I may just try to fix it myself and issue a PR to liquibase but I have no idea what that project's code looks like.
Could you please open a new defect?
New defect opened - https://github.com/jhipster/generator-jhipster/issues/421
I used Maven and it did not work for me but it could be because of my confirmation. I've attached my POM.xml, yml and results of hot load test. Please take a look when you have time and let me know if its my configuration files.
For this project I started fresh, all brand new created application called jhipster11 on a windows 8, java 7, mysql and maven setup.
I did everything from scratch including the following commands:
Install Yeoman:
npm install -g yo
Install JHipster:
npm install -g generator-jhipster
yo jhipster
Once this was created i changed password for the mysql settings in yml file ran the following command to build the tables.
mvn spring-boot:run
checked that the application worked doing the localhost:8080 in chrome. Everything is perfect and you can see the log results in the attached file called initial_run.txt \ look good
I then closed the command window, opened up sts and imported the new application jhipster11 and created a new run configuration as soon in the screen shot below. Before making any changes to the POM file or yml file I wanted to see the log results. I got an error and i've included it in this email. Please see attachment called: _results_BEFORE_POMCHANGE.txt
After that, I made the appropriate changes suggested in previous emails to the POM and YAML file and have been getting errors. I first ran from the command line: mvn spring-boot:run and attached the results to the file called _results_after_pomchanges.txt
Closed out of the command line and opened STS to test the hot load configuration:
-javaagent:spring_loaded/springloaded-jhipster.jar -noverify -Dspringloaded=plugins=io.github.jhipster.loaded.instrument.JHipsterLoadtimeInstrumentationPlugin
I got errors with that too and attached the results in the file called: _results_from_STS_after_POMchange.txt
Spring STS Run As configuration:
[image: Inline image 2]
MySQL Schema:
[image: Inline image 1]
On Thu, Jul 10, 2014 at 9:03 AM, Jérôme Mirc notifications@github.com wrote:
Closed #413 https://github.com/jhipster/generator-jhipster/issues/413 via 78f1e67 https://github.com/jhipster/generator-jhipster/commit/78f1e671a63df78badeb6c322f539e999b2de62f .
— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/413#event-140249697 .
[INFO] Scanning for projects... [INFO]
[INFO] ------------------------------------------------------------------------ [INFO] Building jhipster11 0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster11 >>> [INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jhipster11 --- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jhipster11 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 25 resources [INFO] [INFO] --- maven-dependency-plugin:2.8:copy (copy) @ jhipster11 --- [INFO] Configured Artifact: io.github.jhipster.loaded:agent:0.8:jar [INFO] Copying agent-0.8.jar to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11\spring_loaded\springloaded-jhipster.jar [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jhipster11 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 76 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11\target\classes [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jhipster11 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jhipster11 --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 4 source files to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11\target\test-classes [INFO] [INFO] <<< spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster11 <<< [INFO] [INFO] --- spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster11 --- [INFO] Attaching agents: [] [INFO] com.jhipster11.myapp.Application - Starting Application on ab-8 with PID 10256 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11\target\classes started by Andy in C:\Users\Andy\WorkspaceSpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11) [DEBUG] com.jhipster11.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE [DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider [DEBUG] com.jhipster11.myapp.config.AsyncConfiguration - Creating Async Task Executor [DEBUG] com.jhipster11.myapp.config.DatabaseConfiguration - Configuring Liquibase [DEBUG] com.jhipster11.myapp.config.DatabaseConfiguration - Configuring Datasource [DEBUG] com.jhipster11.myapp.config.MetricsConfiguration - Registring JVM gauges [INFO] com.jhipster11.myapp.config.MetricsConfiguration - Initializing Metrics JMX reporting [DEBUG] com.jhipster11.myapp.config.CacheConfiguration - Starting Ehcache [DEBUG] com.jhipster11.myapp.config.CacheConfiguration - Registring Ehcache Metrics gauges [INFO] com.jhipster11.myapp.config.ThymeleafConfiguration - loading non-reloadable mail messages resources [DEBUG] com.jhipster11.myapp.config.MailConfiguration - Configuring mail server [INFO] com.jhipster11.myapp.config.WebConfigurer - Web application configuration, using profiles: [dev] [DEBUG] com.jhipster11.myapp.config.WebConfigurer - Initializing Metrics registries [DEBUG] com.jhipster11.myapp.config.WebConfigurer - Registering Metrics Filter [DEBUG] com.jhipster11.myapp.config.WebConfigurer - Registering Metrics Servlet [DEBUG] com.jhipster11.myapp.config.WebConfigurer - Registering GZip Filter [INFO] com.jhipster11.myapp.config.WebConfigurer - Web application fully configured [INFO] com.jhipster11.myapp.Application - Running with Spring profile(s) : [dev] [DEBUG] com.jhipster11.myapp.aop.logging.LoggingAspect - Enter: com.jhipster11.myapp.repository.CustomAuditEventRepository.auditEventRepository() with argument[s] = [] [DEBUG] com.jhipster11.myapp.aop.logging.LoggingAspect - Exit: com.jhipster11.myapp.repository.CustomAuditEventRepository.auditEventRepository() with result = com.jhipster11.myapp.repository.CustomAuditEventRepository$1@6ec22368 [INFO] com.jhipster11.myapp.Application - Started Application in 33.431 seconds (JVM running for 33.87) [DEBUG] com.jhipster11.myapp.security.CustomPersistentRememberMeServices - Remember-me cookie detected Hibernate: select persistent0.series as series1_30, persistent0_.ip_address as ip_addre2_30, persistent0_.token_date as token_da3_30, persistent0_.token_value as token_va4_30, persistent0_.user_login as user_log6_30, persistent0_.user_agent as user_age5_30, user1_.login as login1_41, user1_.created_by as created_2_41, user1_.created_date as created_3_41, user1_.last_modified_by as last_mod4_41, user1_.last_modified_date as last_mod5_41, user1_.activated as activate6_41, user1_.activation_key as activati7_41, user1_.email as email8_41, user1_.first_name as first_na9_41, user1_.lang_key as lang_ke10_41, user1_.last_name as last_na11_41, user1_.password as passwor12_41 from T_PERSISTENTTOKEN persistent0 left outer join TUSER user1 on persistent0_.userlogin=user1.login where persistent0_.series=? [DEBUG] com.jhipster11.myapp.security.CustomPersistentRememberMeServices - No persistent token found for series id: vP6yPUjTjlALSYMtp9oUjA== [DEBUG] com.jhipster11.myapp.security.CustomPersistentRememberMeServices - Cancelling cookie [DEBUG] com.jhipster11.myapp.aop.logging.LoggingAspect - Enter: org.springframework.boot.actuate.audit.AuditEventRepository.add() with argument[s] = [AuditEvent [timestamp=Thu Jul 10 09:06:30 PDT 2014, principal=anonymousUser, type=AUTHORIZATION_FAILURE, data={message=Access is denied, type=org.springframework.security.access.AccessDeniedException}]] Hibernate: select sequence_next_hi_value from hibernate_sequences where sequence_name = 'T_PERSISTENT_AUDIT_EVENT' for update Hibernate: insert into hibernate_sequences(sequence_name, sequence_next_hi_value) values('T_PERSISTENT_AUDIT_EVENT', ?) Hibernate: update hibernate_sequences set sequence_next_hi_value = ? where sequence_next_hi_value = ? and sequence_name = 'T_PERSISTENT_AUDIT_EVENT' Hibernate: insert into T_PERSISTENT_AUDIT_EVENT (event_date, event_type, principal, event_id) values (?, ?, ?, ?) Hibernate: insert into T_PERSISTENT_AUDIT_EVENT_DATA (event_id, name, value) values (?, ?, ?) Hibernate: insert into T_PERSISTENT_AUDIT_EVENT_DATA (event_id, name, value) values (?, ?, ?) [DEBUG] com.jhipster11.myapp.aop.logging.LoggingAspect - Exit: org.springframework.boot.actuate.audit.AuditEventRepository.add() with result = null [DEBUG] com.jhipster11.myapp.security.Http401UnauthorizedEntryPoint - Pre-authenticated entry point called. Rejecting access [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22:13.187s [INFO] Finished at: Thu Jul 10 09:13:17 PDT 2014 [INFO] Final Memory: 39M/458M [INFO] ------------------------------------------------------------------------ Terminate batch job (Y/N)?
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building jhipster11 0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster11 >>>
[INFO]
[INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-versions) @ jhipster11 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jhipster11 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 26 resources
[INFO]
[INFO] --- maven-dependency-plugin:2.8:copy (copy) @ jhipster11 ---
[INFO] Configured Artifact: io.github.jhipster.loaded:agent:0.9-SNAPSHOT:jar
[INFO] Copying agent-0.9-SNAPSHOT.jar to C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11\spring_loaded\springloaded-jhipster.jar
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jhipster11 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jhipster11 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jhipster11 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster11 <<<
[INFO]
[INFO] --- spring-boot-maven-plugin:1.1.3.RELEASE:run (default-cli) @ jhipster11 ---
[INFO] Attaching agents: []
[INFO] com.jhipster11.myapp.Application - Starting Application on ab-8 with PID 14040 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11\target\classes started by Andy in C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11)
[DEBUG] com.jhipster11.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE
[DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
[DEBUG] com.jhipster11.myapp.config.AsyncConfiguration - Creating Async Task Executor
[DEBUG] com.jhipster11.myapp.config.DatabaseConfiguration - Configuring Liquibase
[DEBUG] com.jhipster11.myapp.config.DatabaseConfiguration - Configuring Datasource
[ERROR] org.springframework.boot.SpringApplication - Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster11/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:471) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:618) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at com.jhipster11.myapp.Application.main(Application.java:62) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster11/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:289) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:958) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:930) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:465) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 20 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster11/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:508) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 44 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster11/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:356) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1017) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:912) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:858) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:480) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 46 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster11/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:294) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:549) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:515) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:682) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:655) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:155) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:353) ~[spring-orm-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 66 common frames omitted
Caused by: liquibase.exception.DatabaseException: java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:289) ~[liquibase-core-3.2.0.jar:na]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 81 common frames omitted
Caused by: java.sql.SQLException: Timeout of 30000ms encountered waiting for connection.
at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:184) ~[HikariCP-1.3.8.jar:na]
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:84) ~[HikariCP-1.3.8.jar:na]
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:284) ~[liquibase-core-3.2.0.jar:na]
... 83 common frames omitted
Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1094) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4226) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4158) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:926) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1748) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1288) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2508) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2541) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2323) ~[mysql-connector-java-5.1.31.jar:na]
at com.mysql.jdbc.ConnectionImpl.
[INFO] com.jhipster11.myapp.Application - Starting Application on ab-8 with PID 18332 (C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11\target\classes started by Andy in C:\Users\Andy\Workspace_SpringSTS\responsiveD\$GeneratedCodeExamples\jhipster11) [DEBUG] com.jhipster11.myapp.Application - Running with Spring Boot v1.1.3.RELEASE, Spring v4.0.5.RELEASE [DEBUG] org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider [DEBUG] com.jhipster11.myapp.config.AsyncConfiguration - Creating Async Task Executor [DEBUG] com.jhipster11.myapp.config.DatabaseConfiguration - Configuring Liquibase [DEBUG] com.jhipster11.myapp.config.DatabaseConfiguration - Configuring Datasource [ERROR] org.springframework.boot.SpringApplication - Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster11/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:471) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:232) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:618) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467) ~[spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:683) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) ~[spring-boot-1.1.3.RELEASE.jar:1.1.3.RELEASE]
at com.jhipster11.myapp.Application.main(Application.java:62) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cache.annotation.ProxyCachingConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springframework.cache.annotation.AbstractCachingConfiguration.cacheManagerBeans; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheConfiguration': Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [com/jhipster11/myapp/config/DatabaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:292) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1185) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:370) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1094) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:989) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:92) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:103) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:289) ~[spring-aop-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:958) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:930) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:465) ~[spring-beans-4.0.5.RELEASE.jar:4.0.5.RELEASE]
... 20 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.util.Collection org.springfram
Well the stack trace is cut off so it's hard to determine what the root error is. I do know one thing though - the error I reported in the issue isn't at all related to what you're encountering.
If you need help with getting jhipster running properly I'd look to stackoverflow or maybe a jhipster irc if there is one. Honestly this is all issues with your configuration - looks like you changed a changeset and now liquibase is throwing up because of it. I also see a database timeout in the stack trace so maybe your mysql instance isn't started?
It must be configuration. Does my POM file and YAML file look okay to you.
jerome suggested i change my POM and YAML to get the hot load working as follows:
Could you please update your project as follow to check if the change has fixed this problem.
Add a new liquibase.version property and update the jhipster-loaded.version property
excludeTables: T_AUTHORITY,T_PERSISTENT_AUDIT_EVENT,T_PERSISTENT_AUDIT_EVENT_DATA,T_PERSISTENT_TOKEN,T_USER,T_USER_AUTHORITY
Let me know if it works
and this item in another email.
You're right. I forgot to mention to add the following exclusion
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<exclusions>
<exclusion>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-servlet</artifactId>
</exclusion>
</exclusions>
</dependency>
i followed these instructions. if i put the pom settings back to the original state (as generated by yeoman) and not bother with hot load everything works.
On Thu, Jul 10, 2014 at 3:15 PM, carterza notifications@github.com wrote:
Well the stack trace is cut off so it's hard to determine what the route error is. I do know one thing though - the error I reported in the issue isn't at all related to what you're encountering.
If you need help with getting jhipster running properly I'd look to stackoverflow or maybe a jhipster irc if there is one. Honestly this is all issues with your configuration - looks like you changed a changeset and now liquibase is throwing up because of it. I also see a database timeout in the stack trace so maybe your mysql instance isn't started?
— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/413#issuecomment-48671859 .
You're posting a build stack trace and a stack trace when your application is running - but you're cutting off the root error of the stack trace.
The last error I see is - Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
Which sounds to me like there's an issue with your changelog - like the XML was changed somehow and the checksum function is throwing that error. I wouldn't think that switching versions of the jhipster loaded plugin and liquibase would cause this kind problem, but I've been wrong before.
Please give us the full stack trace and please double check that everything is okay (change sets are being generated when you compile class files) when reverting the versions of those two libraries.
Thanks
There is a lot of issue in this stacktrace but I think the line to check is the following
... 83 more
Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1094) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4226) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4158)
Hi Carterza,
i provided three different test which file were you refering to? I think the build stack you mention is with the test I did after changing the POM.xml file to the settings mentioned in my previous email to make the hot reload to work from STS. I don't know how to get the FULL stack trace when running the project from STS using the VM arguments:
-javaagent:spring_loaded/springloaded-jhipster.jar -noverify -Dspringloaded=plugins=io.github.jhipster.loaded.instrument.JHipsterLoadtimeInstrumentationPluginbuild configuration commands:
I'm giving up on it, i'll just use the regular yeoman JHIPSTER build and do manual database changes and not worry about hot load or liquibase.
thanks for your time.
On Thu, Jul 10, 2014 at 4:24 PM, carterza notifications@github.com wrote:
You're posting a build stack trace and a stack trace when your application is running - but you're cutting off the root error of the stack trace.
The last error I see is - Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed: 1 change sets check sum classpath:config/liquibase/changelog/db-changelog-001.xml::1::jhipster is now: 7:c8aaed349c2392e94c770578069a1159
Which sounds to me like there's an issue with your changelog - like the XML was changed somehow and the checksum function is throwing that error. I wouldn't think that switching versions of the jhipster loaded plugin and liquibase would cause this kind problem, but I've been wrong before.
Please give us the full stack trace and please double check that everything is okay (change sets are being generated when you compile class files) when reverting the versions of those two libraries.
Thanks
— Reply to this email directly or view it on GitHub https://github.com/jhipster/generator-jhipster/issues/413#issuecomment-48677424 .
I just tried 1.1 and got: java.lang.NoSuchMethodError: liquibase.structure.core.Schema.setDefault(Ljava/lang/Boolean;)Lliquibase/structure/core/Schema; ...
I can see that liquibase-core is 3.0.8. Maven used ...
The solution is updating the MD5SUM to the new value which you can get in the error log.
for example, update DATABASECHANGELOG set MD5SUM = '7:06db5cbe9543b2531533d8badfe9cad9' where id = 20150729084026
mvn liquibase:clearCheckSums
http://www.liquibase.org/documentation/maven/maven_clearchecksums.html
that would be a good addition can some one PR this?
@bluecitymoon thank you
Hi,
After recently getting hot reload to work with my application (I think it's working anyawy) I'm now running into errors during liquibase changeset generation. If I generate a new entity using -
and then run a gradle compileJava
this is the error that gets thrown :
I see a bunch of other errors about failing to find a watched folder for the directory so I'm not sure exactly what those are about.
Since gradle is putting my build files in ./build and not ./target I updated my application-dev.yml to read :