求高手:Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了求高手:Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown相关的知识,希望对你有一定的参考价值。

错误提示具体信息如下
Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
java.lang.NoClassDefFoundError: Could not initialize class com.boco.eoms.base.util.StaticMethod
at com.boco.eoms.commons.log.aop.support.LogBeforeMethodAdvice.before(LogBeforeMethodAdvice.java:46)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
at $Proxy50.getTawSystemCptroomList(Unknown Source)
at com.boco.eoms.workplan.dao.TawwpUtilDAO.getRoomInf(TawwpUtilDAO.java:753)
at com.boco.eoms.workplan.dao.TawwpUtilDAO.initInfor(TawwpUtilDAO.java:847)
at com.boco.eoms.workplan.plugin.InitWorkplanPlugin.init(InitWorkplanPlugin.java:43)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:350)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke.....

在eclipse里 ctrl shiftt +T搜下看看有没有 com.boco.eoms.base.util.StaticMethod这个类,没有就少jar,去网上找个吧 参考技术A 可能在spring文件内未注入action等内容!

MATLAB读视频报错 Unable to initialize the video obtain properties (videoreader in Matlab)

这个bug卡了半天,这里记录一下

Error using VideoReader/init (line 619) Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties

Error in VideoReader (line 172)
            obj.init(fileName);

环境:Ubuntu16.04

参考:stackoverflow

首先安装gstreamer0.10-ffmpeg

1 sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
2 sudo apt-get update
3 sudo apt-get install gstreamer0.10-ffmpeg

重启MATLAB,如果像我一样还是报错,别慌,继续安装codecs(解码器)

sudo apt install ubuntu-restricted-extra

问题解决

以上是关于求高手:Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown的主要内容,如果未能解决你的问题,请参考以下文章

PHP Startup:gd:Unable to initialize module

struts报错严重: Dispatcher initialization failed Unable to load configuration.

求助,PHP Startup: exif: Unable to initialize module

开机出现Unable to retrive高手解答下!

Tomcat配置多数据源出现Unable to create initial connections

uwsgi部署相关问题Fatal Python error: Py_Initialize: Unable to get the locale encoding