Questions tagged [jersey-3.0]

Jersey RESTful Web Services 3.x framework is open source, production quality, framework for developing RESTful Web Services in Java that provides support for Jakarta RESTful Web Services 3.0.

Developing RESTful Web services that seamlessly support exposing your data in a variety of representation media types and abstract away the low-level details of the client-server communication is not an easy task without a good toolkit. In order to simplify development of RESTful Web services and their clients in Java, a standard and portable JAX-RS API has been designed.

Jersey framework is more than the JAX-RS Reference Implementation. Jersey provides it’s own API that extend the JAX-RS toolkit with additional features and utilities to further simplify RESTful service and client development. Jersey also exposes numerous extension SPIs so that developers may extend Jersey to best suit their needs.

The major change from Jersey 3.0 and the 2.x line is the use of the new Jakarta namespace (jakarta.ws.rs), which is a breaking change, along with the use of Jakarta EE dependencies such as Servlets (5.0), which also has a change in namespace (jakarta.servlet)

Related:

17 questions
3
votes
1 answer

javax.servlet.ServletException: Class [org.glassfish.jersey.servlet.ServletContainer] is not a Servlet

You may feel this is a duplicated question, but none of the questions with the same title solve my problems. I am using Jersey 3.0 creating a RESTful web service in Eclipse, I use Tomcat 9.0 as my server.
2
votes
1 answer

Jersey Bean Validation: Unable to initialize 'jakarta.el.ExpressionFactory'

I have implemented a REST service using Jersey and wanted to use Bean Validation. When I add the bean validation maven dependency for Jersey (jersey-bean-validation), the webapp breaks on startup due to an error: HV000183: Unable to initialize…
Eike Cochu
  • 3,249
  • 7
  • 34
  • 57
2
votes
1 answer

Jersey 3 - Configuring binding with bindFactory

Using Jersey 3.0.1, I am struggling to get binding working. I have this binding module with the factories below: public static class MyBinder extends AbstractBinder { @Override protected void configure() { LOG.info("Attempting to…
Stephen ODonnell
  • 4,441
  • 17
  • 19
2
votes
1 answer

JNDI Lookup with Resource annotation always NULL

I've got a WebApp with Tomcat 10, Java11 using Jersey3. I defined a ConnectionPool in my context.xml for handling the connection to my OracleDB and now I'm trying to access the DataSource within my controller through a @Resource annotation. This…
Remo
  • 1,112
  • 2
  • 12
  • 25
1
vote
1 answer

Viewing version source for multi release JAR (MRJAR)

I'm trying to attach the Java 9 or Java 11 source for some projects released as MRJARs, namely jersey-container-jetty-http-3.0.2 and junit-platform-commons-1.4.0. Looking at the jersey-container-jetty-http-3.0.2-sources.jar file in my…
Loren_
  • 2,597
  • 3
  • 20
  • 29
0
votes
0 answers

what is the class com.sun.jersey.config.feature.DisableXmlSecurity in latest jersey versions

I am working on migration of a project which uses below jersey param com.sun.jersey.config.feature.DisableXmlSecurity I am not able to find a replacement for the same in latest jersey library which is compatible with jakarta namespace.
deadpool
  • 314
  • 1
  • 4
  • 10
0
votes
0 answers

jetty 9.4.39.v2021032 giving error when upgrading application from java 11 to java 17

I am getting below error when trying to upgrade app from java 11 to java 17. at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110) at…
0
votes
1 answer

Exception seen in Jersey Init, Spring Boot 3.0.1, Spring Boot Jersey Starter, GraalVM 22.3, Java 17 & 19

Attempting to get sample application on Spring Boot 3.0.1, Spring Boot Jersey Starter, GraalVM 22.3, Java 17 & 19. Maven Native Image creation is successful, executable starts, but on the first request to sample end point, there seems to be an…
0
votes
0 answers

Upgrade jersey from 2.3 to 3.04

I am upgrading jersey-bom to 3.0.4 from 2.35. I didn't change all namespaces to jakarta. from javax. as its only breaking after 3.1.x as per…
0
votes
1 answer

Migrating to Jersey 3, javax libaries are still requested

I am trying to migrate an old server to Jersey 3.0.8. Among other issues, I found this one when accessing the landing page of the server: Type Exception Report Message Error allocating a servlet instance Description The server encountered an…
buzoherbert
  • 1,537
  • 1
  • 12
  • 34
0
votes
0 answers

How to generate Swagger 2.0 spec from Java Jersey 3 server?

Given a Java REST Service implemented with Jersey 3.x, is it possible to generate Swagger 2.0 specs (json or yaml, preferably json though) at build time (that is, no running instance of the server required)? When still on Jersey 2.x, our method was…
domin
  • 1,192
  • 1
  • 7
  • 28
0
votes
1 answer

How to configure Jersey 3x to work with embedded Jetty 9x

I am trying to upgrade to Jersey 3x from 2.35 to work with Jetty 9x embedded so that I may use the Asynchronous Server API that is supported in 3x. The current maven pom.xml is: 2.35
kimathie
  • 384
  • 4
  • 18
0
votes
1 answer

How to define log4j2 config correctly in web,xml

Trying to use log4j2 within my Jersey3 application (running in a tomcat). I want to load the config through my web.xml as the following: web.xml
Remo
  • 1,112
  • 2
  • 12
  • 25
0
votes
1 answer

Jersey 3 Multipart-Feature no injection source found

Trying to use the Multipart-Feature for my Jersey 3 Web app. Unfortunately, it seems that there are no injection sources found... [[FATAL] No injection source found for a parameter of type public jakarta.ws.rs.core.Response…
Remo
  • 1,112
  • 2
  • 12
  • 25
0
votes
1 answer

Problems with Testing Jersey 3 Web Application using Jersey Test Framework

I've got a Jersey 3 Web application (running on Tomcat10, JDK15 with JUnit5) in which I would like to Unit test my Endpoints. Although, I have troubles setting these up. What I understand is, that I need to use a GrizzlyWebTestContainer in order to…
Remo
  • 1,112
  • 2
  • 12
  • 25
1
2