Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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..
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic