• 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

Webapplication (JSP's, Servlets, PostgreSQL DB) availble offline (locally).

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I have created a Web site/application containg JSP's & Servlets connecting to a PostgreSQL DB.
This was all deployed and worked fine. However requirements have changed and this now only needs to be available on 1 machine only.

Is there a way to package everything - or as much as possible into a single one click install / launchable file, and how would I go about doing this.

The project has been built as a web application within Netbeans.

Obviously I could install Postgres and Tomcat or Glassfish, however I would much prefer a single install.

Any help would be great, I think the above makes sense.
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java web applications are packaged as WAR files, just deploy that war file into you application server/web container.
You can even automate the deploying process if you are using Apache Ant for example.

Update
You are trying to install PostgreSQL, Tomcat/Glassfish in one shot.
I don't think installing DB/Application server in one shot brings any value. Actually it could take too much time to do (creating a way to bundle them together and then installing), more than installing each system individually (IMHO).
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could create a desktop application that embeds Tomcat and the web app. There would be nothing to install besides copying (maybe unzipping) the desktop app.

The DB would be a problem - installing and configuring something like Postgres locally will likely not end happily (at the very least, it won't be easy). Maybe you can use an embedded Java DB such as Derby?
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic