问题描述
我已将Web应用程序升级到JAX-RS 2.0.
I have upgraded my web application to JAX-RS 2.0.
该Web应用程序似乎可以在Apache Tomcat上正常运行.但是,它不会部署在Weblogic 12c(甚至10.3.6)上.
The web application seems to work fine on Apache Tomcat. However, it does not get deployed on Weblogic 12c (or even 10.3.6).
我不确定weblogic是否有适当的支持,我相信它需要一些配置和类加载器筛选来覆盖默认的JAX-RS 1.1实现?
I am not sure if there is a proper support by weblogic and I believe it requires some configuration and class loader filtering to override the default JAX-RS 1.1 implementation ?
有什么想法要实现这一点并使我的Web应用程序在WLS 12c上运行吗?
Any idea how to achieve this and make my web application run on WLS 12c ?
推荐答案
WebLogic 12c已通过Java EE 6认证,因此实现了JAX-RS 1.1. WebLogic计划在其下一版本12.1.3(以及其他一些Java EE 7 API,但不是全部)中提供对JAX-RS 2.0的支持.
WebLogic 12c is Java EE 6 certified and so, implements JAX-RS 1.1. WebLogic plans to offer support for JAX-RS 2.0 in its next version 12.1.3 (as well a few other Java EE 7 APIs, but not all).
如果要在当前版本的WebLogic(12.1.1和12.1.2)中使用JAX-RS 2.0,则必须像对待Tomcat一样部署JAX-RS,并调整weblogic.xml来隔离类路径,以便它不会与JAX-RS 1.1的实现相冲突.
If you want to use JAX-RS 2.0 in current releases of WebLogic (12.1.1 and 12.1.2) you will have to deploy JAX-RS as you do with Tomcat, and tune weblogic.xml to isolate the classpath so it won't conflict with the JAX-RS 1.1 implementation.
有关如何执行此操作的详细信息,请参阅(WebLogic 12.1.2的)文档:更新Jersey JAX-RS RI的版本
For specifics on how to do this, please see documentation (of WebLogic 12.1.2): Updating the Version of Jersey JAX-RS RI
更新,2016年1月4日
已经发布的WebLogic 12.2.1已完全通过Java EE 7认证.
WebLogic 12.2.1, already released, is fully Java EE 7 certified.
这篇关于Weblogic12c是否支持jersey 2.x?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!