0

I developed dynamic web page in eclipse.I also configured apache tomcat in eclipse juno.In eclipse it run on server fine.I don't know how to deploy the dynamic web page in other system tomcat server.My folder structure.

                 Tomcat 7.0
                     -webapps
                         -Myproject-Folder
                             -WEB-INF
                                 -classes
                                 -lib
                                 -web.xml   
Ram
  • 2,532
  • 4
  • 22
  • 25

3 Answers3

0

create a folder in your tomcat webapps folder Then create another folder WEB-INF and index.html Then in WEB-INF folder create three other folders classes,src,lib and web.xml

In classes folder keep all the .class files. If you want to keep the source files then these should be placed in the src folder. In the lib folder keep all the necessary jar files like activation.jar,mail.jar(if you are using java mail Api). Now map correctly in web.xml Now if your web.xml is correctly mapped then open a browser and type

http://localhost:8080/your_folder_name

8080 is the default port number.

SpringLearner
  • 13,738
  • 20
  • 78
  • 116
0

just copy the "Myproject-Folder" to the "webapps" folder of any tomcat

sotix
  • 822
  • 1
  • 8
  • 23
0

Depending on how you want to deploy it, you can just copy the folder under "webapps" of your current Tomcat or package it into .war and put that under webapps folder of the target Tomcat.

eis
  • 51,991
  • 13
  • 150
  • 199