dosubot[bot] commented on issue #2553:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2553#issuecomment-2152368576

   <!-- Answer -->
   To resolve the "Handler dispatch failed; nested exception is 
java.lang.NoClassDefFoundError: jakarta/ws/rs/core/Configuration" error when 
trying to connect a graph in Hubble, you need to ensure that the required 
Jakarta EE dependencies are correctly included in your project.
   
   The `jakarta.ws.rs.core.Configuration` class is missing, which is part of 
the Jakarta RESTful Web Services (JAX-RS) API. You need to include the 
appropriate JAX-RS dependency in your project.
   
   If you are using Maven, add the following dependency to your `pom.xml`:
   
   ```xml
   <dependency>
       <groupId>jakarta.ws.rs</groupId>
       <artifactId>jakarta.ws.rs-api</artifactId>
       <version>2.1.6</version> <!-- or the appropriate version you need -->
   </dependency>
   ```
   
   Additionally, you might need to include dependencies for Jersey, which is a 
reference implementation for JAX-RS:
   
   ```xml
   <dependency>
       <groupId>org.glassfish.jersey.core</groupId>
       <artifactId>jersey-server</artifactId>
   </dependency>
   <dependency>
       <groupId>org.glassfish.jersey.containers</groupId>
       <artifactId>jersey-container-grizzly2-http</artifactId>
   </dependency>
   <dependency>
       <groupId>org.glassfish.jersey.containers</groupId>
       <artifactId>jersey-container-grizzly2-servlet</artifactId>
   </dependency>
   <dependency>
       <groupId>org.glassfish.jersey.media</groupId>
       <artifactId>jersey-media-json-jackson</artifactId>
       <exclusions>
           <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-annotations</artifactId>
           </exclusion>
           <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-core</artifactId>
           </exclusion>
           <exclusion>
               <groupId>com.fasterxml.jackson.core</groupId>
               <artifactId>jackson-databind</artifactId>
           </exclusion>
           <exclusion>
               <groupId>com.fasterxml.jackson.module</groupId>
               <artifactId>jackson-module-jaxb-annotations</artifactId>
           </exclusion>
       </exclusions>
   </dependency>
   ```
   
   If you are using Gradle, add the following to your `build.gradle`:
   
   ```groovy
   implementation 'jakarta.ws.rs:jakarta.ws.rs-api:2.1.6' // or the appropriate 
version you need
   implementation 'org.glassfish.jersey.core:jersey-server'
   implementation 
'org.glassfish.jersey.containers:jersey-container-grizzly2-http'
   implementation 
'org.glassfish.jersey.containers:jersey-container-grizzly2-servlet'
   implementation 'org.glassfish.jersey.media:jersey-media-json-jackson'
   ```
   
   Ensure that the versions you use are compatible with the rest of your 
project dependencies. After adding the dependencies, rebuild your project and 
try connecting to the graph in Hubble again 
<sup>[[1]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/ExceptionFilter.java)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-api/pom.xml)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
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