eclipse-emfcloud / emfjson-jackson

emfjson-jackson
Other
17 stars 15 forks source link

Conflic when deploying war file #23

Closed MichaelC753 closed 2 years ago

MichaelC753 commented 2 years ago

Hello, I think I have a conflict when I'm trying to deploy a web application with a dependancy with emf-jackson 2.0.0 I tried several servers, I'm currently trying with wildfly-26.0.0.Final Everything is working as excepted if I just package everything as a jar with springboot.

The error : Forwarding to error page from request [/rest/v1/files/c04fd2e2-07d1-447d-a2aa-d2778ae10473] due to exception [Cannot create resource for uri default]: java.lang.RuntimeException: Cannot create resource for uri default at deployment.app-ws-2022-18-01.war//org.eclipse.emfcloud.jackson.databind.deser.ResourceDeserializer.getResource(ResourceDeserializer.java:95) at deployment.app-ws-2022-18-01.war//org.eclipse.emfcloud.jackson.databind.deser.ResourceDeserializer.deserialize(ResourceDeserializer.java:50) at deployment.app-ws-2022-18-01.war//org.eclipse.emfcloud.jackson.databind.deser.ResourceDeserializer.deserialize(ResourceDeserializer.java:43) at deployment.app-ws-2022-18-01.war//org.eclipse.emfcloud.jackson.databind.deser.ResourceDeserializer.deserialize(ResourceDeserializer.java:30) at deployment.app-ws-2022-18-01.war//com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:322) at deployment.app-ws-2022-18-01.war//com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:2033) at deployment.app-ws-2022-18-01.war//com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1491)

I tried to add a jboss-deployment-structure.xml to resolve the conflict with but it does nothing to solve the issue.

`

`

Any help for using the library in a war file would be really appreciate.

Regards,

eneufeld commented 2 years ago

Sorry for the late reply. I hope you could resolve your issue. But I'm rather clueless how to fix this ;-) .