File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem deploying war with ant in glass fish 3.1.1

 
jatan bhavsar
Ranch Hand
Posts: 297
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Hope you are fine and doing well.I am trying to deploy war file using glass fish 3.1.1 server.I have made very simple script code is attached for your reference.
I am trying to deploy war file and checking it with admin GUI with http://localhost:4848/..
I cant figure out about the pass word file . I am able to deploy it with asadmin deploy command for cmd.

Please guide me how to make the ant script for this and generate the password file. I cant find the passwordfile.txt but i found it admin-key file describes domain user and password...

Specifically confused with the passwordfile attribute....
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, have you run the command from the command line and gotten it to work? You need to do that first. Once it is working, then you can revisit the exec task.

Second, each command line argument should have its own arg entry. In other words:



See that example in the docs at http://ant.apache.org/manual/Tasks/exec.html
 
jatan bhavsar
Ranch Hand
Posts: 297
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thank you for reply i am able to execute the command. But it dosent work for the ant script . I can execute other task but cant deeploy successful.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you modify the <exec> task like I suggested?

Did you try running Ant with the -debug option to see what it is doing? It should print out the exact command being executed.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic