当前位置: 首页 > 知识库问答 >
问题:

Netbeans 11无法管理Tomcat 9(已解决)

杨乐意
2023-03-14

早上好,我打算在macOS中使用Apache Tomcat9和NetBeans11.1和JDK11,但它不起作用。

NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
26-Feb-2020 10:00:53.276 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/9.0.31
26-Feb-2020 10:00:53.279 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Feb 5 2020 19:32:12 UTC
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.31.0
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Mac OS X
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            10.13.6
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          x86_64
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           11.0.6+8-LTS
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /usr/local/apache-tomcat-9.0.31
26-Feb-2020 10:00:53.280 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /usr/local/apache-tomcat-9.0.31
26-Feb-2020 10:00:53.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
26-Feb-2020 10:00:53.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
26-Feb-2020 10:00:53.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
26-Feb-2020 10:00:53.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/Library/Tomcat/conf/logging.properties
26-Feb-2020 10:00:53.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
26-Feb-2020 10:00:53.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
26-Feb-2020 10:00:53.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
26-Feb-2020 10:00:53.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
26-Feb-2020 10:00:53.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
26-Feb-2020 10:00:53.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/Library/Tomcat
26-Feb-2020 10:00:53.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/Library/Tomcat
26-Feb-2020 10:00:53.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/Library/Tomcat/temp
26-Feb-2020 10:00:53.298 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/user/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.]
26-Feb-2020 10:00:53.587 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
26-Feb-2020 10:00:53.620 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [527] milliseconds
26-Feb-2020 10:00:53.674 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
26-Feb-2020 10:00:53.674 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.31]
26-Feb-2020 10:00:53.681 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/apache-tomcat-9.0.31/webapps/docs]
26-Feb-2020 10:00:53.908 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/apache-tomcat-9.0.31/webapps/docs] has finished in [226] ms
26-Feb-2020 10:00:53.908 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/apache-tomcat-9.0.31/webapps/manager]
26-Feb-2020 10:00:53.940 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/apache-tomcat-9.0.31/webapps/manager] has finished in [31] ms
26-Feb-2020 10:00:53.940 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/apache-tomcat-9.0.31/webapps/examples]
26-Feb-2020 10:00:54.169 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/apache-tomcat-9.0.31/webapps/examples] has finished in [229] ms
26-Feb-2020 10:00:54.169 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/apache-tomcat-9.0.31/webapps/ROOT]
26-Feb-2020 10:00:54.187 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/apache-tomcat-9.0.31/webapps/ROOT] has finished in [17] ms
26-Feb-2020 10:00:54.187 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/apache-tomcat-9.0.31/webapps/host-manager]
26-Feb-2020 10:00:54.204 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/apache-tomcat-9.0.31/webapps/host-manager] has finished in [17] ms
26-Feb-2020 10:00:54.210 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
26-Feb-2020 10:00:54.219 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [598] milliseconds

<Connector
      connectionTimeout="20000"
      port="8080"
      protocol="HTTP/1.1"
      redirectPort="8443"
      server="Apache-Coyote/1.1"
    />

(更新)

我已经通过https://issues.apache.org/jira/browse/netbeans-3903解决了这个问题

共有1个答案

禄光霁
2023-03-14

我不是mac用户,而是Ubuntu用户。我也面临这样的问题。我所做的是从终端停止tomcat,然后尝试从Netbeans运行我的应用程序或从Netbeans启动tomcat(服务选项卡)。

此外,如果您没有使用manager-gui,manager-script定义tomcat用户,您可能不会使用netbeans中的tomcat(我不确定管理员角色)。

<role rolename="admin"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user password="YOUR_PASSWORD" roles="admin,manager-gui,manager-script" username="YOUR_USERNAME" />
 类似资料:
  • 我已经安装并启动了。服务也在运行。但是,当我尝试在firefox中打开管理界面时,我得到了这个错误: 我检查了端口并确保它们是正确的,同时尝试重新安装。 有什么办法解决这个问题吗?

  • 问题内容: 对于没有JS经验的人,您对学习Node.js有什么建议? 我在论坛上阅读了很多有关事件驱动,非阻塞,异步,回调等内容的信息,但我不知道那是什么! 在哪里可以学习基础知识,以便理解所有术语以及将来的node.js? 谢谢! 问题答案: 您提到的概念(事件驱动,非阻塞,异步,回调)不是特定于JavaScript的,在更一般的上下文中理解它们非常有价值。它们都围绕着优雅地处理我们无法控制的资

  • 我对VS2012和2013都有这个问题。当我加载现有解决方案或创建新解决方案时,我收到一个ProviderPackage错误-在包实例化过程中引发了一个异常,并在包管理器中捕获。关闭错误对话框后,“解决方案资源管理器”窗口为空,尽管编辑器中有打开的解决方案文件。 ActivityLog。xml文件显示错误发生时加载的不同模块,具体取决于项目类型。是否有一种方法可以确定2012年和2013年之间导致

  • 方法fragmentTransaction.add(Fragment,String)不适用(实际参数int无法通过方法调用转换转换为Fragment) 我的代码的一部分:

  • 问题内容: 从Tomcat迁移到Weblogic 12.1.3时,遇到了此异常, 然后尝试了以下操作: NameNotFoundException:仅当从EclipseKepler发布而不是Indigo 以及 如何访问 Weblogic10.3中定义的JNDI数据源时,才尝试查找“ jdbc”。6 我现在得到标题错误 我的查询代码 在weblogic JNDI名称中 有什么帮助吗? 问题答案: 与

  • 在维基百科中,背包的算法如下: 我在网上找到的所有例子的结构都是一样的<我无法理解的是,这段代码是如何考虑到最大值可能来自较小的背包这一事实的?E、 如果背包容量为8,那么最大值可能来自容量7(8-1)<我找不到任何逻辑来考虑最大值可能来自较小的背包。这是错误的想法吗?