• tomcat 异常:Caused by: org.apache.catalina.LifecycleException: The connector cannot start since the specified port value of [-1] is invalid


    启动tomcat时出现异常:

     org.apache.catalina.LifecycleException: Failed to start component [Connector[AJP/1.3-auto-1]]
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
            at org.apache.catalina.core.StandardService.startInternal(StandardService.java:458)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:752)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:625)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
    Caused by: org.apache.catalina.LifecycleException: The connector cannot start since the specified port value of [-1] is invalid
            at org.apache.catalina.connector.Connector.startInternal(Connector.java:979)
            at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
            ... 11 more

    报了异常,但tomcat还是启动起来了,并且项目也可以访问,没发现其他异常,google了一下,说是这个异常可以被忽略,并不影响功能的使用,说是从安全层面避免其它服务或软件关闭tomcat.可参考:https://kb.acronis.com/es/node/54707   ;有时间再研究一下这个异常......

  • 相关阅读:
    ●BZOJ 3894 文理分科
    ●BZOJ 1797 [Ahoi2009]Mincut 最小割
    ●BZOJ 1934 [Shoi2007]Vote 善意的投票
    ●BZOJ 3996 [TJOI2015]线性代数
    php--->self与static区别
    php--->使用callable强制指定回调类型
    php--->依赖注入(DI)实现控制反转(IOC)
    php--->cookie和session
    php--->注册模式
    linux---> siege压力测试工具使用
  • 原文地址:https://www.cnblogs.com/jessezeng/p/5512981.html
Copyright © 2020-2023  润新知