我想将部署到WAS6.1的Web模块上的类加载器委派顺序从其默认的parent first更改为parent last。原因是我想使用JSF 1.2等,而WAS6.1通常不支持它。
在本地部署的实例的集成解决方案控制台中,在Enterprise Applications > MyAppEAR > Manage Modules > MyApp.war
下,类加载器顺序下拉列表显示为灰色。
我不能为我的生活在网上找到这些问题的答案。
答案 0 :(得分:1)
我有同样的事情。我需要将类加载器设置为PARENT_LAST,但设置显示为灰色。我通过在您的耳朵项目的META-INF / ibmconfig / cells / defaultCell / applications / defaultApp / deployments / defaultApp中手动放置deployment.xml文件(下面的内容)来“解决”它。
<?xml version="1.0" encoding="UTF-8"?>
<appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi" xmi:id="Deployment_1212499072929">
<deployedObject xmi:type="appdeployment:ApplicationDeployment" xmi:id="ApplicationDeployment_1212499072929" startingWeight="10">
<modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_1212499072929" startingWeight="10000" uri="yourwarproject.war" classloaderMode="PARENT_LAST"/>
<classloader xmi:id="Classloader_1212499072929" mode="PARENT_LAST"/>
</deployedObject>
</appdeployment:Deployment>
希望这有帮助。
答案 1 :(得分:1)
我遇到了同样的问题! 我需要改变:
这是我的部署xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<appdeployment:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:appdeployment="http://www.ibm.com/websphere/appserver/schemas/5.0/appdeployment.xmi" xmi:id="Deployment_1310499119656">
<deployedObject xmi:type="appdeployment:ApplicationDeployment" xmi:id="ApplicationDeployment_1310499119656" startingWeight="10" warClassLoaderPolicy="SINGLE" reloadEnabled="true">
<modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_1310499119656" startingWeight="10000" uri="tcm_portal_web_six.war" classloaderMode="PARENT_LAST"/>
<modules xmi:type="appdeployment:WebModuleDeployment" xmi:id="WebModuleDeployment_1310499119657" startingWeight="10000" uri="tcm_portal_lib.war" classloaderMode="PARENT_LAST"/>
<classloader xmi:id="Classloader_1310499119656" mode="PARENT_LAST"/>
</deployedObject>
</appdeployment:Deployment>
BR 德克