I have created a dynamic web project in Eclipse. The project creates a database within it. Testing it on a local machine having Tomcat server works fine. I want to deploy this project with the database to another system running Tomcat. How to accomplish this task? Internet has been of little help to me.
For example a web project Students created. A database with table named StudentsOfStdV created. This database has some data. For testing purposes I want to export the .war file and the database along with it to a different machine running a server. How to do it?
You need to Export War from Eclipse and deploy it on Tomcat.
Read tutorials on
Web application Deployment Guide: http://tomcat.apache.org/tomcat-4.0-doc/appdev/deployment.html
How to setup Tomcat: http://www.coreservlets.com/Apache-Tomcat-Tutorial/
Export War from eclipse: http://www.java-tips.org/other-api-tips/eclipse/how-to-make-war-file-in-eclipse.html
EDIT:
Database does not go along with
.war. The database server has to be installed first and then You can create it on first run or manually.