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

remove HikariCP-java7-2.4.13.jar in the war producted because conflic… #45

Closed
wants to merge 1 commit into from

Conversation

mhetru
Copy link

@mhetru mhetru commented Feb 10, 2020

…ts with another Hikari jar file uptodate

remove HikariCP-java7-2.4.13.jar in the war producted because conflicts with another Hikari jar file uptodate

…ts with another Hikari jar file uptodate

remove HikariCP-java7-2.4.13.jar in the war producted because conflicts with another Hikari jar file uptodate
@mmoayyed
Copy link
Member

Thank you for the pull request.

Exclusion need to be applied to the cas codebase itself and not the overlay. We'd went to keep the overlay as lean as possible. You will need to track down the module or dependency that is leaking this and exclude the dependency there.

@mmoayyed mmoayyed closed this Feb 10, 2020
@b4ldr
Copy link

b4ldr commented Jun 25, 2020

@mhetru Thanks for this work around where you ever able to track down the dependency fix to cas? wonder if its related to this

spring-projects/spring-boot#16489

thanks

few more notes.

After adding the following to build.gradle

compile "org.apereo.cas:cas-server-support-u2f-jpa:${project.'cas.version'}"

I received the following error which was resolved withthis work around

2020-06-25 12:45:29,646 ERROR [org.springframework.boot.SpringApplication] - <Application run failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.actuate.autoconfigure.metrics.jdbc.DataSourcePoolMetricsAutoConfiguration$HikariDataSourceMetricsConfiguration': Injection of autowired dependencies failed; nested exception is java.lang.AbstractMethodError: Receiver class com.zaxxer.hikari.metrics.micrometer.MicrometerMetricsTrackerFactory does not define or inherit an implementation of the resolved method 'abstract com.zaxxer.hikari.metrics.MetricsTracker create(java.lang.String, com.zaxxer.hikari.metrics.PoolStats)' of interface com.zaxxer.hikari.metrics.MetricsTrackerFactory.

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

Successfully merging this pull request may close these issues.

3 participants