问题描述
由于其中使用了一些遗留的 servlet 路径位置代码 (ServletContext.getRealPath()),我需要将 Web 应用程序部署为分解存档(而不是 .war).我只有基于 Web 的管理控制台访问我打算部署到的 WebLogic 11g 服务器.但是,我不知道该怎么做.我看到一个部署档案的选项,但没有看到目录.
I need to deploy a web applicataion as an exploded archive (instead of .war) due to some legacy servlet path location code used in it (ServletContext.getRealPath()). I only have web-based admin console access to the WebLogic 11g server that I intend to deploy to. However, I can't figure how to do it. I see an option for deploying archives, but not directories.
谢谢!
推荐答案
要解决您在 weblogic11gR1 中的问题,在配置选项卡的管理控制台中 -->web-App 容器单击选项已启用存档真实路径",以便您可以访问 servletcontext.getRealpath()
.
To solve your problem in weblogic11gR1,In admin console in configuration tab -->web-App container click the option "Archived Real path enabled" so that you can access the servletcontext.getRealpath()
.
这篇关于如何通过 WebLogic 11g 管理控制台部署分解的 Web 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!