gpt4 book ai didi

jakarta-ee - Gradle -耳任务

转载 作者:行者123 更新时间:2023-12-03 04:06:59 24 4
gpt4 key购买 nike

我试图在耳朵任务中使用“appDirName”,该任务具有“ META-INF /application.xml”
当创建ear文件时,它将使用“ meta-inf /application.xml”进行创建。
Ear文件不可部署到Websphere 6.1。应用服务器。
请提出建议。
来自WAS 6.1的消息:

The EAR file could be corrupt and/or incomplete. Make sure that the application is at a compatible Java 2 Platform, Enterprise Edition (J2EE) Level for WebSphere Application Server.

AppDeploymentException: [null] org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: META-INF/application.xml

最佳答案

您创建什么样的版本?我相信WebSphere 6.1是J2EE 1.4,但是gradle ear-plugin假定使用版本6。Weblogic遇到了这个问题,但是它比较冗长。有关如何更改耳塞的信息,请参见http://www.gradle.org/ear_plugin.html:

ear {
deploymentDescriptor {
version = '1.4'
}
}

关于jakarta-ee - Gradle -耳任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6927395/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com