我在eclipse中完成了jsp servlet项目。
我想在线上传该项目。
项目在jsp,servlet中开发 服务器:Tomcat 7.0
部署该项目的步骤是什么? 我们的服务器有什么需求。 是否可以在没有war文件的情况下上传我们的项目。
答案 0 :(得分:2)
在eclipse中创建一个动态Web项目,在tomcat webapp文件夹中编译和部署war
$ CATALINA_HOME / web应用
如果不想让战争使用tomcat的默认ROOT。
$ CATALINA_HOME / web应用/ ROOT
答案 1 :(得分:1)
“部署该项目的步骤是什么?”
- Get an online Server depends on your need(Rental/Free). I would suggest you to prefer get server space from cloud like Amazon,Azure and etc. - Once you got the server approval you can access your online server. Then you have to upload you Apache Tomcat server to that server and deploy your .War file. - Launch the Apache Tomcat server. Now your service is up and running. Then if you wish you can map your server name in global domain server for your online application.
“是否可以在没有.war文件的情况下上传我们的项目?”
.war is standard format for packing application for Java Web Applications. I would suggest you to use consider using either .war or .ear based on type application you have created.