eventuate-tram-examples / eventuate-tram-examples-micronaut-customers-and-orders

Microservices, Sagas, Choreography, Eventuate Tram, Micronaut
Other
40 stars 13 forks source link

UI gives 404 Not Found #31

Open sundar-cs opened 2 years ago

sundar-cs commented 2 years ago

In this example, analogous to the issue described in Micronauts EventSourcing (as referred to in item 2 in https://github.com/eventuate-examples/eventuate-micronaut-examples-customers-and-orders/issues/15), the UI does not come up and curl localhost:8081/swagger-ui/index.html etc. also give 404 error.

The UI works properly in the Tram Sagas code example and so I tried tweaking the application.yml to have classpath:META-INF/static-content/swagger-ui as in that example and did a clean build but still doesn't make a difference.

Please let me know what I'm missing here ? Thanks in advance.

dartartem commented 2 years ago

Hi @sundar-cs, here is fix and test: https://github.com/eventuate-tram-examples/eventuate-tram-examples-micronaut-customers-and-orders/pull/30 Are you sure that you are using correct urls and same fixes?

sundar-cs commented 2 years ago

Thanks a bunch for your pointers and link to the development branch. I had the static-content fixes and URLs etc. right but was narrowing down further and found that the crux of the issue was eventuateUtilVersion=0.12.0.RELEASE in gradle.properties (my version had 0.10.0).

With this the UI is coming up fine.

Thanks a lot for your help with all the issues.