在Weblogic上升级jax-rs共享库 [英] Upgrading jax-rs shared library on weblogic

查看:312
本文介绍了在Weblogic上升级jax-rs共享库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常,weblogic 12c不支持jax-rs 2.0,但是借助weblogic自身随附的jax-rs共享库,可以将jax-rs版本从1.1升级到2.0.问题是库实现是jersey 2.5,它不能满足我的需求.我在weblogic上找到了有关升级jersey版本的链接,看起来有点复杂.用我的球衣版本2.13替换球衣罐2.5是否足够?我还需要做其他事情吗?

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?

推荐答案

我创建了一个简单的maven项目,使用用于Weblogic的2.19 jersey共享库来生成war文件. 我已经使用weblogic 12.1.3测试了它
您可以从此处 weblogic-jax-rs
进行克隆 克隆后,运行mvn package产生战争,然后将其部署到服务器.
当然,您必须在weblogic.xml中指定新的实现版本,现在为2.19

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

如果您不熟悉Maven,则可以下载战争文件

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

从weblogic 12.2.1开始-捆绑了jersey 2.21.1,因此不需要其他安装.

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随附有jersey 2.22.1

weblogic 12.2.1.1 comes with jersey 2.22.1

这篇关于在Weblogic上升级jax-rs共享库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆