1

I'm working on my first Java EE project with NetBeans IDE. My application server is the integrated GlassFish.

At this moment my project run locally on my Mac with MySQL database. How can I deploy it on my web server?

Buhake Sindi
  • 87,898
  • 29
  • 167
  • 228

3 Answers3

0

You need to use the remote application server functionalities of deploy.

If it's also Glassfish you can use the Administration Console to do it - e.g. example.com:4848 (defaut port for Glassfish admin portal).

Also you may use Cargo Maven Plugin in order to automate the deploy.

lpinto.eu
  • 2,077
  • 4
  • 21
  • 45
0

You need to just create the war file and copy it to your web server. When you start your web-server it will automatically deploy the war file.

Deepak Singhal
  • 10,568
  • 11
  • 59
  • 98
  • I have uploaded the war file and nothing happened ;( – Andrija.Krueger Dec 28 '12 at 15:54
  • Just throwing it out there: most servers can turn of auto deployment so this might not work depending on the setup. – nablex Jan 02 '13 at 08:42
  • which app server are you using ? If you are using tomcat; just copy the war file into webapps folder. If you have not made any configuration changes at tomcat level; it will auto deploy. – Deepak Singhal Jan 02 '13 at 08:44
0

You have different possibilities:

  • Netbeans can deploy your application on the integrated Glassfish server. This should happen automatically if you Run you project and the Glassfish server is selected for this project. You can change the selected server for every project under Project Properties -> Run

  • You can deploy .war files via the Glassfish admin console if the Glassfish server is already started. Navigate to http://localhost:4848, go to Applications and click on Deploy

  • You can manually deploy you applications. You have to copy either the .war file or a folder containing the contents of the .war file to the folder /GLASSFISH_HOME/glassfish/domains/domain1/autodeploy

unwichtich
  • 13,712
  • 4
  • 53
  • 66