WebSphere自由类将PARENT LAST加载为默认值 [英] WebSphere liberty class loading PARENT LAST as default

查看:815
本文介绍了WebSphere自由类将PARENT LAST加载为默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究使用WebSphere的Liberty配置文件作为在我的本地计算机上部署完全成熟的WebSphere实例的轻量级替代方案(我知道派对的时间已晚)。

I have been investigating using WebSphere's Liberty profile as a light weight alternative to having a fully fledged WebSphere instance deployed on my local machine (late to the party, I know).

我无法弄清楚的一件事:

1 thing that I can not figure out:

如何将Parent Last类加载设置为默认值?
我想部署任何应用程序,并让它自动成为父项。

How do I set Parent Last class loading to be default? I want to deploy any application and have it automatically be parent last.

我知道我可以使用deployment.xml部署一个EAR来触发父类最后一个类,或者运行一个Jython脚本。但是,我宁愿让它成为默认行为。

I am aware that I can deploy an EAR with the deployment.xml to trigger parent last class, or run a Jython script. However, I would rather have it be the default behavior.

任何人的想法?

WebSphere Version:Liberty 8.5.5.8

WebSphere Version: Liberty 8.5.5.8

推荐答案

如果你'重新尝试在Liberty中设置父级最后一个类加载,因为你必须在传统的WebSphere Application Server中这样做来解决库冲突,你应该首先在Liberty上尝试应用程序而不更改它的配置,因为Liberty旨在避免这些类型的冲突。如果在此之后,您仍然倾向于更改配置,而您无法将其设置为默认配置,则可以在server.xml中执行以下操作:

If you're trying to set parent-last classloading in Liberty because you had to do so in WebSphere Application Server traditional to resolve library conflicts, you should first try the application on Liberty without changing it's configuration because Liberty was designed to avoid those types of conflict. If, after that, you're still inclined to change the configuration, while you can't set it as the default, you can do something like this in your server.xml:

<enterpriseApplication location="myApp.ear" name="MyApp">
    <classloader delegation="parentLast"/>
</enterpriseApplication>

这篇关于WebSphere自由类将PARENT LAST加载为默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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