Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java servlet-api.jar-本地主机上未加载jar_Java_Jar_Http Status Code 404 - Fatal编程技术网

Java servlet-api.jar-本地主机上未加载jar

Java servlet-api.jar-本地主机上未加载jar,java,jar,http-status-code-404,Java,Jar,Http Status Code 404,这个jar没有在我的tomcat7环境中本地加载。昨天当我休息一天时,这工作很好。没有什么改变,但当我今天早上开始的时候,我看到的就是这个。什么都没有改变——真的。我刚刚打开Eclipse开始工作和测试我的web应用程序——找不到它,返回404 什么会导致罐子无法装入?我没有在项目中的错误,并已清理它 有问题的罐子位于: C:\Users\me\Documents\Dev\Eclipse\J2EE_WDT\.metadata\.plugins\org.eclipse.wst.server.cor

这个jar没有在我的tomcat7环境中本地加载。昨天当我休息一天时,这工作很好。没有什么改变,但当我今天早上开始的时候,我看到的就是这个。什么都没有改变——真的。我刚刚打开Eclipse开始工作和测试我的web应用程序——找不到它,返回404

什么会导致罐子无法装入?我没有在项目中的错误,并已清理它

有问题的罐子位于:

C:\Users\me\Documents\Dev\Eclipse\J2EE_WDT\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\app.cloud.services\WEB-INF\lib
清洁后的控制台输出:

Apr 25, 2013 9:38:31 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/mydomain.com] has started
Apr 25, 2013 9:38:35 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: urn:com:sun:jersey:api:view is already defined
Apr 25, 2013 9:38:35 AM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  com.mydomain.webservices
Apr 25, 2013 9:38:35 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class com.mydomain.webservices.Encryption
  class com.mydomain.webservices.Codec
Apr 25, 2013 9:38:35 AM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Apr 25, 2013 9:38:35 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM'
Apr 25, 2013 9:38:36 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/mydomain.com] is completed
Apr 25, 2013 9:38:36 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/cs.core.web] has started
Apr 25, 2013 9:38:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Apr 25, 2013 9:38:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Apr 25, 2013 9:38:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Apr 25, 2013 9:38:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Apr 25, 2013 9:38:36 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Class-Path.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
Apr 25, 2013 9:38:40 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/cs.core.web] is completed
Apr 25, 2013 9:38:40 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/app.cloud.services] has started
Apr 25, 2013 9:38:41 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\me\Documents\Dev\Eclipse\J2EE_WDT\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\app.cloud.services\WEB-INF\lib\el-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class
Apr 25, 2013 9:38:41 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\me\Documents\Dev\Eclipse\J2EE_WDT\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\app.cloud.services\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Apr 25, 2013 9:38:45 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: urn:com:sun:jersey:api:view is already defined
Apr 25, 2013 9:38:45 AM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  com.app.api
Apr 25, 2013 9:38:45 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
  class com.app.api.SyncAccount
  class com.app.api.Override
  class com.app.api.SyncSchedule
  class com.app.api.SyncDevice
  class com.app.api.Register_NOTUSED
  class com.app.api.Mock
  class com.app.api.Contact
  class com.app.api.WSInit
  class com.app.api.SyncMetrics
Apr 25, 2013 9:38:45 AM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Apr 25, 2013 9:38:45 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM'
Apr 25, 2013 9:38:45 AM org.apache.catalina.core.StandardContext reload
INFO: Reloading Context with name [/app.cloud.services] is completed
编辑


我试图做的是启动我的web应用程序,目前找不到它,因为jar没有加载。它的物理位置是它应该在的地方——昨天又是这样,今天早上就不是了。

servlet-api.jar是从tomcat_home/lib目录加载的。我可以建议您清理tomcat服务器并重新启动它。要清理tomcat,您需要执行“窗口->显示视图->其他->服务器”,并且您将能够看到tomcat服务器。右键单击并点击“清洁…”。希望这能解决您的问题,因为它昨天工作正常,今天突然不工作,没有任何更改。

servlet-api.jar是从tomcat_home/lib目录加载的。我可以建议您清理tomcat服务器并重新启动它。要清理tomcat,您需要执行“窗口->显示视图->其他->服务器”,并且您将能够看到tomcat服务器。右键单击并点击“清洁…”。希望这能解决您的问题,因为它昨天工作正常,今天突然不工作,没有任何变化。

罐子在哪里?如何将其添加到类路径?@SotiriosDelimanolis是servlet-api.jar。看起来OP没有运行Tomcat,或者Tomcat安装不知何故已损坏。请告诉我们您到底想做什么,在哪里(哪个应用程序)出现错误,以及错误消息/详细信息。您在浏览器中访问web应用程序时是否收到404,或者您的Eclipse无法找到jar,或者两者都找不到?@SotiriosDelimanolis这意味着OP正在工作区文件夹中部署tomcat应用程序(是的,对于初学者来说,这是一个未知的坏习惯)。OP应该尝试在tomcat文件夹中部署应用程序,并按照Luiggi Mendoza所说的那样从WEB-INF/lib.Do中删除这个servlet-api.jar。Tomcat抛出了一个错误,因为您试图加载servlet-api.jar两次(同样是从您的WEB-INF/lib文件夹),而Tomcat已经可以加载servlet-api.jar了。jar在哪里?如何将其添加到类路径?@SotiriosDelimanolis是servlet-api.jar。看起来OP没有运行Tomcat,或者Tomcat安装不知何故已损坏。请告诉我们您到底想做什么,在哪里(哪个应用程序)出现错误,以及错误消息/详细信息。您在浏览器中访问web应用程序时是否收到404,或者您的Eclipse无法找到jar,或者两者都找不到?@SotiriosDelimanolis这意味着OP正在工作区文件夹中部署tomcat应用程序(是的,对于初学者来说,这是一个未知的坏习惯)。OP应该尝试在tomcat文件夹中部署应用程序,并按照Luiggi Mendoza所说的那样从WEB-INF/lib.Do中删除这个servlet-api.jar。Tomcat正在抛出一个错误,因为您尝试加载servlet-api.jar两次(再次从您的WEB-INF/lib文件夹),而Tomcat已经可以加载servlet-api.jar。我的透视图中已经有了servers视图。但是谢谢你关于清理tomcat工作目录的建议,我注意到工作目录中缺少了我所有的jsp文件以及样式和javascript文件的文件夹。当我手动将它们复制到工作目录时,我的所有网页都会再次工作。不知道为什么他们没有被部署(为什么被删除)。在我的透视图中已经有了服务器视图。但是谢谢你关于清理tomcat工作目录的建议,我注意到工作目录中缺少了我所有的jsp文件以及样式和javascript文件的文件夹。当我手动将它们复制到工作目录时,我的所有网页都会再次工作。但不确定为什么没有部署(为什么删除)。