0

I've developed a RESTful web service in netbeans and it made a .war file for me. now where should i put it on my host, so that the others can use this webserice?

Soheil
  • 1,676
  • 7
  • 34
  • 65

1 Answers1

1

You can't use a download host for hosting a Web application. You should use a service that lets you execute code on the server. Google App Engine is one of the easiest ones to get started with.

yole
  • 92,896
  • 20
  • 260
  • 197
  • but before buying this host, i asked them and they told me i can use webservices, why do u say i cant use? – Soheil Mar 22 '15 at 12:25
  • 1
    You said yourself that you're using a "download host". I understood this as "a host that only lets you host files". If you say exactly which hosting service you're using, I might be able to say more specifically whether you can host a Java Web service there. Alternatively, why don't you contact your host and ask them for instructions? – yole Mar 22 '15 at 12:27
  • suppose I want to use glassfish as `Servlet Container`. as I'm really a beginner in these fields, I've really mixed up! should my Servlet Container get installed on the server or on my pc?!!!, then how to deploy my web app(or webservice) via that? thanx for your help – Soheil Mar 22 '15 at 15:44
  • Glassfish needs to be installed on the server. You can find documentation on deploying to Glassfish [here](http://docs.oracle.com/cd/E19798-01/821-1757/6nmni99aj/index.html). Also, all modern Java IDEs have Glassfish integration, so you can also deploy to Glassfish from your IDE. – yole Mar 22 '15 at 15:45
  • thanx. I read that documentation but still have problems. I use Netbeans and it has GlassFish integration. I made my web app and then run GlassFish (`http://localhost:8080`). now i want to deply it to my host, but it doesnt ask me my domain address. I've mixed up!!! please help me more. thanx – Soheil Mar 22 '15 at 15:58
  • Do you actually know that your host has Glassfish installed and that you have permissions to deploy applications there? – yole Mar 22 '15 at 16:01
  • I will ask them tomorrow. 1. suppose it is not installed, is it possible for me to install? 2. now suppose it is installed. then what should i do? – Soheil Mar 22 '15 at 16:02
  • If you have SSH access to the server machine, then yes, you can install it yourself. I don't use NetBeans, so I can't help you with instructions on deploying applications using it. – yole Mar 22 '15 at 16:05
  • what about not using an IDE, I mean via glassfish admin console (`http://localhost:8080`)? – Soheil Mar 22 '15 at 16:07
  • If you can access the admin console of the Glassfish instance installed on your server (not on localhost), then yes, you'll be able to deploy the application from there. – yole Mar 22 '15 at 16:08
  • thanx, but its getting harder and harder!!! I just want to deploy my web app to my server host!!! what is your solution to do that? how do you do that yourself? – Soheil Mar 22 '15 at 16:11
  • As I said in my answer, please consider using Google App Engine. I use it for my own personal projects. – yole Mar 22 '15 at 16:11
  • should it be installed on the server, too? could you please give me a big picture of `Google App Engine` (how should i work with that)? – Soheil Mar 22 '15 at 16:15
  • Sorry, this is getting too long. Google App Engine is installed on Google's servers. Please spend some time doing your own research. – yole Mar 22 '15 at 16:15