“错误:localhost 上的 Tomcat v9.0 没有标签提供程序”

huangapple 未分类评论46阅读模式
标题翻译

"Error: no label provider for Tomcat v9.0 at localhost"

问题

我试图将Tomcat服务器简单地附加到我的Eclipse项目上,但每次我尝试添加服务器时,我都会在Eclipse的服务器视图部分中收到一个错误。服务器信息会显示在项目资源管理器中,但您无法从服务器视图中运行/编辑服务器。

错误信息如下所示:
(图片已省略)

即使在服务器视图内部右键单击,也只会显示“Clean Tomcat work directory...”和“Browse deployment location...”,而不会创建新的服务器。

我的Tomcat安装正常,在检查localhost:8080时一切正常,所以问题肯定与Eclipse有关。

我使用的是Tomcat v9.0以及jdk 1.8.0_241。

英文翻译

I'm trying to simply attach a Tomcat server to my Eclipse project, however every time I try to add a server I get an error in the server view section of Eclipse. The server info shows up in the project explorer, but you cannot run/edit the server from the server view.

This is what the error looks like:
“错误:localhost 上的 Tomcat v9.0 没有标签提供程序”

Even right clicking inside of the server view just says, "Clean Tomcat work directory..." and "Browse deployment location..." rather than creating a new server.

My Tomcat installation works fine, checking localhost:8080, so it must be something with Eclipse.

I'm using Tomcat v9.0 as well as jdk 1.8.0_241

答案1

得分: 0

为解决这个错误,请创建一个新的工作空间,并将您的项目添加到该工作空间中。这个错误只与当前工作空间有关,所以通过在Eclipse中创建新的工作空间,您可以添加Tomcat服务器,并继续您的工作而没有问题。

英文翻译

To solve this error create new workspace and add your projects to that workspace.
This error is just related with current workspace only, so by creating new workspace in eclipse you can add tomcat server and continue your work with no issue.

huangapple
  • 本文由 发表于 2020年3月17日 01:17:21
  • 转载请务必保留本文链接:https://java.coder-hub.com/60710387.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定