Resteasy 3.5.0.Final on App Engine standard env - NoSuchFieldError SERVER_SENT_EVENTS_TYPE
I'm posting @NicoNes's answer I received in Github
Hi @freddyboucher I don't think that this commit is responsible of the NoSuchFieldError you are dealing with. Resteasy 3.1.4.Final is an implementation of the JAX-RS-API 2.0.1 spec whereas 3.5.1.Final is an impl of the JAX-RS-API 2.1 spec. And the missing field you are talking about is coming from the javax.ws.rs.core.MediaType in JAX-RS-API 2.1. So can you please be sure that your runtime execution does not embed the wrong version o the JAX-RS-API ?
Let me know.
-Nicolas
And he was right, I had in my pom.xml:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
</dependencyManagement>
Upgrading to 2.1, fixed my issue!
I had the same problem.
I have solved it by deleting org.jboss.resteasy.jaxrs-api.3.0.12.Final from my pom file.
Hope that will solve your problem.
I got same error, solved it by excluding the jar in pom.xml
<dependencies>
<dependency>
[...]
<exclusions>
<exclusion>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>