Skip to content

Getting NoClassDefFoundError for slf4j for Spring Boot applications using jetty starter #32741

@anjumfatima90

Description

@anjumfatima90

Getting
[ERROR ] CWWKZ0002E: An exception occurred while starting the application. The exception message was: java.lang.NoClassDefFoundError: org.slf4j.Logger

when spring-boot-starter-jetty is used in the pom.xml as below

<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
			<exclusions>
				<exclusion>
					<groupId>org.springframework.boot</groupId>
					<artifactId>spring-boot-starter-tomcat</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-jetty</artifactId>
		</dependency>

The slf4j jar is getting removed during the thinning process of jetty starter jars.

Metadata

Metadata

Assignees

Labels

release bugThis bug is present in a released version of Open Libertyrelease:250010

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions