简体   繁体   English

为什么导入的war文件在Eclipse中不起作用

[英]Why the imported war file does not work in Eclipse

I am working with my classmates on a assignment that makes a dynamic web project, previously he has sent me a version as war file and i have imported the file into my eclipse and it worked fine, later he has worked on it a little bit an sent me that newer version of the project and I have done the same thing imported as a new war file into my eclipse, but this time it does not work at all when I run the project an a tomcat server, it says the resource not found. 我正在与同学一起做一个动态Web项目的作业,以前他已经给我发送了一个版本作为war文件,并且我已经将该文件导入了我的eclipse中,并且运行良好,后来他又做了一些给我发送了该项目的较新版本,并且我已经将导入为新战争文件的相同操作导入到eclipse中,但是这一次当我在一个tomcat服务器上运行该项目时,它根本不起作用,它说找不到资源。

Does anyone know the reasons? 有人知道原因吗?

While importing war do this 2 steps: 在导入战争时,请执行以下两个步骤:

  1. Do not choose default Apache Target runtime or it will throw an error 不要选择默认的Apache Target运行时,否则会抛出错误
  2. Do not check Web libraries (add them manually after import if they are not added to the path) 不要检查Web库(如果未将它们添加到路径,则在导入后手动添加它们)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM