请在服务器编辑器中将部署模式更改为分解存档 [英] Please change the deployment mode to exploded archive in Server Editor

查看:84
本文介绍了请在服务器编辑器中将部署模式更改为分解存档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm trying to deploy an EAR in weblogic10.3.6 application server. My ear module contains a web application module and and a jar module. When I'm deploying ear to weblogic server this is showing error -

'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服务器的部署模式?

How can I set the deployment mode of Weblogic server ?

推荐答案

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

If you use Eclipse IDE, please right click to web project:

属性->部署程序集

Properties -> Deployment Assembly

并检查您的部署程序集列表.

and check your deployment assembly list.

例如,我的部署程序集中有以下列表:

For example I have this list in my 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/classs. 这里是一种解释:

I deledet web.xml row because the WebLogic supported WEB-INF/classes. Here is an explanation:

如果要将外部文件夹映射到Deployment中的Web资源 汇编,不支持所有映射,仅支持资源文件夹 拆分源中支持映射到EAR或Web内容根. (在 您的情况下,应支持映射到"/WEB-INF/classes/",这 是我们将在以后的版本中修复的错误)

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)

这篇关于请在服务器编辑器中将部署模式更改为分解存档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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