菜鸟求大神帮忙,解决下错误

问题描述

SSH的一个项目,错误如下,请大神帮忙这是struts2的包严重:Dispatcherinitializationfailedjava.lang.RuntimeException:java.lang.RuntimeException:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)atcom.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:514)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:524)atcom.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:555)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:580)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:553)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:227)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atorg.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)atjava.util.concurrent.FutureTask.run(FutureTask.java:138)atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)atjava.lang.Thread.run(Thread.java:619)Causedby:java.lang.RuntimeException:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:502)atcom.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:539)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:589)atcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:537)atcom.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)atcom.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130)...29moreCausedby:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:447)atcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:499)...34moreCausedby:java.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)atjava.lang.reflect.Constructor.newInstance(Constructor.java:513)atcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:426)...35moreCausedby:java.lang.NoClassDefFoundError:org/apache/commons/lang/xwork/StringUtilsatorg.apache.struts2.spring.StrutsSpringObjectFactory.<init>(StrutsSpringObjectFactory.java:104)...40moreCausedby:java.lang.ClassNotFoundException:org.apache.commons.lang.xwork.StringUtilsatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)...41more2015-2-916:27:11org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstartingfilterstruts2java.lang.RuntimeException:java.lang.RuntimeException:java.lang.reflect.InvocationTargetException-Class:com.opensymphony.xwork2.inject.ContainerBuilder$4File:ContainerBuilder.javaMethod:createLine:132-com/opensymphony/xwork2/inject/ContainerBuilder.java:132:-1atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atorg.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1113)atorg.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1671)atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)atjava.util.concurrent.FutureTask.run(FutureTask.java:138)atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)atjava.lang.Thread.run(Thread.java:619)Causedby:java.lang.RuntimeException:java.lang.RuntimeException:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:132)atcom.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:514)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:524)atcom.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:555)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:580)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:553)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:227)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)...19moreCausedby:java.lang.RuntimeException:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:502)atcom.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:539)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:589)atcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:537)atcom.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)atcom.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130)...29moreCausedby:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:447)atcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:499)...34moreCausedby:java.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)atjava.lang.reflect.Constructor.newInstance(Constructor.java:513)atcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:426)...35moreCausedby:java.lang.NoClassDefFoundError:org/apache/commons/lang/xwork/StringUtilsatorg.apache.struts2.spring.StrutsSpringObjectFactory.<init>(StrutsSpringObjectFactory.java:104)...40moreCausedby:java.lang.ClassNotFoundException:org.apache.commons.lang.xwork.StringUtilsatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)...41more2015-2-916:27:11org.apache.catalina.core.StandardContextstartInternal严重:ErrorfilterStart

解决方案

解决方案二:
就这几个jar???不是ssh吗?你的struts2springLibraries呢?
解决方案三:
LZ,这是我的struts2的library。我看到你是分发器初始化出现的错误。能把你的web.xml文件内容贴上来不?
解决方案四:
Causedby:java.lang.ClassNotFoundException:org.apache.commons.lang.xwork.StringUtils可能是xwork.jar包有问题在struts的app文件下的struts2-blank.war的压缩包里的WEB-INF/lib下有这个文件xwork-xxxxx.jar,将这个文件放在你的项目的lib下试一下
解决方案五:
还有一个commons-pool-1.6
解决方案六:
这是web.xml<?xmlversion="1.0"encoding="UTF-8"?><web-appid="WebApp_9"version="2.4"xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><display-name>StrutsBlank</display-name><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/classes/applicationContext.xml</param-value></context-param><filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping><welcome-file-list><welcome-file>index.html</welcome-file></welcome-file-list></web-app>

解决方案七:
Causedby:java.lang.ClassNotFoundException:org.apache.commons.lang.xwork.StringUtils,这都说了没有这个jar包,jar包不完整
解决方案八:
楼主是缺少jar包
解决方案九:
缺少好多包的说。。。http://javafly-zz.iteye.com/blog/1490406看看这个基本对需要的包有介绍
解决方案十:
少JAR包了,myeclipse可以直接引入相关jar包

时间: 2024-11-08 19:49:56

菜鸟求大神帮忙,解决下错误的相关文章

php开发遇到错误 Creating default object from empty value 求大神帮忙解决下

问题描述 php开发遇到错误 Creating default object from empty value 求大神帮忙解决下 代码: 14 define('IN_ECS', true); 15 $smarty->left_delimiter = '<!--{'; 16 $smarty->right_delimiter = '}-->'; 17 require(dirname(__FILE__) . '/includes/init.php'); 18 if ((DEBUG_MOD

求帮助-求大神帮忙解决下这个问题

问题描述 求大神帮忙解决下这个问题 Exception in thread "Thread-15" java.lang.NullPointerException at com.amtch.akka.slave.impl.SlaveServiceImpl.process(SlaveServiceImpl.java:51) at com.amtch.akka.communication.protocol.socket.SocketClient.run(SocketClient.java:5

一个空指针异常问题,求大神帮忙解决下,在线等

问题描述 一个空指针异常问题,求大神帮忙解决下,在线等 public void getQaList(String type, String qid, String qid_min, String cat_id, String tag_id, String page, String qid_top, boolean isShowLoadingDialog) { List<RequestParameter> parameter = new ArrayList<RequestParameter

c语言-小白 求 大神 帮忙找下错误.实在是找不出来了

问题描述 小白 求 大神 帮忙找下错误.实在是找不出来了 #include #include #include int main() { int m , N , i , k , k1,k2=0 , j , temp,flag; int *p; int array[1001]; int array1[1001]; //p=array; //************************************************这个是把数组随机出来 srand(time(NULL)); sc

struct-中缀表达式转换成后缀表达式,求大神帮忙找下错误,谢谢

问题描述 中缀表达式转换成后缀表达式,求大神帮忙找下错误,谢谢 #include #include typedef struct huozhui{ char c; struct huozhui next; }huozhui; void push(huozhui *L,char x) { huozhui *p=(huozhui *)malloc(sizeof(huozhui)); p->c=x; p->next=L->next; L->next=p; } int isoperator

oracle-Oracle触发器的问题求大神帮忙解决

问题描述 Oracle触发器的问题求大神帮忙解决 SQL 错误: ORA-04063: package body "SYSTEM.GLOG" 有错误 各位大神求解 解决方案 待解决的问题,谁帮忙点破下! 解决方案二: 提示说触发器"SYSTEM.SBTAI_ AA26"执行过程报错,请检查 解决方案三: 包有错啊!!!!!SYSTEM.GLOG

scrollview-求大神帮忙解决下,谢谢

问题描述 求大神帮忙解决下,谢谢 ScrollView 中嵌入了一个listview,调用lisetview的setSelection(position)方法无效的问题

实时调试- 电脑一开机就跳出对话框显示.NET FRAMWORK出现错误, 急求大神帮忙解决!

问题描述 电脑一开机就跳出对话框显示.NET FRAMWORK出现错误, 急求大神帮忙解决! 电脑原本没这个问题,昨天卸载了一些如土豆视频之类的应用软件后就出现了此问题,现在QQ,迅雷等账号都无法登陆,显示登陆超时,但浏览器网页可以打开.我试过将.NET FRAMWORK卸载后重装,问题依然无法解决.错误对话框如下: 解决方案 既然是启动出问题,装个CClear之类的工具,把启动项分批禁用,找出引起问题的那个,删除它. 解决方案二: Microsoft.NET没有安装好或者与是系统Microso

android播放器点播放后,出现以下错误,求大神帮忙解决

问题描述 android播放器点播放后,出现以下错误,求大神帮忙解决 解决方案 权限设置没设置,要在配置文件把android.permission.access_network_state这个权限加进去

cmd-windows下telnet问题求大神帮忙解决

问题描述 windows下telnet问题求大神帮忙解决 端口号是通的,但是在cmd下telnet就是这个样子.windows下服务也打开了.求各位大神帮忙看看.谢谢了! 解决方案 80端口一般不是telnet处理的,telnet一般是连接的服务器的23端口 解决方案二: 没问题啊, 只是你调用的格式不对而已. 解决方案三: 待解决的问题,谁帮忙点破下!求大神帮忙解决一个网络设备互联的考试题,谢谢啦.