spring-attic / spring-social-samples

Samples of using Spring Social
http://projects.spring.io/spring-social
Apache License 2.0
531 stars 811 forks source link

spring-social-showcase-sec gradle failed to start spring context #26

Closed newtechfellas closed 10 years ago

newtechfellas commented 10 years ago

Received this error when started Tomcat with 'gradle tomcatRun'

Caused by: java.io.FileNotFoundException: class path resource [org/springframework/social/showcase/config/application.properties] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)

newtechfellas commented 10 years ago

I had to update build.gradle for resource processing. Below code fixed it. processResources { from sourceSets.main.allSource include '*/.properties' include '*/.sql' }

maxiwu commented 8 years ago

Maven import of this project received same error. Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [org/springframework/social/showcase/config/application.properties] cannot be opened because it does not exist