java - 在 intelliJ 中找不到 Apache Tomcat 7 HTTP 连接器节点

标签 java tomcat gwt intellij-idea

我正在使用 GWT、Apache Tomcat 7 上的 Maven 和 intelliJ idea 开发应用程序。我最近调试并运行了我的应用程序,但遇到了以下问题:运行 Tomcat 7 时出错:找不到 HTTP 连接器节点:在 server.xml 中设置一个节点。

Apache Tomcat 运行代码:

"c:\program files (x86)\jetbrains\intellij idea 11.1.4\jre\jre\bin\java" -Dclassworlds.conf=C:\Tools\apache-maven-3.1.1\bin\m2.conf -Dmaven.home=C:\Tools\apache-maven-3.1.1 -Dfile.encoding=UTF-8 -classpath C:\Tools\apache-maven-3.1.1\boot\plexus-classworlds-2.5.1.jar org.codehaus.classworlds.Launcher --offline --no-plugin-registry --fail-fast --strict-checksums --update-snapshots -f D:\Projects\ebank\pom.xml package -P gwtDebug,oracle
[WARNING] Command line option -npr is deprecated and will be removed in future Maven versions.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building AppFuse GWT Application 1.0
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.sun.xml.bind:jaxb-impl:jar:2.1.13 is missing, no dependency information available
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ AppfuseGWT ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 33 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ AppfuseGWT ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- native2ascii-maven-plugin:1.0-beta-1:native2ascii (native2ascii-utf8) @ AppfuseGWT ---
[INFO] Includes: [ApplicationResources_zh*.properties, ApplicationResources_ko*.properties, displaytag_zh*.properties]
[INFO] Excludes: []
[INFO] 
[INFO] --- exec-maven-plugin:1.2:exec (default) @ AppfuseGWT ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ AppfuseGWT ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 17 resources
[INFO] Copying 9 resources
[INFO] 
[INFO] >>> hibernate3-maven-plugin:2.2:hbm2ddl (default) @ AppfuseGWT >>>
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ AppfuseGWT ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 33 resources
[INFO] 
[INFO] <<< hibernate3-maven-plugin:2.2:hbm2ddl (default) @ AppfuseGWT <<<
[INFO] 
[INFO] --- hibernate3-maven-plugin:2.2:hbm2ddl (default) @ AppfuseGWT ---
[INFO] skipping hibernate3 execution
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ AppfuseGWT ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- dbunit-maven-plugin:1.0-beta-3:operation (test-compile) @ AppfuseGWT ---
[INFO] Skip operation: CLEAN_INSERT execution
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ AppfuseGWT ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- dbunit-maven-plugin:1.0-beta-3:operation (test) @ AppfuseGWT ---
[INFO] Skip operation: CLEAN_INSERT execution
[INFO] 
[INFO] --- gwt-maven-plugin:2.5.0:compile (gwtcompile) @ AppfuseGWT ---
[INFO] uz.eopc.webapp.MainModuleDebug is up to date. GWT compilation skipped
[INFO] 
[INFO] --- maven-war-plugin:2.3:war (default-war) @ AppfuseGWT ---
[INFO] Packaging webapp
[INFO] Assembling webapp [AppfuseGWT] in [D:\Projects\ebank\target\AppfuseGWT-1.0]
[INFO] Processing war project
[INFO] Copying webapp webResources [D:\Projects\ebank\src/main/resources/packaged] to [D:\Projects\ebank\target\AppfuseGWT-1.0]
[INFO] Copying webapp resources [D:\Projects\ebank\src\main\webapp]
[INFO] Webapp assembled in [279 msecs]
[INFO] Building war: D:\Projects\ebank\target\AppfuseGWT-1.0.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.405s
[INFO] Finished at: Mon Dec 09 10:54:04 UZT 2013
[INFO] Final Memory: 12M/29M
[INFO] ------------------------------------------------------------------------
[INFO] Maven execution finished

应该如何解决这个问题?

最佳答案

我已经找到解决这个问题的答案。我使用的是 ubuntu 12.04,在 linux 系统中,一切都与权限相关。我对我的tomcat目录开放读写权限后,就成功了。要在 ubuntu 中打开对目录的读写权限,只需写:

$ sudo chmod 777 -R folder_name/

关于java - 在 intelliJ 中找不到 Apache Tomcat 7 HTTP 连接器节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20464096/

相关文章:

java - 当丹麦语设置为 VM 参数时,org.joda.time.DateTime 的 toString() 方法失败

java - 如何使用RelativeLayout使Textview在Listview中居中?

java - 获取小部件实例

tomcat - 尝试在取自 GWT-RPC 项目的 Tomcat 7 上部署 war

java - GWT编译器: Error: Could not create the Java Virtual Machine

java - 在堆栈 Java 中获取调用

java - 适用于小型项目的简易 Java ORM

jquery - tomcat 服务器 (GWT) 上的 $.ajax 意外 token 错误

web-services - 如何在 Tomcat 中查看所有有效的 URL?

java - maven如何解决javax.servlet.servlet-api和javax.servlet.javax.servlet-api的冲突