Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

set -Dconf.path=”path-to-config-folder-on-target-machine-containing-property-files” #4

thysmichels opened this Issue Nov 15, 2012 · 5 comments


None yet
3 participants

How do I set the following command on a Mac and what exactly must the path be?

Sorry, I never use Mac, always Ubuntu.
On Nov 14, 2012 10:00 PM, "Thys Michels" notifications@github.com wrote:

How do I set the following command on a Mac and what exactly must the path

Reply to this email directly or view it on GitHubhttps://github.com/ykameshrao/spring-hibernate-springdata-springmvc-maven-project-framework/issues/4.


ykameshrao commented Nov 15, 2012

try this: $ export JAVA_OPTS = " -Dconf.path=path-to-config-folder-on-target-machine-containing-property-files $JAVA_OPTS"

That command did not worked I specified the path explicitly:
util:properties id="dbProps" location="file:/Users/tmichels/git/spring-hibernate-springdata-springmvc-maven-project-framework/yourwebproject/config/props/database.properties"

Now I get this error:
ERROR [main] c.y.y.a.d.YourWebProjectApiDispatcherServlet [FrameworkServlet.java:457] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [config/spring/applicationContext-jdbc.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Field or property 'dbProps' cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext'

I looked in the database and the user table has been created. Any reason why it failed to found dbProps?

Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:redeploy (default-cli) on project yourwebproject: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 for URL: -

In which pom.xml must I add tomcat details?

I solved the issue above: my tomcat settings, deployed the war successfully. Now I get the message in Tomcat:
FAIL - Application at context path /yourwebproject could not be started

Where do I change the content path?yourwebproject.properties?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment