NetBeans 项目在连接到 Tomcat 时卡住了

NetBeans project stuck while connecting to Tomcat

我正在尝试使用 NetBeans 8.2 tomcat 部署 Web 项目。

当我 运行 我的项目时,Tomcat 7 服务器 运行 正常并且其日志显示服务器已启动但 NetBeans 项目继续等待 Tomcat服务器,等待 3 分钟后显示 "Starting of Tomcat failed"

这是我的 Tomcat

日志
Mar 03, 2020 3:53:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/temp
Mar 03, 2020 3:53:18 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/Users/user/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
Mar 03, 2020 3:53:18 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Mar 03, 2020 3:53:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 532 ms
Mar 03, 2020 3:53:18 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Mar 03, 2020 3:53:18 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.100
Mar 03, 2020 3:53:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/docs]
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/docs] has finished in [274] ms
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/manager]
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/manager] has finished in [67] ms
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/examples]
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/examples] has finished in [188] ms
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/ROOT]
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/ROOT] has finished in [38] ms
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/host-manager]
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory [/Users/user/Documents/tools/Servers/apache-tomcat-7.0.100/webapps/host-manager] has finished in [46] ms
Mar 03, 2020 3:53:19 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Mar 03, 2020 3:53:19 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 677 ms

我的项目日志:

    scrybe_commons.jar:
    scrybe_services.compile:
    scrybe_services.jar:
    deps-ear-jar:
    deps-jar:
    check-rest-config-props:
    generate-rest-config:
    library-inclusion-in-archive:
    library-inclusion-in-manifest:
    compile:
    compile-jsps:
    Starting Tomcat process...
    Waiting for Tomcat...
    Starting of Tomcat failed.
    /Users/user/path/to/project/nbproject/build-impl.xml:1199: Deployment error: Starting of 
    Tomcat failed.
    See the server log for details.
    BUILD FAILED (total time: 3 minutes 1 second)

我不知道我做错了什么!

编辑: 我已经尝试了 this link 中所有给定的解决方案,但没有解决我的问题。

在我的情况下,我认为问题出在我使用的 Tomcat 版本上,因此更改 tomcat 版本对我有用。

我正在使用 Tomcat 7.0.100,我下载了 Tomcat 7.0.56 并将其添加到 Netbeans 中,然后在清理和构建我的项目后,我使用 Deploy 命令来 运行 我的项目.