Upgrading jax-rs shared library on weblogic

試著忘記壹切 提交于 2019-12-21 19:54:15

问题


Normally weblogic 12c doesnt support jax-rs 2.0 but by the help of jax-rs shared library which comes with weblogic itself it is possible to upgrade jax-rs version from 1.1 to 2.0. The problem is library implementation is jersey 2.5 which doesnt satisfy my needs. I found a link about upgrading jersey version on weblogic which looks a lil bit complex. Is it enough to replace jersey jars 2.5 with my jersey version 2.13? Do i need to do anything else?


回答1:


I have created a simple maven project to produce the war file with the 2.19 jersey shared library for weblogic.
I have tested it with weblogic 12.1.3
You can clone from here weblogic-jax-rs
After cloning run mvn package to produce the war and then deploy it to the server.
Of course you must specify the new implementation version in your weblogic.xml which is now 2.19

If you are not familiar with maven you can download the war file from here

As of weblogic 12.2.1 - there is jersey 2.21.1 bundled with it so no additional installations are required.

weblogic 12.2.1.1 comes with jersey 2.22.1



来源:https://stackoverflow.com/questions/27573827/upgrading-jax-rs-shared-library-on-weblogic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!