aspose file tools*
The moose likes Web Services and the fly likes Deploying a web based application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Deploying a web based application" Watch "Deploying a web based application" New topic
Author

Deploying a web based application

Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
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.
Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

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..

Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
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

Joined: Apr 07, 2009
Posts: 489

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

Joined: Jun 22, 2009
Posts: 150
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

Joined: Apr 07, 2009
Posts: 489

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

Joined: Jun 22, 2009
Posts: 150
Thanks a lot that really helped me a lot.


Leonardo Carreira
Ranch Hand

Joined: Apr 07, 2009
Posts: 489

ok.. You're welcome..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying a web based application