我可以使用终端启动/关闭Tomcat服务器,但在NetBeans上,它会在starting
上停留几分钟,然后我会得到server failed to start
错误。
我尝试过的事情:
server.xml
catalina.bat
文件tomcat-users.xml添加不同的角色
如有任何帮助,我们将不胜感激。
15-Feb-2020 21:12:39.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Feb 5 2020 19:32:12 UTC
15-Feb-2020 21:12:39.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.31.0
15-Feb-2020 21:12:39.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Mac OS X
15-Feb-2020 21:12:39.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.15.3
15-Feb-2020 21:12:39.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86_64
15-Feb-2020 21:12:39.866 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home/jre
15-Feb-2020 21:12:39.867 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_191-b12
15-Feb-2020 21:12:39.867 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
15-Feb-2020 21:12:39.867 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /Users/Aereli/Apache
15-Feb-2020 21:12:39.867 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /Library/Tomcat
15-Feb-2020 21:12:39.871 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Users/Aereli/Apache/conf/logging.properties
15-Feb-2020 21:12:39.871 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
15-Feb-2020 21:12:39.871 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
15-Feb-2020 21:12:39.872 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
15-Feb-2020 21:12:39.872 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
15-Feb-2020 21:12:39.872 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
15-Feb-2020 21:12:39.872 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Users/Aereli/Apache
15-Feb-2020 21:12:39.872 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Library/Tomcat
15-Feb-2020 21:12:39.872 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Users/Aereli/Apache/temp
15-Feb-2020 21:12:39.872 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/Aereli/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
15-Feb-2020 21:12:40.310 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"]
15-Feb-2020 21:12:40.396 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [789] milliseconds
15-Feb-2020 21:12:40.483 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
15-Feb-2020 21:12:40.483 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.31]
15-Feb-2020 21:12:40.509 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/Users/Aereli/Apache/conf/Catalina/localhost/manager.xml]
15-Feb-2020 21:12:40.866 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/Users/Aereli/Apache/conf/Catalina/localhost/manager.xml] has finished in [356] ms
15-Feb-2020 21:12:40.866 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/Users/Aereli/Apache/conf/Catalina/localhost/ROOT.xml]
15-Feb-2020 21:12:40.867 WARNING [main] org.apache.catalina.startup.HostConfig.deployDescriptor The path attribute with value [] in deployment descriptor [/Users/Aereli/Apache/conf/Catalina/localhost/ROOT.xml] has been ignored
15-Feb-2020 21:12:40.903 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/Users/Aereli/Apache/conf/Catalina/localhost/ROOT.xml] has finished in [37] ms
15-Feb-2020 21:12:40.921 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"]
15-Feb-2020 21:12:40.958 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [561] milliseconds
我在NetBeans12上也遇到了同样的问题。我在互联网上搜索了很多,所有的解决方案都对我不起作用。最后,我将我的JDK更新到了最新版本,tomcat开始像一个魅力一样工作。尝试将JDK更新到最新版本。也许能帮到你。我相信Netbeans的版本往往取决于您使用的JDK。
在Eclipse版本之后,我安装并测试了名为“CrunchifySpringMVactural”的Spring简单应用程序。这是一个maven项目。它是成功构建的,当开始使用ApacheTomcat时,会出现如下错误。 Java版本 java-版本 java版本“1.8.0_65” Java(TM)SE运行时环境(build 1.8.0_65-b17) Java HotSpot(TM)64位服务器
问题内容: 我为Mac安装了mySQL。除了使用System Preference中安装的mySQL.prefPane工具启动SQL Server之外,我还想知道从命令行启动的指令。我做如下: 后 苏根 我通过命令行启动mySQL服务器,它产生如下错误: sh-3.2# / usr / local / mysql / bin / mysqld 111028 16:57:43 [警告]设置lower
我的XAMPP服务器有问题。我可以毫无问题地启动Apache、FileZilla和其他所有东西,但当我尝试启动MySQL时,它只是说 尝试启动MySQL服务... 它永远都是这样,就像被冻了一样。 有什么好办法吗?
我想在启动时自动启动MySQL服务器。这在小牛队是可能的,但在优胜美地似乎不起作用。 编辑:看来这也适用于埃尔·卡皮坦