[英]Error trying to install application on websphere by Ant Script
我正在尝试通过Ant Script在本地Websphere上安装Ear文件,但是却遇到了这个烦人的错误,安装失败。
这是我的剧本。
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication" />
<target name="installApplication">
<wsInstallApp ear="${ear.dir}" options="-appname ${name} -CtxRootForWebMod ${install.contextRootName} -BindJndiForEJBNonMessageBinding ${install.resourceJNDI}" failonerror="true" />
</target>
当我从另一个ant脚本文件以及其他任务(例如更新应用程序或uninstallApplication)调用目标时,我将发送3个参数。 我需要3个参数来设置已安装应用程序的3个属性,所以这似乎是问题所在。
这是报告的错误。
Buildfile: WasDeployApp.xml
installApplication:
callTask:
installApplication:
[wsInstallApp] Installing Application [C:\Workspace\Deploy\..\Resources\Publish\Application.ear]...
[wsadmin] WASX7209I: Connected to process "server1" on node CDELO020-2Node01 using SOAP connector; The type of process is: UnManagedProcess
[wsadmin] WASX7017E: Exception received while running file "C:\Users\delo020\AppData\Local\Temp\wsant711553899414193403jacl"; exception information: java.lang.ClassCastException: java.lang.ClassCastException: java.lang.String incompatible with java.util.List
BUILD FAILED
C:\Workspace\Deploy\WasDeployApp.xml:22: The following error occurred while executing this line:
C:\Workspace\Deploy\WasDeployApp.xml:12: The following error occurred while executing this line:
C:\Workspace\Deploy\WasDeploy.xml:48: Java returned: 105
Total time: 9 seconds
这是错误日志中引用的TEMP ffile的内容。
$AdminApp install C:\Workspace\Deploy\..\Resources\Publish\Application.ear { -appname ApplicationExample -CtxRootForWebMod CtxRootExample -BindJndiForEJBNonMessageBinding facade_App }
$AdminConfig save
我已经为此苦苦挣扎了一段时间,但是正如您所知,日志并不是很明确。
有人能帮我吗?
提前致谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.