【发布时间】:2011-09-08 02:26:35
【问题描述】:
我在部署我的应用程序时使用了 WebSphere Allication Server 版本 7.0.0.13。战争是使用 Ant 1.8.2 版本来构建战争和耳朵文件的。当我通过 WebSphere 安装我的应用程序时,我遇到了以下错误:
EAR 文件可能已损坏和/或不完整。确保 应用程序位于兼容的 Java(TM) 平台企业版 当前版本的 WebSphere(R) Application 的 (Java EE) 级别 服务器。
com.ibm.websphere.management.application.client.AppDeploymentException [根异常是 org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DeploymentDescriptorLoadException: dd_in_ear_load_EXC_]
我可以知道导致问题的原因吗?还是我错过了在 Ant 脚本中配置的东西?下面是编译 WAR 和 EAR 的 ANT 脚本。
<target name="compilewar" description="generating war">
<war destfile="${dist.path}/WebApp.war" webxml="${source.path}/mywebapp/src/main/webapp/WEB-INF/web.xml">
<webinf dir="${source.path}/mywebapp/src/main/webapp/WEB-INF/" includes="**/*"/>
<lib dir="${dist.path}/" includes="*.jar"/>
<classes dir="${source.path}/mywebapp/src/main/resources/" includes="**/*"/>
<fileset dir="${source.path}/mywebapp/src/main/webapp/">
<include name="**/*.jsp"/>
</fileset>
<fileset dir="${source.path}/mywebapp/src/main/webapp/">
<include name="main/**/*"/>
</fileset>
</war>
</target>
<target name="compileear" description="Compile Ear file">
<ear destfile="${source.path}/myear/src/main/application/WebApp.ear" appxml="${svn.working.project.path}application.xml">
<metainf dir="${source.path}/mywebapp/src/main/webapp/META-INF"/>
<fileset dir="${dist.path}/" includes="*.war"/>
</ear>
</target>
谢谢@!
【问题讨论】:
标签: jakarta-ee ant websphere