-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using hystrix: No bean named 'resourceLoaderDependingInitHook' is defined #75
Comments
Same issue here, though I'm not using Hystrix but I am using Eureka (from Spring cloud/Netflix as well). I think the compatibility of Spring cloud with Camunda isn't perfect yet. |
What is perfect in this world? But maybe you are able to help us out? Could you analyse the resourceLoader Problem? to me it seems that the whole concept of static references in spring lifecycle methods is not the optimal choice, but I do not really get it ... |
Nothing is perfect. It looks that for some reason any I also added a log to the finish statement of the runner:
I have no idea why it does that, so I asked on StackOverflow. Perhaps there's an obvious reason that I'm missing. |
But knowing that it executes twice, you could check first if the context contains a bean with the given context:
This does the trick, however, a bit later I got another exception that the
That did the trick and the admin application is working now. If you would like me to create a pull request I'll do that (have to verify if I have to change any tests though). |
Thanks for your input, Dimitri. Spontanuous idea: If the RunListener is really the problem here, we could try another approach: we can use camunda hooks (@postdeploy or ProcessEnginePlugin.postEngineBuild()) to execute stuff that is supposed to happen after the application started without relying on the spring application lifecycle. That's something I already had in mind anyway (there even is an issue for that somewhere). But for now: if you could create a PR, I would accept the quick-fix, but you'd have to live with a removal somewhere in the near future when the lifecycle is siwtched to camunda. Deal? |
For me personally it doesn't matter, I'm just testing the capabilities of Camunda. I created a pull request already #79. |
* Implemented more safe way to check if the inithook bean was already created (#75) * Fixed referencing CamundaBpmProperties by qualifier in case multiple instances are found on the application context
* Implemented more safe way to check if the inithook bean was already created (#75) * Fixed referencing CamundaBpmProperties by qualifier in case multiple instances are found on the application context * add documentation for SpringBootProcessApplication * add hystrix to test
With PR #79 the CamundaBpmWebappConfigurationIT test fails because it cannot find CamundaBpmProperties bean. Ideas? |
fixed by switching to EnableConfigurationProperties |
I added the following dependencies to a pom.xml using the camunda-springboot-webapp starter.
Result:
The text was updated successfully, but these errors were encountered: