*
The moose likes JSP and the fly likes Webapplication (JSP's, Servlets, PostgreSQL DB) availble offline (locally). Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Webapplication (JSP Watch "Webapplication (JSP New topic
Author

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

D Acc
Greenhorn

Joined: Mar 18, 2011
Posts: 1
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.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

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).
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42595
    
  65
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 - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Webapplication (JSP's, Servlets, PostgreSQL DB) availble offline (locally).