【发布时间】:2020-05-09 01:46:56
【问题描述】:
我正在尝试在 IntelliJ 中打开我的网络应用程序,我之前已经打开过很多次,并且运行良好。但是今天我什至无法启动我的 Tomcat 服务器。它说地址 localhost:4848 已被使用或无法ping通。我正在使用 netstat -ano 检查使用的端口并杀死正在使用该端口的进程,但它没有帮助。我也在尝试不同版本的 Java SDK(8 和 13)并尝试以管理员身份运行 IntelliJ,但它也没有帮助。我正在使用 GlasFish 5.193.1 和 Tomcat 9.0.29
[2020-01-22 08:57:11,460] Artifact pas-task-1-mvc:war: Waiting for server connection to start artifact deployment...
Detected server admin port: 4848
Detected server http port: 8181
Attempting to start domain1.... Please look at the server log for more details.....
[2020-01-22T20:49:22.639+0100] [Payara 5.193] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1579722562639] [levelValue: 1000] [[
Failed to start, exiting]]
[2020-01-22T20:49:22.640+0100] [Payara 5.193] [SEVERE] [] [] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1579722562640] [levelValue: 1000] [[
Exception in thread "main" ]]
[2020-01-22T20:49:22.642+0100] [Payara 5.193] [SEVERE] [] [] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1579722562642] [levelValue: 1000] [[
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:109)
at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:54)
Caused by: java.lang.RuntimeException: org.glassfish.embeddable.GlassFishException: Server failed to start
at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:225)
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:83)
at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
at com.sun.enterprise.glassfish.bootstrap.osgi.EmbeddedOSGiGlassFishImpl.start(EmbeddedOSGiGlassFishImpl.java:75)
at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:71)
at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:130)
... 6 more
Caused by: org.glassfish.embeddable.GlassFishException: Server failed to start
at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:237)
at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:223)
... 12 more
]]
Application Server was not connected before run configuration stop, reason: com.intellij.javaee.process.common.WrappedException: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: V3 cannot process this command at this time, please wai
【问题讨论】:
-
您在使用 Tomcat 时遇到的错误是什么?在管理员控制台中尝试
netsh winsock reset并重新启动。 -
@CrazyCoder 不幸的是,这个命令没有帮助。我没有来自 Tomcat 的任何日志
-
尝试使用默认设置进行干净的服务器安装。
-
@Dampsy 它有时可以帮助我删除
target文件夹并重新运行应用程序。这将再次创建目标文件夹并按预期运行应用程序。除非更改设置,否则目标文件夹应与项目文件夹一起出现 -
你的两个想法都没有帮助
标签: java tomcat intellij-idea web-applications glassfish