• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Ant Script hanging trying to start App server

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I am using Sun App Server 8.2

I start the app server from command promp using this command:
$: asadmin start-domain

so I made the following ant script




Even though it starts the server but it hangs after performing this step and next task never gets executed.

I've tried using spawn="true" attribute as well but that way the next task (deploying EAR to the server) gets execute even before the current step (starting the server) is executed.

This problem is stated by someone else at this url as well but no useful answers ..
http://www.jguru.com/forums/view.jsp?EID=1349867

Screen looks like this
[code]

[ November 19, 2007: Message edited by: bhaarat sharma ]

[ November 19, 2007: Message edited by: bhaarat sharma ]
[ November 19, 2007: Message edited by: bhaarat sharma ]
 
Bhaarat Sharma
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*update*

I noticed that while the ant script is hung after starting the server, If I open a new cmd prompt and manually type asadmin> stop-domain then script in terminal one is released (not hung anymore).

So I think I just need something in my ant script that would forcefully make it go to the next step...apparently it is waiting for something and thats why getting hung.

ant script again

 
Bhaarat Sharma
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok I've found a way around it but I dont think its the best solution.

I am doing spawn="true" when starting the server and after that putting the script to sleep for 30 secs and then performing the deploy.

If someone has another solution that might be better, please post it.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic