在线等struts问题

来源:百度知道 编辑:UC知道 时间:2024/05/15 10:37:46
2009-4-8 21:41:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Unable to locate configuration files of the name /WEB-INF/classes/struts.xml, skipping
2009-4-8 21:41:11 com.opensymphony.xwork2.util.logging.commons.CommonsLogger info
信息: Parsing configuration file [/WEB-INF/classes/struts.xml]
2009-4-8 21:41:11 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
com.opensymphony.xwork2.inject.DependencyException: com.opensymphony.xwork2.inject.ContainerImpl$MissingDependencyException: No mapping found for dependency [type=com.opensymphony.xwork2.ObjectFactory, name='default'] in public void com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.setObjectFactory(com.opensymphony.xwork2.ObjectFactory).
at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMembers(ContainerImpl.java:144)
at com.opensymphony.xwork2.inject.ContainerImpl.addInjectorsForMethods(Con

从错误信息看是struts.xml的问题。
建议你先检查一下jar包是否完全 出现Exception starting filter struts2 一般都和org.apache.struts2.dispatcher.FilterDispatcher类有关
然后简化功能按照Struts提供的实例配置xml文件排除错误。

struts.xml XML文件要用<> </> 关合

看你的错误是struts.xml文件有问题!
好好检查一下!

首先要检查包文件,可能是version的问题,web.xml 中不用配置config参数,只要放在src目录下,struts2会找到struts.xml这个配置文件,