帮忙看个ssh的问题 tomcat启动的时候错误

问题描述

2014-11-2712:29:51,592INFO[com.opensymphony.xwork2.config.providers.XmlConfigurationProvider]-Parsingconfigurationfile[struts.xml]2014-11-2712:29:51,674ERROR[org.apache.struts2.dispatcher.Dispatcher]-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:507)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:517)atcom.opensymphony.xwork2.inject.ContainerImpl$9.call(ContainerImpl.java:548)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:574)atcom.opensymphony.xwork2.inject.ContainerImpl.getInstance(ContainerImpl.java:546)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:197)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)atorg.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)atorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4651)atorg.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)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:495)atcom.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:532)atcom.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:581)atcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:530)atcom.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)atcom.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:130)...26moreCausedby:java.lang.RuntimeException:java.lang.reflect.InvocationTargetExceptionatcom.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:440)atcom.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:492)...31moreCausedby: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:419)...32moreCausedby:java.lang.NoClassDefFoundError:org/springframework/web/context/WebApplicationContextatorg.apache.struts2.spring.StrutsSpringObjectFactory.<init>(StrutsSpringObjectFactory.java:80)...37moreCausedby:java.lang.ClassNotFoundException:org.springframework.web.context.WebApplicationContextatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)atjava.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)...38more

解决方案

解决方案二:
貌似没加载到你的配置文件啊!!
解决方案三:
看下你的web。xml中<filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class><init-param><param-name>actionPackages</param-name><param-value>com.cmcc</param-value></init-param></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping>有没有配对然后看下struts.xml是否规范
解决方案四:
貌似是struts.xml没配置正确
解决方案五:
一看就知道web.xml文件配置错误、监听都没有配置、还有context没有配置、
解决方案六:
Causedby:java.lang.NoClassDefFoundError:org/springframework/web/context/WebApplicationContextatorg.apache.struts2.spring.StrutsSpringObjectFactory.<init>(StrutsSpringObjectFactory.java:80)...37moreCausedby:java.lang.ClassNotFoundException:org.springframework.web.context.WebApplicationContextatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)从jar配置文件看看是不是少了。

时间: 2025-01-20 18:18:28

帮忙看个ssh的问题 tomcat启动的时候错误的相关文章

ssh事务-SSH配置事务tomcat启动报错问题

问题描述 SSH配置事务tomcat启动报错问题 tomcat启动报错: 严重: Exception sending context initialized event to listener instance of class org.apache.struts.plugin.PluginContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with

请各位帮忙看个SSH问题

问题描述 2011-3-1616:11:33org.apache.catalina.core.StandardContextlistenerStart严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException

SSH框架整合 tomcat启动报错的异常

问题描述 严重:Exceptionsendingcontextinitializedeventtolistenerinstanceofclassorg.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanDefinitionStoreException:Failedtoloadbeanclass:com.accp.action.InformationsAction;neste

tomcat启动时候的错误

问题描述 工程部署到我本机没有任何问题,但是部署到hp的服务器上就有错误,启动不起来,错误信息如下:rootofBeanFactoryhierarchyatorg.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:349)atorg.springframework.beans.factory.support.Abstr

tomcat启动时报log4j错误

问题描述 java.lang.RuntimeException: init log4j logger errorat com.longshine.indigo.component.logging.impl.Log4jAppender.initLogger(Unknown Source)at com.longshine.indigo.component.logging.LoggerFactory.setLoggerAppenderClassName(Unknown Source)at com.lo

启动tomcat报奇怪的错误,求拯救,在线等

问题描述 启动tomcat报奇怪的错误,求拯救,在线等 eclipse做SSH集成中,刚写Struts2,还没写几笔呢,代码都是没错的,然后启动了下tomcat就不行了,报这个异常java.lang.NoClassDefFoundError: org/apache/commons/io/FileUtils,百度了半天找不到什么解决办法,很多回答说是jar有问题,我于是把jar都删除了,去官网上新下载了一份热气腾腾的新jar,拷回去再启动tomcat依旧是这个报错,这是为什么啊? 上图提示有个ja

tomcat-Tomcat启动报如下错误:

问题描述 Tomcat启动报如下错误: 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/hckaccountmana

tomcat eclipse启动tomcat失败了,刚开始学这个,希望有人帮忙看下

问题描述 tomcat eclipse启动tomcat失败了,刚开始学这个,希望有人帮忙看下 刚开始在eclipse里面安装tomcat,tomcat放在F盘下,前面添加的步骤都按照网上教程弄了,应该没有什么错误,不过在写好代码,准备要运行的时候,不知道如何操作, 下面几张图片 不知道哪里错误了,弹出红框. 解决方案 你装的哪种tomcat?集成到eclise的tomcat不需要安装,解压后在Windows-->perferences配置一下就好了.需要安装的那个它启动是通过目录下面有个moni

spring mvc-我用springMVC写了一个web项目,加载到tomcat8上后启动出现此异常,请懂得的来帮忙看下

问题描述 我用springMVC写了一个web项目,加载到tomcat8上后启动出现此异常,请懂得的来帮忙看下 异常信息如下: 严重: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/spring_mvc]] at or