Hi all,
I'm trying to deploy my war file using ANT build, I write the following script for the same.
[code]
<target name="deploy" depends="war">
<taskdef name="sun-appserv-deploy"
classname="org.apache.tools.ant.taskdefs.optional.sun.appserv.DeployTask">
<classpath path="${glassfish-ant-lib}"/>
</taskdef>
<sun-appserv-deploy
file="JSF.war"
name="JSF"
force="true"
precompilejsp="false"
verify="false"
upload="true"
user="admin"
passwordfile="password.txt"
host="localhost"
port="4848"
asinstalldir="D:\Sun\AppServer" />
</target>
[/code]
and "password.txt" file contains a password.
But, every time I build the script, I got below error:
[code]
deploy:
[sun-appserv-deploy] Executing: deploy --user admin --passwordfile "password.txt"
--host localhost --port 4848 --force=true --enabled=true --name JSF --verify=false
--precompilejsp=false --upload=true "D:\workspace\JSF\JSF.war"
[sun-appserv-deploy] Please enter the admin password>
BUILD FAILED
D:\workspace\JSF\build.xml:48: An exception occurred while running the command.
The exception message is: CLI171 Command deploy failed : Deployment of application failed - Invalid user or password .
Total time: 3 seconds
[/code]
What I'm doing wrong here ?
Any pointers/hint will be greatly appreciated.
[Message sent by forum member 'sagarr']
http://forums.java.net/jive/thread.jspa?messageID=399174