• 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

Deploying a web based application

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

I use Netbean to develope my web application. Each time I run Netbean to open my project window. Is there any way by which I can deploy my web application. I use glassfish v2 server. Is is posible to do this.

Thank you in advance.
 
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you should configure target runtime of your web application pointed to Glassfish..
and then you could deploy your web app directly through Netbeans..
Right click your web app and then click, undeploy and deploy, or you could select Run..
 
Mahesh Lohi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you the reply.

Leonardo Carreira wrote:you should configure target runtime of your web application pointed to Glassfish..



I am new to java and servers. What is ment by "configure target runtime of your web application pointed to Glassfish"

Thank you in advance
 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you make new WebApplication, then you shown a dialog...
that dialog contain :
- the menu to set path where your project must be saved..
- the menu to set target runtime (if we've installed Glassfish shipped with Nebeans then the default target runtime must be Glassfish)..

if you've an existing WebApplication, you could change your target runtime also..
just click your WebApplication, and then select Properties, and select Run...
and then change it to Glassfish..

but if you only have to make a WebApplication that only contain Servlet & JSP, i think Apache Tomcat is enough for you...
Glassfish is needed if we want to deal with EJB, JTA, and etc..


 
Mahesh Lohi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your quick reply. Please let me know once I deploy the web app, then will ther be know need for me to run netbean.
that is if I just enter the url of the application in the browser with out starting the IDE will it run. How to start the server in this case.

Please help.

 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you use Glassfish, you could have many domains..

assume that you've only one domain (called domain1)..

to start server with domain1, the steps as following :
1. go to [Glassfish installed directory]\bin
2. type asadmin start-domain domain1 (and then enter)..

 
Mahesh Lohi
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot that really helped me a lot.


 
Leonardo Carreira
Ranch Hand
Posts: 494
Eclipse IDE Postgres Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok.. You're welcome..
 
The airline is called "Virgin"? Don't you want a plane to go all the way? This tiny ad will go all the way:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic