aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Problem deploying war with ant in glass fish 3.1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Problem deploying war with ant in glass fish 3.1.1" Watch "Problem deploying war with ant in glass fish 3.1.1" New topic
Author

Problem deploying war with ant in glass fish 3.1.1

jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 297

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

Joined: May 14, 2008
Posts: 5845
    
    7

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


JBoss In Action
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 297

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

Joined: May 14, 2008
Posts: 5845
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem deploying war with ant in glass fish 3.1.1