1、关闭tomcat服务器
2、新建一个j2ee工程,加入HelloServlet.java。添加web.xml。把本地j2ee工程打包。
3、把war包放到ubuntu的webapp内。
4、启动tomcat。访问j2ee文件。