编程语言
首页 > 编程语言> > java – 请在“服务器编辑器”中将部署模式更改为展开的存档

java – 请在“服务器编辑器”中将部署模式更改为展开的存档

作者:互联网

我正在尝试在weblogic10.3.6应用服务器中部署EAR.我的耳模块包含一个Web应用程序模块和一个jar模块.当我将耳朵部署到weblogic服务器时,这显示错误 –

'D:/Workspace/test-web/src/main/webapp/WEB-INF/web.xml'='/WEB-INF/web.xml'

WebLogic split source deployment only supports resource folder mapping 
to EAR or web content root. Please change the deployment mode
to exploded archive in Server Editor.

如何设置Weblogic服务器的部署模式?

解决方法:

如果您使用Eclipse IDE,请右键单击Web项目:

Properties -> Deployment Assembly

并检查部署程序集列表.

例如,我在部署程序集中有这个列表:

src/main/java      | WEB-INF/classes
src/main/resources | WEB-INF/classes
src/main/...       | WEB-INF/web.xml

我删除了web.xml行,因为WebLogic支持WEB-INF / classes. Here is解释:

If you are mapping external folders to web resources in Deployment
Assembly, NOT all the mappings are supported, only resource folder
mapping to EAR or web content root are supported in split source. (In
your case, mapping to ‘/WEB-INF/classes/’ should be supported, which
is a bug we will fix in future release)

标签:java,spring,maven,web,weblogic-10-x
来源: https://codeday.me/bug/20190529/1176146.html