I am just trying to learn Java programming (doing VC# actually). Downloaded source from https://github.com/ykameshrao/spring-hibernate-springdata-springmvc-maven-project-framework Installed JDK7 and tried with JDK8 also. Tomcat 6.0, 7.0, 8.0 also. Thinking that may be there is a library issue. But I am still getting following error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbProps': Invocation of init method failed; nested exception is java.io.FileNotFoundException: \config\props\database.properties (The system cannot find the path specified)
I understand it must be configured somewhere, as the code is working on authors, what am i missing? Here is a applicationContext-properties.xml:
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.1.xsd">
<!--<util:properties id="mdbProps" location="file:#{systemProperties['conf.path']}/config/props/mongodb.properties"
/>-->
<bean id="httpError" class="com.yourpackagename.yourwebproject.api.common.HttpError" /> <bean id="key" class="com.yourpackagename.yourwebproject.common.Key" /> <bean id="props" class="com.yourpackagename.yourwebproject.common.Props" /> <bean id="msg" class="com.yourpackagename.yourwebproject.common.Message" /> </beans>