1

i'm using jhipster 4.5.6. I'm trying to run my application on heroku and i'm getting this error when executing this code on in main class:

Environment env = app.run(args).getEnvironment();

2017-06-24 17:35:32.293 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application startup failed 2017-06-24T17:35:32.294416+00:00 app[web.1]: 2017-06-24T17:35:32.294418+00:00 app[web.1]: org.springframework.beans.FatalBeanException: Could not copy property 'password' from source to target; nested exception is java.lang.reflect.InvocationTargetException

Magui87
  • 173
  • 3
  • 9
  • Here is the completed log: java.lang.IllegalStateException: Invalid URL: ${JHIPSTER_REGISTRY_URL}/config – Magui87 Jun 24 '17 at 18:26
  • So it seems you did not configure an environment variable for the jhipster registry. Are you using microservices architecture? If not there's no obvious reason for your app to use service discovery feature offered by the registry. – Gaël Marziou Jun 24 '17 at 22:59
  • I'm not using microservices architecture, the application deployed on heroku is thee basic template generated by jhipster, how can i disable the service discovery – Magui87 Jun 25 '17 at 11:55

1 Answers1

5

You generated a monolith app with service discovery enabled, this is why your app expects JHipster registry URL to be configured. You should edit your .yo-rc.json file and set "serviceDiscoveryType": false and re-generate your app with yo jhipster --with-entities.

Gaël Marziou
  • 16,028
  • 4
  • 38
  • 49