Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.support.http.StatViewServlet

來源:轉載

1、錯誤描述

嚴重: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/gerp-back]org.apache.openejb.OpenEJBException: Unable to load servlet class: com.alibaba.druid.support.http.StatViewServlet: com.alibaba.druid.support.http.StatViewServletat 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.StatViewServletat 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
2、錯誤原因

3、解決辦法

您可能感興趣的文章:
隨機閱讀: