Tomcat报错:The origin server did not find a current representation for the target resource

关于Tomcat报错:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.的问题。

Tomcat报错:The origin server did not find a current representation for the target resource_第1张图片

这个错就是Tomcat没有找到你的项目,在新建服务的时候需要修改Tomcat的安装路径和部署路径,默认如下;

Tomcat报错:The origin server did not find a current representation for the target resource_第2张图片

我们要修改成自己本地的安装路径和Tomcat默认的执行路径,可以在Tomcat的sever.xml文件中查看(sever.xml路径:Tomcat安装路径/conf/sevet.xml),打开sever.xml文件,看到appBase="webapps";

Tomcat报错:The origin server did not find a current representation for the target resource_第3张图片Tomcat报错:The origin server did not find a current representation for the target resource_第4张图片所以服务要修改为本地的安装路径和Deploy path或者修改sever.xml的appBase,反正sever.xml的Deploy path和appBase要一致。

Tomcat报错:The origin server did not find a current representation for the target resource_第5张图片

修改完成后就可以正常启动了。

你可能感兴趣的:(Tomcat报错:The origin server did not find a current representation for the target resource)