question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Snapshot 3.0.0 broken. @ConditionalOnClass did not find required class

See original GitHub issue

I use snapshot version 3.0.0 Seems on the latest update something went wrong. Annotation parameter on class Swagger2DocumentationWebMvcConfiguration point to class which is present only on older(release 2.9.2) version. It should be enough just change this line @ConditionalOnClass(name = "springfox.documentation.spring.web.SpringfoxWebMvcConfiguration") to @ConditionalOnClass(name = "springfox.documentation.spring.web.SpringfoxWebConfiguration") but honestly I didnt test such fix

Error on log

2019-03-07 10:47:33.001 [restartedMain] TRACE [SpringBootCondition.java:92] - Condition OnClassCondition on springfox.documentation.swagger2.configuration.Swagger2DocumentationWebMvcConfiguration did not match due to @ConditionalOnClass did not find required class ‘springfox.documentation.spring.web.SpringfoxWebMvcConfiguration’ - org.springframework.boot.autoconfigure.condition.OnClassCondition

Info in MANIFEST.MF

Manifest-Version: 1.0 Implementation-Title: springfox-swagger2 Built-With: gradle-5.2, groovy-2.5.4 Implementation-Version: null Built-By: circleci Build-Time: 2019-02-26T02:07:09+0000 Created-By: 1.8.0_181 (Oracle Corporation) Built-On: b17fd3680f46/172.23.0.3

image

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
jahidakhtargitcommented, Jul 17, 2019

Hi @diykorey

I think your issue might be you need to include the dependency

<dependency> <groupId>io.springfox</groupId> <artifactId>springfox-spring-webmvc</artifactId> <version>3.0.0-SNAPSHOT</version> </dependency> into your project as spring fox 3 now supports flux and mvc.

This has fixed this issue for me.

Thanks Hi, After adding the dependency I’m getting the below error: Error: Unable to initialize main class Caused by: java.lang.NoClassDefFoundError: org/springframework/web/servlet/LocaleResolver

0reactions
stale[bot]commented, Jul 8, 2020

This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring - SpringBoot Application Startup Failed due to autowire ...
Bean method 'mailSender' not loaded because @ConditionalOnClass did not find required class 'javax.mail.internet.MimeMessage' Action: Consider revisiting ...
Read more >
spring-cloud/spring-cloud - Gitter
Hey All, I have an issue with Spring Boot 2.4.0 with Spring Cloud version 3.0.0-SNAPSHOT version. application.yml file properties are ...
Read more >
Spring Boot Reference Documentation
Spring Boot 3.0.1-SNAPSHOT requires Java 17 and is compatible up to and ... If you do not see the formula, your installation of...
Read more >
App Engine Standard Java 8: 404 Not Found - Issue Tracker
@ConditionalOnClass found required class 'org.springframework.web.servlet. ... ReactiveWebApplication did not find reactive web application classes ...
Read more >
Spring boot builds and starts, but no serving happens
The Treehouse Community is a meeting place for developers, designers, ... Did not match: - @ConditionalOnClass did not find required class ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found