benjaminaaron opened a new issue, #1794:
URL: https://github.com/apache/jena/issues/1794

   ### Version
   
   4.7.0
   
   ### What happened?
   
   In Spring Boot `2.7.9` it works. But for all versions `3.0.0`-`3.0.4` it 
fails with this error message:
   
   ```
   Exception in thread "main" java.lang.NoClassDefFoundError: 
javax/servlet/ServletContext
        at 
org.apache.jena.fuseki.main.FusekiServer.create(FusekiServer.java:137)
        at org.example.Application.main(Application.java:17)
   ```
   `Application.java:17` is the line `FusekiServer fusekiServer = 
FusekiServer.create()`, see below.
   
   This is the code:
   
   ```java
   @SpringBootApplication
   public class Application {
        public static void main(String[] args) {
                SpringApplication.run(Application.class, args);
                Dataset ds = DatasetFactory.createTxnMem();
                FusekiServer fusekiServer = FusekiServer.create()
                                .add("/", ds)
                                .build();
                fusekiServer.start();
        }
   }
   ```
   
   And this is the `build.gradle`:
   
   ```gradle
   plugins {
        id "java"
        id "org.springframework.boot" version "3.0.0"
        id "io.spring.dependency-management" version "1.1.0"
   }
   sourceCompatibility = "17"
   repositories {
        mavenCentral()
   }
   dependencies {
        implementation "org.springframework.boot:spring-boot-starter-web"
        implementation "org.apache.jena:jena-fuseki-main:4.7.0"
   }
   ```
   
   
   ### Relevant output and stacktrace
   
   _No response_
   
   ### Are you interested in making a pull request?
   
   Maybe


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to