zoukankan      html  css  js  c++  java
  • Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.support.http.StatViewServlet

    1、错误描述

    严重: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cmp]
    org.apache.openejb.OpenEJBException: Unable to load servlet class: com.alibaba.druid.support.http.StatViewServlet: com.alibaba.druid.support.http.StatViewServlet
    	at org.apache.openejb.config.WsDeployer.processPorts(WsDeployer.java:234)
    	at org.apache.openejb.config.WsDeployer.deploy(WsDeployer.java:72)
    	at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:403)
    	at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:971)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1227)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
    	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
    	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	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.ClassNotFoundException: com.alibaba.druid.support.http.StatViewServlet
    	at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:176)
    	at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:80)
    	at org.apache.openejb.config.WsDeployer.processPorts(WsDeployer.java:150)
    	... 20 more
    八月 05, 2017 4:17:13 下午 org.apache.catalina.core.ContainerBase removeChild
    严重: ContainerBase.removeChild: destroy: 
    org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cmp]] in state 
    
    [STARTING_PREP]
    	at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:401)
    	at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:291)
    	at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1038)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1537)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1518)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1267)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
    	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
    	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	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)
    八月 05, 2017 4:17:13 下午 org.apache.catalina.core.ContainerBase addChildInternal
    严重: ContainerBase.addChild: start: 
    org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cmp]]
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153)
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
    	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	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.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Unable to load servlet class: com.alibaba.druid.support.http.StatViewServlet: 
    
    com.alibaba.druid.support.http.StatViewServlet
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1270)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100)
    	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130)
    	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
    	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
    	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    	... 10 more
    Caused by: org.apache.openejb.OpenEJBException: Unable to load servlet class: com.alibaba.druid.support.http.StatViewServlet: com.alibaba.druid.support.http.StatViewServlet
    	at org.apache.openejb.config.WsDeployer.processPorts(WsDeployer.java:234)
    	at org.apache.openejb.config.WsDeployer.deploy(WsDeployer.java:72)
    	at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:403)
    	at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:971)
    	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1227)
    	... 16 more
    Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.support.http.StatViewServlet
    	at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:176)
    	at org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:80)
    	at org.apache.openejb.config.WsDeployer.processPorts(WsDeployer.java:150)
    	... 20 more
    八月 05, 2017 4:17:13 下午 org.apache.catalina.startup.HostConfig deployDirectory
    严重: Error deploying web application directory F:Tomcatapache-tomee-plume-1.7.4webappscmp
    java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/cmp]]
    	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:903)
    	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
    	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1259)
    	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1998)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	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)
    

    2、错误原因


    3、解决办法


  • 相关阅读:
    selenium---元素定位(find_element)
    selenium---八种定位元素方法
    selenium---环境配置
    vue el-table 自适应表格内容宽度
    另类的开发环境搭建
    基于Django+celery二次开发动态配置定时任务 ( 二)
    基于datax的数据同步平台
    mysql常用日期、时间查询
    MySQL数据库管理
    mysql5.7.20多实例编译安装
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13313838.html
Copyright © 2011-2022 走看看