• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Problem deploying war with ant in glass fish 3.1.1

 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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....
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We're all out of roofs. But we still have tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic