What versions of Jackson are allowed in JBoss 6.4.20 patch?

前端 未结 2 1544
挽巷
挽巷 2021-02-20 05:11

I am trying to update my version of Jackson being used after the 6.4.20 JBoss patch. I\'m using org.codehause.jackson, and JBoss 6.4.x does not provide implicit dep

2条回答
  •  甜味超标
    2021-02-20 05:30

    I recently upgraded from JBoss EAP 6.3.0 to 6.4.20 and had the same exception.

    Following the stackstrace of the exception I discovered that it becomes necessary to set the system property jackson.deserialization.whitelist.packages with the full class name of the classes you want to deserialize.

    If you want you can put only the suffix of the package. For multiple values, separate by comma. You can see this in the jackson-mapper-asl-1.9.9.redhat-6.jar class org.codehaus.jackson.map.deser.BeanDeserializerFactory of line 38 to 45.

    For JBoss environments you can define the system property in your standalone*.xml or domain.xml, as follows:

    
        
    
    

提交回复
热议问题