WebSphere 6.1 更改类加载器顺序
我想将部署到 WAS6.1 的 Web 模块上的类加载器委托顺序从默认的父级第一个更改为父级最后一个。原因是我想使用 JSF 1.2 等,而 WAS6.1 通常不支持它。
在本地部署实例的集成解决方案控制台中,在企业应用程序>下:我的AppEAR管理模块> MyApp.war
类加载器顺序下拉列表显示为灰色。
- 为什么它是灰色的?
- 我怎样才能将其取消灰色?
- 在部署描述符中放入指令会更好吗?
- 如果 (3) 的答案不是“否”,请您准确指定执行此操作的代码。
我一生都无法在网络上找到这些问题的答案。
I want to change the class loader delegation order on a web module deployed to WAS6.1 from it's default of parent first to parent last. The reason is I would like to use JSF 1.2 etc and WAS6.1 doesn't normally support it.
In the integrated solutions console for the locally deployed instance, under Enterprise Applications > MyAppEAR > Manage Modules > MyApp.war
the Class loader order drop down is greyed out.
- Why is it greyed out?
- How can I ungrey it out?
- Would it be better to put a directive in the deployment descriptor?
- If the answer to (3) is anything other than No, please can you specify exactly the code to do this.
I can't for the life of me find the answers to these questions on the web.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也有同样的事情。我需要将类加载器设置为 PARENT_LAST 但该设置呈灰色。我通过手动将deployment.xml文件(下面的内容)放入ear项目的META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp中来“解决”它。
希望这有帮助。
I had the same thing. I needed to set the classloader to PARENT_LAST but the setting was greyed out. I 'solved' it by manually putting a deployment.xml file (contents below) in META-INF/ibmconfig/cells/defaultCell/applications/defaultApp/deployments/defaultApp of your ear project.
Hope this helps.
我也有同样的问题!
我需要更改:
这里是我的部署 xml 文件:
BR
短剑
I had the same problem!
I needed to change:
here my deployment xml file:
BR
Dirk