• 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

Netbeans [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 have Sun App server 8.2 added into my netbeans. I am successfully able to start the server in debug mode by simple right clicking and selecting the option.

However, I wish to do this task by an ant script OR command prompt. Can someone please guide me a little on how to do this.

I want to do this because I already have an ant script that compiles and deploys the JAR to the sun App Server...but If i want to debug I have to start the app server from netbeans again. If I can just modify my ant script so that, rather than starting app server by asadmin start-domain it will start the app server FROM netbeans then my life would be much much simpler.

I'd appreciate any help
 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you need to start the application server in debug mode from your ant script? You can do it by exec task.

http://ant.apache.org/faq.html#batch-shell-execute

Passing --debug to start-domain will let you start the application server in debug mode, unless this switch was not included in that release.
So following command should do the task:




You can attach to your application server debug session by using RUN/ATTACH DEBUGGER menu item.
 
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
Thanks! that works

I had another question, hoping you can help me with the same.

I have my project in netbeans as 'source with existing build script'. Is it still possible to change code on the fly and see the changes righaway, without restarting app server and deploying the EAR again?

the existing ant script i have compiles and undeploy/deploys the EAR to the app server.

I know if we create the project in netbeans and use netbeans's build script then it is possible to change code on the fly. But wondering whether its possible when we use an existing build script
reply
    Bookmark Topic Watch Topic
  • New Topic