如何部署java Web应用程序。部署步骤

时间:2014-08-21 04:07:05

标签: java jsp tomcat servlets

我在eclipse中完成了jsp servlet项目。

我想在线上传该项目。

项目在jsp,servlet中开发 服务器:Tomcat 7.0

部署该项目的步骤是什么? 我们的服务器有什么需求。 是否可以在没有war文件的情况下上传我们的项目。

2 个答案:

答案 0 :(得分:2)

在eclipse中创建一个动态Web项目,在tomcat webapp文件夹中编译和部署war

  

$ CATALINA_HOME / web应用

如果不想让战争使用tomcat的默认ROOT。

  

$ CATALINA_HOME / web应用/ ROOT

Check this

答案 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.