IntelliJ IDEA的最新Tomcat版本似乎存在部署问题。对于此问题,我们附带了一个打开的错误,其中包含已修补的文件,可用于解决该问题:
IDEA-171174 Tomcat 9.0.0.M19:无法部署简单的WAR工件您可以找到IntelliJ IDEATomcat插件的修补后的jar,<IDEA_HOME>/plugins/Tomcat/lib/tomcatIntegration.jar并用它替换。
原始问题是由以下Tomcat错误引起的:
错误60949-无法使用管理器部署/取消部署War文件在以下Tomcat版本中解决了此错误:
8.5.14及更高版本9.0.0.M20及更高版本建议等待/安装固定的Tomcat版本或恢复不受该错误影响的版本(5.8.12和9.0.0.M18),因为IntelliJIDEA的解决方法使用了一些肮脏的技巧它可与受Bug60949 (损坏的JMX)影响的Tomcat 5.8.13和9.0.0.M19一起使用。
解决方法我不明白发生了什么事。两天前没有问题,现在我无法部署应用程序。任何一个。关于网络,我所做的唯一一件事就是使用以太网线将笔记本电脑插入房屋中的其他插座,仅此而已。我尝试了在这里找到的几乎所有解决方案,但没有任何帮助。
日志:
C:serversapache-tomcat-8.5.13bincatalina.bat run[2017-04-11 06:19:51,636] Artifact TestJEE:war exploded: Server is not connected. Deploy is not available.Using CATALINA_BASE: 'C:Userswojci.IntelliJIdea2016.3systemtomcatTomcat_8_5_13_TestJEE'Using CATALINA_HOME: 'C:serversapache-tomcat-8.5.13'Using CATALINA_TMPDIR: 'C:serversapache-tomcat-8.5.13temp'Using JRE_HOME:'C:Program FilesJavajdk1.8.0_112'Using CLASSPATH: 'C:serversapache-tomcat-8.5.13binbootstrap.jar;C:serversapache-tomcat-8.5.13bintomcat-juli.jar'11-Apr-2017 18:19:54.084 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:Apache Tomcat/8.5.1311-Apr-2017 18:19:54.087 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar 27 2017 14:25:04 UTC11-Apr-2017 18:19:54.087 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.13.011-Apr-2017 18:19:54.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 1011-Apr-2017 18:19:54.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.011-Apr-2017 18:19:54.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd6411-Apr-2017 18:19:54.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:Program FilesJavajdk1.8.0_112jre11-Apr-2017 18:19:54.088 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_112-b1511-Apr-2017 18:19:54.089 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation11-Apr-2017 18:19:54.089 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:Userswojci.IntelliJIdea2016.3systemtomcatTomcat_8_5_13_TestJEE11-Apr-2017 18:19:54.090 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:serversapache-tomcat-8.5.1311-Apr-2017 18:19:54.090 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:Userswojci.IntelliJIdea2016.3systemtomcatTomcat_8_5_13_TestJEEconflogging.properties11-Apr-2017 18:19:54.090 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager11-Apr-2017 18:19:54.091 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=11-Apr-2017 18:19:54.091 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=109911-Apr-2017 18:19:54.091 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false11-Apr-2017 18:19:54.091 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false11-Apr-2017 18:19:54.092 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.111-Apr-2017 18:19:54.092 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=204811-Apr-2017 18:19:54.092 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources11-Apr-2017 18:19:54.092 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:Userswojci.IntelliJIdea2016.3systemtomcatTomcat_8_5_13_TestJEE11-Apr-2017 18:19:54.092 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:serversapache-tomcat-8.5.1311-Apr-2017 18:19:54.092 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:serversapache-tomcat-8.5.13temp11-Apr-2017 18:19:54.093 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.11-Apr-2017 18:19:54.093 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true],sendfile [true],accept filters [false],random [true].11-Apr-2017 18:19:54.093 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false],useOpenSSL [true]11-Apr-2017 18:19:55.187 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2k 26 Jan 2017)11-Apr-2017 18:19:55.560 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ['http-nio-8080']11-Apr-2017 18:19:55.691 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read11-Apr-2017 18:19:55.745 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ['ajp-nio-8009']11-Apr-2017 18:19:55.763 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read11-Apr-2017 18:19:55.802 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 2418 ms11-Apr-2017 18:19:55.982 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina11-Apr-2017 18:19:55.983 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.1311-Apr-2017 18:19:56.185 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ['http-nio-8080']11-Apr-2017 18:19:56.250 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ['ajp-nio-8009']11-Apr-2017 18:19:56.382 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 578 ms[2017-04-11 06:19:56,404] Artifact TestJEE:war exploded: Artifact is being deployed,please wait...Connected to server[2017-04-11 06:19:56,493] Artifact TestJEE:war exploded: Error during artifact deployment. See server log for details.11-Apr-2017 18:20:06.205 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor C:Userswojci.IntelliJIdea2016.3systemtomcatTomcat_8_5_13_TestJEEconfCatalinalocalhostROOT.xml11-Apr-2017 18:20:06.968 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of configuration descriptor C:Userswojci.IntelliJIdea2016.3systemtomcatTomcat_8_5_13_TestJEEconfCatalinalocalhostROOT.xml has finished in 762 ms11-Apr-2017 18:20:06.973 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:serversapache-tomcat-8.5.13webappsmanager11-Apr-2017 18:20:07.084 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:serversapache-tomcat-8.5.13webappsmanager has finished in 112 msDisconnected from server
当我尝试连接到“localhost:8080”时,我在日志中收到有关连接被拒绝的消息和“与服务器断开连接”的消息。日志中没有任何有用的内容(无警告/错误)。我的每个JEE应用程序中都存在此问题。
正如我所说的,从这里尝试过许多解决方案,除了更改%JAVA_OPTS%envvar的值之外,因为在Tomcat目录和Catalina.bat中的任何地方都没有’setenv.bat’文件,该变量似乎已正确设置。我对这种技术还很陌生,我有点害怕开始调整一些我不知道的东西。
是什么导致此问题?有什么可能的解决方案?