Hi,
I've been trying to install application thru
ant task and obviously I need help! Please let me know what wrong with my code and how to properly do that.
Below is my sample build ant code:
<taskdef name="wsInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication"/>
<target name="install">
<wsInstallApp ear="${ear.path}"/>
<wsStartApp application="${ant.project.name}"/>
</target>
And here are the log messages:
install:
[wsInstallApp] Installing Application [C:\smith\projects\motiva\Development\Sour
ce\original\motiva.war]...
[wsadmin] WASX7209I: Connected to process "server1" on node NEWGRANGENode01 us
ing
SOAP connector; The type of process is: UnManagedProcess
[wsadmin] WASX7017E: Exception received while running file "C:\DOCUME~1\c-smit
hm\LOCALS~1\Temp\wsant55873jacl"; exception information: com.ibm.ws.scripting.Sc
riptingException: WASX7134E: "contextroot" option must be specified for war file
installation.
[wsadmin]
Java Result: 105
[wsInstallApp] Installed Application [C:\smith\projects\motiva\Development\Sourc
e\original\motiva.war]
[wsStartApp] Starting Application [motiva]...
[wsadmin] WASX7209I: Connected to process "server1" on node NEWGRANGENode01 us
ing SOAP connector; The type of process is: UnManagedProcess
[wsadmin] WASX7017E: Exception received while running file "C:\DOCUME~1\c-smit
hm\LOCALS~1\Temp\wsant55874jacl"; exception information: javax.management.MBeanE
xception
[wsadmin] com.ibm.ws.exception.ConfigurationWarning: Application motiva not in
stalled
[wsadmin] Java Result: 105
[wsStartApp] Started Application [motiva]
all:
BUILD SUCCESSFUL
Total time: 53 seconds
Thanks a million for whatever help or assistance!