Java RestFull WebService: JAX-RS implementation with Jersey 2.3.1 libraries

前端 未结 5 1217
一生所求
一生所求 2020-11-27 18:18

I am trying to run a simple \"Hallo World\" application Jersey 2.3.1 REST service on JBoss jboss-eap-6.1 AS. In web.xml i have disabled restEasy library. During deployment i

5条回答
  •  一向
    一向 (楼主)
    2020-11-27 18:56

    Just got this working on JBoss EAP 6.1.1 - Jersey 2.3.1.

    The usual things don't seem to work/are not enough on their own:

    • disabling the jaxrs-subsystem in standalone.xml/domain.xml
    • or, excluding the jax-rs modules in jboss-deployment-structure.xml

    Additionaly you need to disable the loading of the jax-rs 1.1 API completely by modifying module.xml in jboss-eap-6.1/modules/system/layers/base/javax/ws/rs/api/main/module.xml like this:

    
    
        
        
        
    
    
    
        
    
    
    

    Please note that this will disable the jax-rs implementation of JBoss (RestEasy) for all other applications as well (as does disabling the jaxrs subsystem in standalone/domain.xml).

提交回复
热议问题