tomcat - 在 Netbeans 6.9 中,如何更改应用程序服务器

标签 tomcat glassfish setup-project netbeans-6.9

在 Netbeans 6.9.1 中,我使用 Glassfish Server 3 创建了一个 Web 应用程序。
(在服务器文本框下,java ee 版本默认为“Java EE 6 Web”)。
现在我已经安装了一个 Apache tomcat 7(实际上它认为它是 6,因为 Netbeans 6.9.1 中没有提供 7 版本)。
问题是我不能再选择 Tomcat,它不会出现在项目属性的服务器组合框中。
如果我从头开始做一个网络应用程序,我可以。
我尝试:
-删除 WEB-INF/sun-config.xml
-关闭并重新打开项目

最佳答案

  • Rightclick on the project's name > 'properties' > 'run'
  • And try to change 'Server'

关于tomcat - 在 Netbeans 6.9 中,如何更改应用程序服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6474471/

相关文章:

java - doFilter 调用了两次,预期的行为?

通过 Intellij-Idea 10 上的 tomcat 的 GWT 应用程序

java - 尝试运行 grails 时出现 Bootrun 错误

java - 在具有 tomcat 目录结构的项目中从 java 访问 js 文件(java.io.FileNotFoundException)

java - 在 Java Web 应用程序 (WAR) 中存储配置文件的最佳位置是什么?

java.lang.RuntimeException : There is no web component by the name of application here

jakarta-ee - EJB 注入(inject) JAX-RS 不起作用

visual-studio-2010 - 安装程序不会覆盖现有应用

c# - 配置文件 'C:\my\App.Config' 用于配置所有可执行文件

c# - 如何将 exe 文件作为先决条件添加到 .net 安装程序中