struts2.0-struts2配置启动报错

问题描述

struts2配置启动报错

按照 视频导入了 struts2基础jar包:根据报错提示最终放了8个jar包

启动的时候myEclipse控制台报错:
2015-9-14 14:19:42 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2015-9-14 14:19:42 org.apache.catalina.core.StandardContext start
严重: Context startup failed due to previous errors
2015-9-14 14:19:42 org.apache.catalina.core.StandardHostDeployer install
信息: Installing web application at context path from URL file:D:Tomcat5.0.28struts2webappsROOT
2015-9-14 14:19:42 org.apache.catalina.core.StandardHostDeployer install
用的环境是 jdk1.5,tomcat5.5。
按照这个地址修改的还是不行http://zhidao.baidu.com/link?url=1uB-vLlF2QM7j912Ha9k9vq_bwTpW_Oby3cNFC0xecGxkkmG5P-zLKxQ4-LMAOR42t-pDMVbEHOY393a4vqCrK
在tomcat的log中打印下面的错误:

解决方案

2015-09-14 13:31:21 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
2015-09-14 13:31:22 StandardContext[/struts2]Exception starting filter struts2
java.lang.reflect.InvocationTargetException - Class: com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector
File: ContainerImpl.java
Method: inject
Line: 301 - com/opensymphony/xwork2/inject/ContainerImpl.java:301:-1
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:493)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:79)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3698)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4349)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:301)
at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:438)
at com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.java:207)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:51)
at com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:93)
at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:487)
at com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java:484)
at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:584)
at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:484)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapContainer(DefaultConfiguration.java:351)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:235)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:967)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:435)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:479)
... 49 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:299)
... 63 more
Caused by: java.lang.ExceptionInInitializerError
at com.opensymphony.xwork2.ognl.OgnlValueStackFactory.setContainer(OgnlValueStackFactory.java:84)
... 68 more
Caused by: java.lang.IllegalArgumentException: Javassist library is missing in classpath! Please add missed dependency!
at ognl.OgnlRuntime.(OgnlRuntime.java:168)
... 69 more
Caused by: java.lang.ClassNotFoundException: javassist.ClassPool
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at ognl.OgnlRuntime.(OgnlRuntime.java:165)
... 69 more

解决方案二:

?
九月 13, 2014 1:33:02 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found ......
答案就在这里:配置Struts2启动的时候报错
----------------------

时间: 2025-01-27 15:03:01

struts2.0-struts2配置启动报错的相关文章

windows 服务-(急)win7 C# .NET Framework 4.0 windows服务启动报错1053

问题描述 (急)win7 C# .NET Framework 4.0 windows服务启动报错1053 我本地有两个windows服务,一个是2.0框架,一个4.5框架.2.0框架的服务用对应的方法去安装启动没有任何问题(C:WindowsMicrosoft.NETFrameworkv2.0.50727InstallUtil.exe).4.5框架的项目用4.0(C:WindowsMicrosoft.NETFrameworkv4.0.30319InstallUtil.exe)安装成功,启动报10

struts2+spring+mybatis 程序不报错,但是数据无法写入数据库

问题描述 struts2+spring+mybatis 程序不报错,但是数据无法写入数据库 执行到service 无法写入数据库,不报错.代码如下: <?xml version=""1.0"" encoding=""utf-8"" ?><!DOCTYPE mapper PUBLIC ""-//mybatis.org//DTD Mapper 3.0//EN""http:/

java-spring中配置了一个系统调度控制器调用类shop_stat 启动报错

问题描述 spring中配置了一个系统调度控制器调用类shop_stat 启动报错 spring配置文件 applicationContext-configuration.xml 配置如下: <!-- 系统调度控制器 --> <bean id="statTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <!--

tomcat-JAVA问题:初学Struts2框架遇到的浏览器报错

问题描述 JAVA问题:初学Struts2框架遇到的浏览器报错 现在是验证Struts2的参数接收,但是页面直接就显示不出来 一:JSP页面----------> 二:XML配置----------> 三:控制器类--------------> 四:TomCat没有报错,浏览器报404找不者 解决方案 你的页面用的action路径Can/user_save,而你的Action配置路径是C_method的名称,不匹配啊. 修正你的action的配置,统一一下呗. 解决方案二: 你的问题是s

配置-cruisecontrol集成SVN启动报错?

问题描述 cruisecontrol集成SVN启动报错? 用CC每日构建是启动配置报错只要是SVN自动更新代码 下面是错误信息 net.sourceforge.cruisecontrol.CruiseControlException: svn failed with exception at net.sourceforge.cruisecontrol.util.CommandExecutor.executeAndWait(Com mandExecutor.java:115) at net.sou

servlet-Red5-1.0集成到eclipse中启动报错

问题描述 Red5-1.0集成到eclipse中启动报错 2015-7-4 19:09:27 org.apache.catalina.core.ApplicationContext log 严重: StandardWrapper.Throwable org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [clas

jboss 6.1.0 final 启动报错

问题描述 jboss 6.1.0 final 启动报错 13:14:41,967 INFO [STDOUT] 最底层持久化类com.zhl.ejb.EjbDataBase 的 executeQuery 方法出错,出错的行数为: 394 行.执行SQL语句异常,具体的错误信息是:Unknown column 'c.prequery' in 'where clause' 13:14:41,967 ERROR [STDERR] javax.ejb.EJBException: com.mysql.jdb

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

急 weblogic 10.3.6.0启动报错

问题描述 急 weblogic 10.3.6.0启动报错 TOMCAT 运行正常 WEBLOGIC 启动就报错 下面是错误信息: weblogic.application.ModuleException: [HTTP:101216]Servlet: "spring" failed to preload on startup in Web application: "kbyxbj_mvc". org.springframework.beans.factory.Bean