Skip to content

[Question 1.0.0] -RC1 wants servlet but -SNAPSHOT is ok with netty - is this intentional ? #313

@space88man

Description

@space88man

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions