bladexboot jar改成war部署 javax/servlet/http/HttpSessionIdListener异常

Blade 未结 1 908
ls
ls 2021-05-06 14:03

一、该问题的重现步骤是什么?


1. pom文件中移除内部Tomcat


2.application添加 


SpringApplicationBuilder configure(SpringApplicationBuilder application) {

   BladeApplication.(CommonConstant., Application.).sources(Application.);

}

3.




二、你期待的结果是什么?实际看到的又是什么?


运行war成功,包错异常


三、你正在使用的是什么产品,什么版本?在什么操作系统上?



bladexboot ,


2.8.0.RELEASE, windowx系统

四、请提供详细的错误堆栈信息,这很重要。


org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionIdListener


五、若有更多详细信息,请在下面提供。


2021-05-06 13:49:10.413  WARN 21888 --- [on(3)-127.0.0.1] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionIdListener


2021-05-06 13:49:10.422  INFO 21888 --- [on(3)-127.0.0.1] ConditionEvaluationReportLoggingListener : 




Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.


2021-05-06 13:49:10.428 ERROR 21888 --- [on(3)-127.0.0.1] o.s.boot.SpringApplication               : Application run failed




org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionIdListener


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156)


at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)


at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)


at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)


at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)


at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)


at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)


at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)


at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)


at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5709)


at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)


at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1018)


at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)


at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)


at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899)


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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:619)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:566)


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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)


at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)


at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)


at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)


浜旀湀 06, 2021 1:49:10 涓嬪崍 org.apache.catalina.core.ContainerBase addChildInternal


涓ラ噸: ContainerBase.addChild: start: 


org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/btusercentre_war_exploded]]


at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)


at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1018)


at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)


at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)


at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899)


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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:619)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:566)


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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)


at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)


at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)


at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)


at java.security.AccessController.doPrivileged(Native Method)


at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)


at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)


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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)


at sun.rmi.transport.Transport$1.run(Transport.java:200)


at sun.rmi.transport.Transport$1.run(Transport.java:197)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.Transport.serviceCall(Transport.java:196)


at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)


at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)


at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)


at java.lang.Thread.run(Thread.java:748)


Caused by: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionIdListener


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:156)


at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)


at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)


at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)


at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)


at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:152)


at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:132)


at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:92)


at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)


at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5709)


at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)


... 44 more


Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionIdListener


at java.security.AccessController.doPrivileged(Native Method)


at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)


at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)


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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)


at sun.rmi.transport.Transport$1.run(Transport.java:200)


at sun.rmi.transport.Transport$1.run(Transport.java:197)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.Transport.serviceCall(Transport.java:196)


at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)


at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)


at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)


at java.lang.Thread.run(Thread.java:748)


Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpSessionIdListener


at io.undertow.servlet.core.ApplicationListeners.(ApplicationListeners.java:62)


at io.undertow.servlet.spec.ServletContextImpl.ensureNotProgramaticListener(ServletContextImpl.java:975)


at io.undertow.servlet.spec.ServletContextImpl.getSessionCookieConfig(ServletContextImpl.java:676)


at io.undertow.servlet.core.DeploymentManagerImpl.handleDeploymentSessionConfig(DeploymentManagerImpl.java:642)


at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:179)


at org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory.createDeploymentManager(UndertowServletWebServerFactory.java:293)


at org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory.getWebServer(UndertowServletWebServerFactory.java:218)


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)


... 55 common frames omitted


Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessionIdListener


at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1955)


at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1798)


... 64 common frames omitted




at io.undertow.servlet.core.ApplicationListeners.(ApplicationListeners.java:62)


at io.undertow.servlet.spec.ServletContextImpl.ensureNotProgramaticListener(ServletContextImpl.java:975)


at io.undertow.servlet.spec.ServletContextImpl.getSessionCookieConfig(ServletContextImpl.java:676)


at io.undertow.servlet.core.DeploymentManagerImpl.handleDeploymentSessionConfig(DeploymentManagerImpl.java:642)


at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:179)


at org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory.createDeploymentManager(UndertowServletWebServerFactory.java:293)


at org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory.getWebServer(UndertowServletWebServerFactory.java:218)


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)


at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153)


... 55 more


Caused by: java.lang.ClassNotFoundException: javax.servlet.http.HttpSessionIdListener


at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1955)


at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1798)


... 64 more




浜旀湀 06, 2021 1:49:10 涓嬪崍 org.apache.tomcat.util.modeler.BaseModelMBean invoke


涓ラ噸: Exception invoking method manageApp


java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/btusercentre_war_exploded]]


at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1022)


at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)


at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)


at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899)


at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)


[2021-05-06 01:49:10,485] Artifact btusercentre:war exploded: Error during artifact deployment. See server log for details.


at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


at java.lang.reflect.Method.invoke(Method.java:498)


at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:619)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:566)


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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)


at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)


at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)


at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)


at java.security.AccessController.doPrivileged(Native Method)


at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)


at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)


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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)


at sun.rmi.transport.Transport$1.run(Transport.java:200)


at sun.rmi.transport.Transport$1.run(Transport.java:197)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.Transport.serviceCall(Transport.java:196)


at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)


at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)


at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)


at java.lang.Thread.run(Thread.java:748)




浜旀湀 06, 2021 1:49:10 涓嬪崍 org.apache.tomcat.util.modeler.BaseModelMBean invoke


涓ラ噸: Exception invoking method createStandardContext


javax.management.RuntimeOperationsException: Exception invoking method manageApp


at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:309)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:619)


at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:566)


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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)


at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)


at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:468)


at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)


at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)


at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)


at java.security.AccessController.doPrivileged(Native Method)


at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1408)


at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)


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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)


at sun.rmi.transport.Transport$1.run(Transport.java:200)


at sun.rmi.transport.Transport$1.run(Transport.java:197)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.Transport.serviceCall(Transport.java:196)


at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:834)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)


at java.security.AccessController.doPrivileged(Native Method)


at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)


at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)


at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)


at java.lang.Thread.run(Thread.java:748)


Caused by: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/btusercentre_war_exploded]]


at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1022)


at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)


at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)


at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1899)


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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)


... 35 more




浜旀湀 06, 2021 1:53:27 涓嬪崍 org.apache.catalina.core.StandardServer await


璀﹀憡: StandardServer.await: Invalid command '' received





请大佬协助解决下,谢谢。

1条回答
  •  如梦技术
    2021-05-06 15:36

    tomcat 10 是吧?tomcat 10 升级到 Jakarta servlet api,包名变了,很多框架现在支持得都不是很好,建议不要用 tomcat 10。

    作者追问:2021-05-06 15:36

    tomcat不是10,用的7的。。闹心不知道啥原因,新创建的项目好试,用bladeboot改成war就有问题。

    0 讨论(2)
提交回复