• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic