Spring mvc 未能销毁与ProtocolHandler[“ajp-nio-8009”关联的端点

Spring mvc 未能销毁与ProtocolHandler[“ajp-nio-8009”关联的端点,spring-mvc,jakarta-ee,Spring Mvc,Jakarta Ee,刚接触spring sqcurity的时候,我用maven做了spring安全性,并用错误进行了混搭,我想我打破了编译规则或其他什么,没有编译时异常。我想我得到了错误的xml配置,但找不到它。这是我的dispatcherservlet.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www

刚接触spring sqcurity的时候,我用maven做了spring安全性,并用错误进行了混搭,我想我打破了编译规则或其他什么,没有编译时异常。我想我得到了错误的xml配置,但找不到它。这是我的dispatcherservlet.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.3.xsd
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">


<context:component-scan base-package="com.mysecurity.springsecurity" />

<bean
    class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix">
        <value>/WEB-INF/pages/</value>
    </property>
    <property name="suffix">
        <value>.jsp</value>
    </property>
</bean>
原因:org.apache.catalina.LifecycleException:无法启动组件[StandardEngine[catalina]] 位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162) 位于org.apache.catalina.core.StandardService.startInternal(StandardService.java:441) 位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) ... 9更多 原因:org.apache.catalina.LifecycleException:启动期间子容器失败 位于org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:951) 位于org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) 位于org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) ... 还有11个 2017年6月15日下午7:14:49 org.apache.coyote.AbstractProtocol暂停 信息:暂停ProtocolHandler[“http-nio-8080”] 2017年6月15日下午7:14:49 org.apache.coyote.AbstractProtocol暂停 信息:暂停ProtocolHandler[“ajp-nio-8009”] 2017年6月15日下午7:14:49 org.apache.catalina.core.StandardService 停车场 信息:停止服务卡塔琳娜 2017年6月15日下午7:14:49 org.apache.coyote.AbstractProtocol 信息:正在销毁ProtocolHandler[“http-nio-8080”] 2017年6月15日下午7:14:49 org.apache.coyote.AbstractProtocol 严重:未能销毁与关联的终结点 ProtocolHandler[“http-nio-8080”] org.apache.tomcat.util.net.NioEndpoint.releaseCaches上的java.lang.NullPointerException(NioEndpoint.java:315) 位于org.apache.tomcat.util.net.NioEndpoint.unbind(NioEndpoint.java:491) 位于org.apache.tomcat.util.net.AbstractEndpoint.destroy(AbstractEndpoint.java:883) 位于org.apache.coyote.AbstractProtocol.destroy(AbstractProtocol.java:551) 位于org.apache.catalina.connector.connector.internal(connector.java:1023) 位于org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292) 位于org.apache.catalina.core.StandardService.destroyInternal(StandardService.java:589) 位于org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292) 位于org.apache.catalina.core.StandardServer.destroyInternal(StandardServer.java:879) 位于org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:292) 位于org.apache.catalina.startup.catalina.start(catalina.java:633) 在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处 位于sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)中 位于java.lang.reflect.Method.invoke(Method.java:498) 位于org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
在org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

如果需要其他信息,只需询问即可。以前有人遇到过这个错误,知道我为什么会遇到这个错误吗?
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security.xsd">

<http auto-config="true">
    <intercept-url pattern="/admin**" access="ROLE_USER" />
</http>

<authentication-manager>
    <authentication-provider>
        <user-service>
            <user name="admin" password="admin" authorities="ROLE_USER" />
        </user-service>
    </authentication-provider>
</authentication-manager>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee 
 http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">

<display-name>Spring Secured Application</display-name>

<servlet>
    <servlet-name>mvc-dispatcher</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
    <servlet-name>mvc-dispatcher</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<!-- Loads Spring Security config file -->
<context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
        /WEB-INF/spring-security.xml
    </param-value>
</context-param>

<!-- Spring Security -->
<filter>
    <filter-name>springSecurityFilterChain</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter>

<filter-mapping>
    <filter-name>springSecurityFilterChain</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
 `SEVERE: The required Server component failed to start so Tomcat is unable to start.
  org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
at 
 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
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 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: Failed to start 
component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:789)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
... 7 more