You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2013/11/20 12:40:47 UTC
[jira] [Comment Edited] (OLINGO-70) Missing getHeaderString method
in javax.ws.rs.core.HttpHeaders
[ https://issues.apache.org/jira/browse/OLINGO-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13827576#comment-13827576 ]
Sergey Beryozkin edited comment on OLINGO-70 at 11/20/13 11:40 AM:
-------------------------------------------------------------------
Hi Eugenio, one way to resolve it is to introduce
{code:xml}
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0-m10</version>
</dependency>
{code}
which Apache CXF 2.7.x depends upon, instead of the jsr311 dependency which appears to be on your class path.
Though CXF itself will support JSR311 applications; If Olingo needs to support the legacy JSR 311 applications then it would make sense to use HttpHeaders.getRequestHeader instead
Thanks, Sergey
was (Author: sergey_beryozkin):
Hi Eugenio, one way to resolve it is to introduce
{code:xml}
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>${cxf.javax.ws.rs.version}</version>
</dependency>
{code}
which Apache CXF 2.7.x depends upon, instead of the jsr311 dependency which appears to be on your class path.
Though CXF itself will support JSR311 applications; If Olingo needs to support the legacy JSR 311 applications then it would make sense to use HttpHeaders.getRequestHeader instead
Thanks, Sergey
> Missing getHeaderString method in javax.ws.rs.core.HttpHeaders
> --------------------------------------------------------------
>
> Key: OLINGO-70
> URL: https://issues.apache.org/jira/browse/OLINGO-70
> Project: Olingo
> Issue Type: Bug
> Components: odata2-core
> Affects Versions: V2 1.1.0
> Reporter: Eugenio Lentini
> Priority: Critical
>
> Hi Stephen,
> I have noticed that in the method "extractRequestContentType" of the class RestUtil.java the call to the method "getHeaderString" cannot be resolved.
> javax.ws.rs.core.HttpHeaders does not contain that method.
> I'am using the core-incubating released on 19/11/2013.
> Thanks a lot for the attention.
> Eugenio
--
This message was sent by Atlassian JIRA
(v6.1#6144)