0 Replies Latest reply on May 14, 2015 6:08 AM by fuzao

    Wildfly failed to deserialize a class from resteasy

    fuzao

      I'm trying to invoke a REST service with the specific application/x-java-serialized-object media type, and I'm getting an error on the server side from resteasy.

       

      java.lang.ClassNotFoundException: com.example.FOO from [Module "org.jboss.resteasy.resteasy-jaxrs:main" from local module loader @3b084709 (finder: local module finder @3224f60b (roots: D:\wildfly-8.2.0.Final\modules,D:\wildfly-8.2.0.Final\modules\system\layers\base))]

       

      I have the jar that contains the com.example.FOO class under project.ear\lib folder. I have tried to put the jar also under project.ear\module.war\WEB-IN\lib but the error remains.

       

      Why is that? If the request is received correctly by the rest controller in module.war why Wildfly is bounding the class loading to system modules?