Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKieran Moore
Java Web Development Techdegree Student 1,848 PointsHi I have been trying for so long to deploy app weather-app to heroku. Does my gradle.build file look correct? =>
buildscript { ext { springBootVersion = '1.3.1.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } }
apply plugin: 'java' apply plugin: 'idea' apply plugin: 'spring-boot'
jar { baseName = 'weather' version = '0.0.1-SNAPSHOT' }
repositories { mavenCentral() }
dependencies { compile 'org.springframework.boot:spring-boot-starter-security' compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
compile 'org.springframework:spring-orm:4.2.4.RELEASE'
compile 'org.springframework.data:spring-data-jpa:1.9.2.RELEASE'
compile 'org.hibernate:hibernate-core:5.0.6.Final'
compile 'org.hibernate:hibernate-entitymanager:5.0.6.Final'
compile 'org.apache.tomcat:tomcat-dbcp:8.0.30'
compile 'org.thymeleaf.extras:thymeleaf-extras-springsecurity4:2.1.2.RELEASE'
runtime 'com.h2database:h2'
runtime 'javax.transaction:jta:1.1'
runtime 'org.aspectj:aspectjweaver:1.8.7'
runtime 'org.apache.httpcomponents:httpclient:4.5.2'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'org.springframework.security:spring-security-test'
testCompile 'com.github.springtestdbunit:spring-test-dbunit:1.3.0'
testCompile 'org.dbunit:dbunit:2.5.2'
testCompile 'junit:junit:4.12'
testCompile 'org.apache.httpcomponents:httpclient:4.5.2'
}
task stage{
dependsOn build }
task wrapper(type: Wrapper) { gradleVersion = '2.9' }
I successfully managed to deploy war file to Wildfly.
Here is my Procfile contents: web: java -Dserver.port=$PORT -jar build/libs/weather-0.0.1-SNAPSHOT.jar
...it manages to build at => "gradlew stage"
then when I try to open using "heroku local web" command I get:
C:\spring-deploy-weather>heroku local web [WARN] No ENV file found 8:46:54 AM web.1 | . ____ _ __ _ _ 8:46:54 AM web.1 | /\ / ' __ _ ()_ __ __ _ \ \ \ \ 8:46:54 AM web.1 | ( ( )_ | '_ | '| | ' \/ ` | \ \ \ \ 8:46:54 AM web.1 | \/ _)| |)| | | | | || (| | ) ) ) ) 8:46:54 AM web.1 | ' |__| .|| ||| |_, | / / / / 8:46:54 AM web.1 | =========||==============|_/=//// 8:46:54 AM web.1 | :: Spring Boot :: (v1.3.1.RELEASE) 8:46:54 AM web.1 | 2016-12-23 08:46:54.404 INFO 7612 --- [ main] com.teamtreehouse.Application : Starting Application on Kieran-PC with PID 7612 (C:\spring-deploy-w eather\build\libs\weather-0.0.1-SNAPSHOT.jar started by Kieran in C:\spring-deploy-weather) 8:46:54 AM web.1 | 2016-12-23 08:46:54.410 INFO 7612 --- [ main] com.teamtreehouse.Application : No active profile set, falling back to default profiles: default 8:46:54 AM web.1 | 2016-12-23 08:46:54.846 INFO 7612 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConf igEmbeddedWebApplicationContext@1877f9b: startup date [Fri Dec 23 08:46:54 NZDT 2016]; root of context hierarchy 8:46:56 AM web.1 | 2016-12-23 08:46:56.829 INFO 7612 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionMa nagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$bbeca14d] is not eligible for getting proc essed by all BeanPostProcessors (for example: not eligible for auto-proxying) 8:46:56 AM web.1 | 2016-12-23 08:46:56.925 INFO 7612 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.config.annotation.configuration. ObjectPostProcessorConfiguration' of type [class org.springframework.security.config.annotation.configuration.ObjectPostProcessorConfiguration$$EnhancerBySpringCGLIB$$e50dea47] is not eli gible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 8:46:56 AM web.1 | 2016-12-23 08:46:56.937 INFO 7612 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'objectPostProcessor' of type [class org.springframework.secur ity.config.annotation.configuration.AutowireBeanFactoryObjectPostProcessor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 8:46:56 AM web.1 | 2016-12-23 08:46:56.939 INFO 7612 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.access.expression.method.Default MethodSecurityExpressionHandler@163e9be' of type [class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 8:46:56 AM web.1 | 2016-12-23 08:46:56.955 INFO 7612 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.security.config.annotation.method.configu ration.GlobalMethodSecurityConfiguration' of type [class org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$97ec 1eb9] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 8:46:56 AM web.1 | 2016-12-23 08:46:56.976 INFO 7612 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'methodSecurityMetadataSource' of type [class org.springframew ork.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 8:46:57 AM web.1 | 2016-12-23 08:46:57.419 ERROR 7612 --- [ main] o.s.b.b.PropertiesConfigurationFactory : Properties configuration failed validation 8:46:57 AM web.1 | 2016-12-23 08:46:57.419 ERROR 7612 --- [ main] o.s.b.b.PropertiesConfigurationFactory : Field error in object 'server' on field 'port': rejected value [$PO RT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [ server.port,port]; arguments []; default message [port]]; default message [Failed to convert property value of type [java.lang.String] to required 8:46:57 AM web.1 | > type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of conver ting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | 2016-12-23 08:46:57.421 WARN 7612 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling re fresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Er ror creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/Emb 8:46:57 AM web.1 | > eddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExcep tion: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframe work.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springfra 8:46:57 AM web.1 | > mework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exc eption is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | 2016-12-23 08:46:57.444 ERROR 7612 --- [ main] o.s.boot.SpringApplication : Application startup failed 8:46:57 AM web.1 | org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationExceptio n: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfigurati on$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creati 8:46:57 AM web.1 | > ng bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.spring framework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.Err orMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'server 8:46:57 AM web.1 | > Properties': Could not bind properties to ServerProperties (prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); neste d exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3. 1.RELEASE] 8:46:57 AM web.1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1. RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113) [spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at com.teamtreehouse.Application.main(Application.java:16) [weather-0.0.1-SNAPSHOT.jar!/:na] 8:46:57 AM web.1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_111] 8:46:57 AM web.1 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_111] 8:46:57 AM web.1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.8.0_111] 8:46:57 AM web.1 | at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.8.0_111] 8:46:57 AM web.1 | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [weather-0.0.1-SNAPSHOT.jar!/:na] 8:46:57 AM web.1 | at java.lang.Thread.run(Unknown Source) [na:1.8.0_111] 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resourc e [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans .factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of 8:46:57 AM web.1 | > autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.b oot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name 'serverProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInvalidFields=false, 8:46:57 AM web.1 | > ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedData Binder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.2.4.RELE ASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEAS E.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4. 2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:195) ~[spring-boot -1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:158) ~[spring-boot-1.3 .1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3. 1.RELEASE] 8:46:57 AM web.1 | ... 14 common frames omitted 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration ': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.auto configure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springfram 8:46:57 AM web.1 | > ework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInv alidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinde r$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spr ing-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.4.REL EASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.4.RELE ASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEAS E.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4. 2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2 .4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) ~[sprin g-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) ~[spring-beans-4.2 .4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) ~[spring-beans-4.2.4.RELE ASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEAS E.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4. 2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:534) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2. 4.RELEASE] 8:46:57 AM web.1 | at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1170) ~[spring-context-4.2.4.RELEASE.jar!/:4.2.4.R ELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.getCustomizers(EmbeddedServletContainerCustomizerBeanPostProcessor .java:77) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizer BeanPostProcessor.java:67) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizer BeanPostProcessor.java:54) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java :408) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.4.R ELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.4.RELE ASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | ... 22 common frames omitted 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.s pringframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ser verProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedPro 8:46:57 AM web.1 | > perties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) ~[ spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spr ing-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | ... 46 common frames omitted 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties': Could not bind properties to ServerProperties (pr efix=server, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot .bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProces sor.java:325) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProces sor.java:275) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java :408) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) ~[spring-beans-4.2.4.R ELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.4.RELE ASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.4.RELEAS E.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.4.RELEASE.jar!/:4. 2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.4.RELEASE.j ar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.4.RELEASE.jar! /:4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.4.RELEASE.jar!/: 4.2.4.RELEASE] 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[ spring-beans-4.2.4.RELEASE.jar!/:4.2.4.RELEASE] 8:46:57 AM web.1 | ... 48 common frames omitted 8:46:57 AM web.1 | Caused by: org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.validate(PropertiesConfigurationFactory.java:362) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:271) ~[spring-boot-1.3.1.RELEASE.jar!/ :1.3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:241) ~[spring-boot-1.3.1.RELEASE.jar!/:1 .3.1.RELEASE] 8:46:57 AM web.1 | at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProces sor.java:320) ~[spring-boot-1.3.1.RELEASE.jar!/:1.3.1.RELEASE] 8:46:57 AM web.1 | ... 61 common frames omitted 8:46:57 AM web.1 | java.lang.reflect.InvocationTargetException 8:46:57 AM web.1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 8:46:57 AM web.1 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 8:46:57 AM web.1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 8:46:57 AM web.1 | at java.lang.reflect.Method.invoke(Unknown Source) 8:46:57 AM web.1 | at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) 8:46:57 AM web.1 | at java.lang.Thread.run(Unknown Source) 8:46:57 AM web.1 | Caused by: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreat ionException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAuto Configuration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: E 8:46:57 AM web.1 | > rror creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfig ure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with n 8:46:57 AM web.1 | > ame 'serverProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=fa lse); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:133) 8:46:57 AM web.1 | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532) 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:764) 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.doRun(SpringApplication.java:357) 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124) 8:46:57 AM web.1 | at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113) 8:46:57 AM web.1 | at com.teamtreehouse.Application.main(Application.java:16) 8:46:57 AM web.1 | ... 6 more 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resourc e [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans .factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration': Injection of 8:46:57 AM web.1 | > autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.b oot.autoconfigure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name 'serverProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInvalidFields=false, 8:46:57 AM web.1 | > ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedData Binder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:195) 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:158) 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:130) 8:46:57 AM web.1 | ... 14 more 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration ': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.auto configure.web.ServerProperties org.springframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springfram 8:46:57 AM web.1 | > ework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInv alidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinde r$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:368) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:534) 8:46:57 AM web.1 | at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1170) 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.getCustomizers(EmbeddedServletContainerCustomizerBeanPostProcessor .java:77) 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizer BeanPostProcessor.java:67) 8:46:57 AM web.1 | at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizer BeanPostProcessor.java:54) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java :408) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) 8:46:57 AM web.1 | ... 22 more 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.web.ServerProperties org.s pringframework.boot.autoconfigure.web.ErrorMvcAutoConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ser verProperties': Could not bind properties to ServerProperties (prefix=server, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedPro 8:46:57 AM web.1 | > perties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) 8:46:57 AM web.1 | ... 46 more 8:46:57 AM web.1 | Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverProperties': Could not bind properties to ServerProperties (pr efix=server, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.validation.BindException: org.springframework.boot .bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProces sor.java:325) 8:46:57 AM web.1 | at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProces sor.java:275) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java :408) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1570) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) 8:46:57 AM web.1 | at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) 8:46:57 AM web.1 | at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) 8:46:57 AM web.1 | ... 48 more 8:46:57 AM web.1 | Caused by: org.springframework.validation.BindException: org.springframework.boot.bind.RelaxedDataBinder$RelaxedBeanPropertyBindingResult: 1 errors 8:46:57 AM web.1 | Field error in object 'server' on field 'port': rejected value [$PORT]; codes [typeMismatch.server.port,typeMismatch.port,typeMismatch.java.lang.Integer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [server.port,port]; arguments []; default message [port]]; default message [Failed to convert propert y value of type [java.lang.String] to required type [java.lang.Integer] for property 'port'; nested exception is org.springframework.core.convert. 8:46:57 AM web.1 | > ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [java.lang.Integer]] 8:46:57 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.validate(PropertiesConfigurationFactory.java:362) 8:46:57 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:271) 8:46:57 AM web.1 | at org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:241) 8:46:57 AM web.1 | at org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor.postProcessBeforeInitialization(ConfigurationPropertiesBindingPostProces sor.java:320) 8:46:57 AM web.1 | ... 61 more [DONE] Killing all processes with signal null 8:46:57 AM web.1 | 2016-12-23 08:46:57.449 INFO 7612 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [jar:file:/C:/spring-de ploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-starter-security-1.3.1.RELEASE.jar!/, jar:f ile:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-starter-thymeleaf-1.3.1.RELEASE.jar!/, jar:file:/C:/spring-de 8:46:57 AM web.1 | > ploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-orm-4.2.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/li b/spring-data-jpa-1.9.2.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/hibernate-core-5.0.6.Final.jar!/, jar:file:/C:/spring-deploy-weather/b uild/libs/weather-0.0.1-SNAPSHOT.jar!/lib/hibernate-entitymanager-5.0.6.Final.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAP 8:46:57 AM web.1 | > SHOT.jar!/lib/tomcat-dbcp-8.0.30.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/thymeleaf-extras-springsecurity4-2.1.2.RELEASE .jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-starter-1.3.1.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1- SNAPSHOT.jar!/lib/spring-aop-4.2.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-security-confi 8:46:57 AM web.1 | > g-4.0.3.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-security-web-4.0.3.RELEASE.jar!/, jar:file:/C:/spring-de ploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-starter-web-1.3.1.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/thymelea f-spring4-2.1.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/thymeleaf-layout-dialect-1.3.1.jar!/, ja 8:46:57 AM web.1 | > r:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-beans-4.2.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather- 0.0.1-SNAPSHOT.jar!/lib/spring-core-4.2.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-jdbc-4.2.4.RELEASE.jar!/, jar:file:/C:/spring -deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-tx-4.2.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1 8:46:57 AM web.1 | > -SNAPSHOT.jar!/lib/spring-data-commons-1.11.2.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-context-4.2.4.RELE ASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/aspectjrt-1.8.7.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/l ib/slf4j-api-1.7.13.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jcl-over-slf4j-1.7.13.jar!/, jar:file:/C:/sp 8:46:57 AM web.1 | > ring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jboss-logging-3.3.0.Final.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT .jar!/lib/hibernate-jpa-2.1-api-1.0.0.Final.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/javassist-3.18.1-GA.jar!/, jar:file:/C:/spring-deploy-weat her/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/antlr-2.7.7.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jande 8:46:57 AM web.1 | > x-2.0.0.Final.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/dom4j-1.6.1.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/ weather-0.0.1-SNAPSHOT.jar!/lib/hibernate-commons-annotations-5.0.1.Final.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/tomcat-juli-8.0.30.jar!/, ja r:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/thymeleaf-2.1.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/l 8:46:57 AM web.1 | > ibs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-1.3.1.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-autoc onfigure-1.3.1.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-starter-logging-1.3.1.RELEASE.jar!/, jar:file:/C:/spring-deploy-wea ther/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/snakeyaml-1.16.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/a 8:46:57 AM web.1 | > opalliance-1.0.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-security-core-4.0.3.RELEASE.jar!/, jar:file:/C:/spring-de ploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-expression-4.2.4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-web-4.2 .4.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-starter-tomcat-1.3.1.RELEASE.jar!/, jar:f 8:46:57 AM web.1 | > ile:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-boot-starter-validation-1.3.1.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/buil d/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jackson-databind-2.6.4.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/spring-webmvc-4.2.4.RELEASE.jar!/, jar:f ile:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/groovy-2.4.4.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0. 8:46:57 AM web.1 | > 0.1-SNAPSHOT.jar!/lib/xml-apis-1.0.b2.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/ognl-3.0.8.jar!/, jar:file:/C:/spring-dep loy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/unbescape-1.1.0.RELEASE.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/logback-classic-1.1.3.j ar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jul-to-slf4j-1.7.13.jar!/, jar:file:/C:/spring-deploy-weather/bui 8:46:57 AM web.1 | > ld/libs/weather-0.0.1-SNAPSHOT.jar!/lib/log4j-over-slf4j-1.7.13.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/tomcat-embed-co re-8.0.30.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/tomcat-embed-el-8.0.30.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SN APSHOT.jar!/lib/tomcat-embed-logging-juli-8.0.30.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/tomcat-embed-we 8:46:57 AM web.1 | > bsocket-8.0.30.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/hibernate-validator-5.2.2.Final.jar!/, jar:file:/C:/spring-deplo y-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jackson-annotations-2.6.4.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jackson-core-2.6.4.jar! /, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/logback-core-1.1.3.jar!/, jar:file:/C:/spring-deploy-weather/build/l 8:46:57 AM web.1 | > ibs/weather-0.0.1-SNAPSHOT.jar!/lib/validation-api-1.1.0.Final.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/classmate-1.1.0. jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/h2-1.4.190.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/jta-1. 1.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/aspectjweaver-1.8.7.jar!/, jar:file:/C:/spring-deploy-weather/ 8:46:57 AM web.1 | > build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/httpclient-4.5.2.jar!/, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/httpcore-4.4.4.jar! /, jar:file:/C:/spring-deploy-weather/build/libs/weather-0.0.1-SNAPSHOT.jar!/lib/commons-codec-1.9.jar!/] 8:46:57 AM web.1 Exited with exit code 1
.......==========> I have followed along with the instructins carfully but still can't find the problem ,......
..very frustrating, would appreciate anyone's help . Thank-ypu!!
1 Answer
Seth Kroger
56,414 PointsI've found getting heroku local
to run on Windows without a hitch a dicey proposition. The heroku tool chain was designed for Linux, since it's the OS the actual deployed app will run on. Since you're trying to see whether a web app meant to run on Linux environment will run on Windows environment expect a few hiccups. I'd say that if the application does fine on the normal bootRun task, it should be good with a couple caveats.
Seth Kroger
56,414 PointsSeth Kroger
56,414 PointsStrike what I said about H2. Because H2 is in Java and runs here on the same JVM as the Spring Boot app it slides past the usual requirement for a database add-on. I cloned the app and deployed it to heroku without a lot of trouble. Just failed on the first try because I didn't add my own keys to api.properties.
heroku local web
failed of course, but I ignored it.