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.
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).
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?
Ping & DNS - updated with new look and Ping home screen widget