[
https://issues.jboss.org/browse/WFLY-2959?page=com.atlassian.jira.plugin....
]
James Perkins edited comment on WFLY-2959 at 3/5/14 4:35 PM:
-------------------------------------------------------------
I got this to work with 2.2.3. I noticed that for some reason
{{com.fasterxml.jackson.datatype:jackson-datatype-hibernate4:2.2.3}} has a dependency on
2.3.x versions of {{com.fasterxml.jackson.core:jackson-core}} and
{{com.fasterxml.jackson.core:jackson-databind}}.
I changed the version in the POM and added some exclusions and new dependencies and it
worked.
{code:xml}
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate4</artifactId>
<version>2.2.3</version>
<scope>compile</scope>
<exclusions>
<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.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
{code}
The result was
{code}
[
{
personId: "df53104a-d5fa-42ff-a15d-d69900e27dfa",
personFirstName: "Bob",
personLastName: "Bob",
personAddresses: null
}
]
{code}
was (Author: jamezp):
I got this to work with 2.2.3. I noticed that for some reason
{{com.fasterxml.jackson.datatype:jackson-datatype-hibernate4:2.2.3}} has a dependency on
2.3.x versions of {{com.fasterxml.jackson.core:jackson-core}} and
{{com.fasterxml.jackson.core:jackson-databind}}.
I changed the version in the POM and added some exclusions and new dependencies and it
worked.
{code:xml}
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate4</artifactId>
<version>2.2.3</version>
<scope>compile</scope>
<exclusions>
<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.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
</exclusions>
</dependency>
{code}
Downgrade Jackson dependency
----------------------------
Key: WFLY-2959
URL:
https://issues.jboss.org/browse/WFLY-2959
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: REST
Affects Versions: 8.0.0.Final
Reporter: James Perkins
Assignee: James Perkins
Fix For: 8.0.1.Final
Attachments: org.jboss.test.test-jackson.tar.gz,
org.jboss.test.test-jackson.tar.gz
Jackson was upgraded to 2.3.0 which contains a
[
bug|https://github.com/FasterXML/jackson-jaxrs-providers/commit/bafb6fb64...]
that breaks RESTEasy. RESTEasy currently uses 2.2.1. Downgrading to at least 2.2.3, which
is what CR1 is at, seems to resolve this issue.
We should likely keep the version aligned with RESTEasy, but since CR1 was using 2.2.3
with no issues, I think reverting back to that should be fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira