Closed newtechfellas closed 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' }
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
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)