-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
I have upgraded an application to Spring Boot 4 and spring-grpc 1.0.0-SNAPSHOT - modulo dependency changes everything works as expected. When I tried it with 1.0.0-RC1 it seemed to want the grpc jakarta servlet classes - this application has a servlet running(actuator) - so presumably it wanted to reuse tomcat.
The original Spring Boot 3 app was using netty.
The dependencies were copied from the server sample:
//properties
<spring-grpc-dependencies-scope>import</spring-grpc-dependencies-scope>
<grpc.version>1.74.0</grpc.version>
<spring-grpc.version>1.0.0-SNAPSHOT</spring-grpc.version> - OR -
<spring-grpc.version>1.0.0-RC1</spring-grpc.version>
//dependencies
<groupId>io.grpc</groupId>
<artifactId>grpc-bom</artifactId>
<version>${grpc.version}</version>
<groupId>org.springframework.grpc</groupId>
<artifactId>spring-grpc-dependencies</artifactId>
<version>${spring-grpc.version}</version>
<scope>${spring-grpc-dependencies-scope}</scope>
<groupId>org.springframework.grpc</groupId>
<artifactId>spring-grpc-spring-boot-starter</artifactId>
<version>${spring-grpc.version}</version>
<groupId>org.springframework.grpc</groupId>
<artifactId>spring-grpc-test</artifactId>
<version>${spring-grpc.version}</version>
Sorry for the messy log as this was an attempt to switch to structured logging:
"message": "Application run failed",
"error": {
"type": "java.lang.IllegalStateException",
"message": "Error processing condition on org.springframework.boot.grpc.server.autoconfigure.GrpcServer
FactoryConfigurations$NettyServerFactoryConfiguration",
Caused by: java.lang.ClassNotFoundException: io.grpc.servlet.jakarta.ServletServerBuilder
Metadata
Metadata
Assignees
Labels
No labels