How to deploy Java web application project from Eclipse to live Tomcat server? -
i have developed web application using html, java servlet , all. while developing using tomcat deploy in order test it.
now development done , want make live. have live server new dont know how deploy java web application on live server?
so please me if know answer?
my project structure
projectname ->src ->beanclass ->class1 ->class2 ->easyservlet ->servlet1 ->servlet2 ->servlet3 ->easytrans ->class1 ->class2 ->class3 ->class4 ->build ->webcontent ->meta-inf ->menifest.mf ->web-inf ->lib(contain javascript files) ->web.xml ->html1 ->html2 ->html3 ->html4 ->html5
i using mysql have it..
you have build war of project. can
- in eclipse: right click on project, click "export", , choose war file in dialog (and mention, destination, name , all)
via ant using war task
the ant option better because when have multiple developers on project , code in version control, easier project automatically (using ant) , build war. (you have version control, don't you?)
but more of operational difference (albeit important one) war created in either way same
deploy war server
you can manually copy war file $tomcat_home/webapps directory (see "creating , deploying war file" section on this article)
you can use tomcat 6 "manager" application.
update
said using mysql also. mysql should installed on server (it can on same server) , configuration should changed (username, password, server details) application connects same database (i sure not hard coding database details , credentials in application , reading them configuration, configuration has changed)
Comments
Post a Comment