I'm trying to install ear file on local Websphere, by Ant Script, but i'm getting this annoying error and the instalation fails.
This is my script.
<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>
I send the 3 parameters when I call the target from another ant script file and with other tasks like update application or uninstallApplication it works. I need the 3 parameters to set the 3 properties of the installed application, so that seems to be the problem.
This is the error reported.
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
This is the content of the TEMP ffile refered in the error log.
$AdminApp install C:\Workspace\Deploy\..\Resources\Publish\Application.ear { -appname ApplicationExample -CtxRootForWebMod CtxRootExample -BindJndiForEJBNonMessageBinding facade_App }
$AdminConfig save
I've been strugling with this for some time, but as you can se the log is not very much explicit.
Can someone help me?
Thanks in Advance.