java 如何在 NetBeans 7.3 上注册 Tomcat 7.0.41 服务器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17357963/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-01 01:47:00  来源:igfitidea点击:

How do I register a Tomcat 7.0.41 server on NetBeans 7.3?

javajsptomcatweb-applicationsnetbeans

提问by Durga Rao

I have just downloaded NetBeans 7.3 for JavaEE and installed it with Tomcat 7.0.41 Everything went fine and I can run NetBeans, start and stop Tomcat from within the IDE and add and remove servers at will.

我刚刚为 JavaEE 下载了 NetBeans 7.3 并将其与 Tomcat 7.0.41 一起安装 一切顺利,我可以运行 NetBeans,从 IDE 中启动和停止 Tomcat 并随意添加和删除服务器。

However when I try and create a Java web Application project my server list is empty.

但是,当我尝试创建 Java Web 应用程序项目时,我的服务器列表为空。

The message I get at the bottom of the wizard for creating projects is "No servers are registered in the IDE. To register a server, click the "Add..." button.

我在创建项目的向导底部收到的消息是“在 IDE 中没有注册服务器。要注册服务器,请单击“添加...”按钮

I have Googled and got nothing and looked at the NetBeans docs and got nothing, help me

我在谷歌上搜索过但一无所获,查看了 NetBeans 文档却一无所获,帮帮我

I am running Netbeans 7.3, Java 1.7, Tomcat 7.0.41and Windows xp-3.

我正在运行Netbeans 7.3、Java 1.7、Tomcat 7.0.41和 Windows xp-3。

采纳答案by Durga Rao

This Problem is solved by just RestartedNetbeans Software Thanks to all

此问题仅由RestartedNetbeans 软件解决感谢所有人

回答by Ted

I know the original problem was solved, but I had a very similar issue, and in my case simply restarting Netbeans did not help, so I wanted to help anyone with my issue. It sounds stupid, but I wanted to warn people that they need to be sure to download the right tomcat zip file.

我知道原来的问题已经解决了,但我遇到了一个非常相似的问题,在我的情况下,简单地重新启动 Netbeans 没有帮助,所以我想帮助任何人解决我的问题。这听起来很愚蠢,但我想警告人们他们需要确保下载正确的 tomcat zip 文件。

Tomcat lists several zip files on their server, and I should have been using the Windows-64 zip file. Instead, I downloaded the first file, which just said "zip". I am not sure what configuration this was. It ran in windows 7, but created the same sort of mysterious pattern in Netbeans. In the Services tab, I could clearly see Apache Tomcat listed under Servers. If I started the service it worked fine. However, when I right clicked on my project and attempted to resolve missing server problem, it would not list tomcat in the list. The list is filtered to only show servers that are valid with the version of Java EE 6 or whatever you are using. In my case, apparently the original tomcat I downloaded was not valid.

Tomcat 在他们的服务器上列出了几个 zip 文件,我应该一直使用 Windows-64 zip 文件。相反,我下载了第一个文件,上面写着“zip”。我不确定这是什么配置。它在 Windows 7 中运行,但在 Netbeans 中创建了相同的神秘模式。在服务选项卡中,我可以清楚地看到服务器下列出的 Apache Tomcat。如果我启动了该服务,它运行良好。但是,当我右键单击我的项目并尝试解决缺少服务器的问题时,它不会在列表中列出 tomcat。该列表经过过滤,仅显示对 Java EE 6 版本或您正在使用的任何版本有效的服务器。就我而言,显然我下载的原始 tomcat 无效。

回答by rtindru

You have to register the server inside Netbeans. Simply a matter of going to the servers tab under tools & adding a new server & browsing to the installation location.

您必须在 Netbeans 中注册服务器。只需转到工具下的服务器选项卡并添加新服务器并浏览到安装位置即可。

Follow the tutorial on the link below here (start at the time I have set): Tutorial

按照以下链接上的教程进行操作(从我设置的时间开始): 教程

回答by Ganesh Rengarajan

Try this remove all server from the IDE and then double click the netbeans exe go to customize select the the tomcat server alone and then install

试试这个从IDE中删除所有服务器然后双击netbeans exe go to custom 单独选择tomcat服务器然后安装

sample

样本

回答by harsh bhuwania

Go to Tools -> Plugin -> Update Plugin.Worked for me, give it a try.

转到Tools -> Plugin -> Update Plugin.Worked for me,试一试。