[ 
https://issues.apache.org/jira/browse/HADOOP-15984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17557738#comment-17557738
 ] 

Viraj Jasani commented on HADOOP-15984:
---------------------------------------

{quote}So there is no grizzly-http-servlet version that has Jersey 2 
dependencies.
{quote}
Now that I did some more digging, I realized that this could be a big hurdle. I 
still can't get over the fact that grizzly NIO being a popular framework, has 
not even released any artifacts that are directly compatible with Jersey 2.x. 

>From 1.1.5 version 
>(https://github.com/eclipse-ee4j/grizzly/blob/2.4.4/modules/http-servlet/pom.xml#L87),
> it went on to support 3.0 version 
>(https://github.com/eclipse-ee4j/grizzly/blob/3.0.0-RELEASE/modules/http-servlet/pom.xml#L36)
> of Jersey directly.

Moreover, we use HttpServletResponseImpl from grizzly-http-servlet for instance 
and since it doesn't support jersey 2, until we really upgrade to jersey 3, we 
don't have a choice but to stay with 2.4.4 version of grizzly-http-servlet 
because that version supports jersey 1, HttpServletResponseImpl implements 
javax servlet HttpServletResponse 
([https://github.com/eclipse-ee4j/grizzly/blob/2.4.4/modules/http-servlet/src/main/java/org/glassfish/grizzly/servlet/HttpServletResponseImpl.java#L34)]
 whereas grizzly-http-servlet 3.0 HttpServletResponseImpl implements jakarta 
HttpServletResponse 
([https://github.com/eclipse-ee4j/grizzly/blob/3.0.0-RELEASE/modules/http-servlet/src/main/java/org/glassfish/grizzly/servlet/HttpServletResponseImpl.java#L38),]
 something that we cannot inherently use until we move to jersey 3. Jersey 3 is 
all about migrating to using Jakarta EE APIs only.

 

The only option I see so far is to use grizzly-http-servlet 2.4.4 (jersey 1 
compatible) but only at test scope. Let me see how it goes.

> Update jersey from 1.19 to 2.x
> ------------------------------
>
>                 Key: HADOOP-15984
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15984
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Akira Ajisaka
>            Assignee: Viraj Jasani
>            Priority: Blocker
>              Labels: pull-request-available
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> jersey-json 1.19 depends on Jackson 1.9.2. Let's upgrade.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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

Reply via email to