Skip to content
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

Upgrade dependencies, update according the style guide #36

Open
dartartem opened this issue Aug 17, 2020 · 3 comments
Open

Upgrade dependencies, update according the style guide #36

dartartem opened this issue Aug 17, 2020 · 3 comments

Comments

@dartartem
Copy link
Collaborator

  • use cp-kafka, cp-zookeper images
  • use minimum heap size for infrastructure services
  • use base example image
  • use application.properties instead of env variables
@dartartem
Copy link
Collaborator Author

To support base image it is necessary to upgrade to Spring Boot 2, because there is different path for actuator that necessary for healtcheck:

http://localhost:8080/actuator/health - spring boot 2
http://localhost:8080/health - spring boot 1

During the update I found the following issue when started standalone-service (single-module):


standalone-service_1  | ***************************
standalone-service_1  | APPLICATION FAILED TO START
standalone-service_1  | ***************************
standalone-service_1  | 
standalone-service_1  | Description:
standalone-service_1  | 
standalone-service_1  | An attempt was made to call a method that does not exist. The attempt was made from the following location:
standalone-service_1  | 
standalone-service_1  |     springfox.documentation.spring.web.plugins.DocumentationPluginsManager.createContextBuilder(DocumentationPluginsManager.java:152)
standalone-service_1  | 
standalone-service_1  | The following method did not exist:
standalone-service_1  | 
standalone-service_1  |     org.springframework.plugin.core.PluginRegistry.getPluginFor(Ljava/lang/Object;Lorg/springframework/plugin/core/Plugin;)Lorg/springframework/plugin/core/Plugin;
standalone-service_1  | 
standalone-service_1  | The method's class, org.springframework.plugin.core.PluginRegistry, is available from the following locations:
standalone-service_1  | 
standalone-service_1  |     jar:file:/service.jar!/BOOT-INF/lib/spring-plugin-core-2.0.0.RELEASE.jar!/org/springframework/plugin/core/PluginRegistry.class
standalone-service_1  | 
standalone-service_1  | It was loaded from the following location:
standalone-service_1  | 
standalone-service_1  |     jar:file:/service.jar!/BOOT-INF/lib/spring-plugin-core-2.0.0.RELEASE.jar!/
standalone-service_1  | 
standalone-service_1  | 
standalone-service_1  | Action:
standalone-service_1  | 
standalone-service_1  | Correct the classpath of your application so that it contains a single, compatible version of org.springframework.plugin.core.PluginRegistry

I found by googling that reason is in swagger.
I realized that I forgot to replace explicit swagger configs by swagger library from eventuate-util.
I did it. But it did not help.
But it works for other projects, for example for eventuate-tram-examples-customers-and-orders.
According this issue: springfox/springfox#2932 it seems reason is that application uses hateoas.

@satyendrakumarsingh
Copy link

satyendrakumarsingh commented Sep 1, 2020

Use below single dependency with latest spring boot, remove other spring-fox and swagger.

<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <version>3.0.0</version> </dependency>

Access swagger doc as - /swagger-ui/

@dartartem
Copy link
Collaborator Author

@satyendrakumarsingh thank you

dartartem added a commit to dartartem/eventuate-examples-java-spring-todo-list that referenced this issue Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants