`
Suzh.Q
  • 浏览: 19634 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

Cannot locate the chosen ObjectFactory implementation: spring - [unknown locatio

    博客分类:
  • SSH
阅读更多
  1. 解决办法:  
  2. 少jar包,添加struts2-spring-plugin- xxx.jar;  
  3. struts.xml中,加上一配置:<constant name="struts.objectFactory" value="spring"/>。 
严重: Dispatcher initialization failed
Unable to load configuration. - [unknown location]
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)
	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.deployDescriptor(HostConfig.java:675)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
	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(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:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
	at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:391)
	at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:362)
	at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:288)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
	... 31 more
2013-3-25 18:01:38 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter Struts2
Unable to load configuration. - [unknown location]
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:483)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)
	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.deployDescriptor(HostConfig.java:675)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
	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(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:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: Unable to load configuration. - [unknown location]
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:71)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
	... 29 more
Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
	at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:391)
	at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:362)
	at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:288)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:68)
	... 31 more

 

分享到:
评论

相关推荐

    打开vivado的.xpr工程文件报错Cannot locate target loade

    ### 打开Vivado的.xpr工程文件报错Cannot Locate Target Loader的解决方案 #### 问题背景 在使用Xilinx Vivado设计工具进行FPGA/CPLD开发时,经常会遇到各种各样的问题,其中之一就是在尝试打开一个`.xpr`工程文件...

    2021版新高考英语一轮复习Module2DevelopingandDevelopedCountries课件外研版必修3

    - **位置**:location (由locate衍生) - **位于**:located (形容词) - **交通工具**:transport (名词) - **交通**:transportation (名词) - **工业的**:industrial (由industry衍生) - **污染**:pollute ...

    专题06阅读理解之史地人文类--备战2021届高考英语二轮复习题型专练(通用版)【解析版】.doc

    locate:设置于;location:地点 - native:本地的 - raise:饲养;提高 - range:山脉;排列;延伸 - ruin:毁坏;废墟 - strike:侵袭;打击 - threaten:威胁;threat:威胁 - abolish:废除 - ...

    vsftp连接错误cannot locate user entry:vsftpd

    系统环境为CentOS6,使用yum安装的vsftp,配置为虚拟用户登录模式,在各项配置完成后,使用FlashFxp连接时,出现连接错误,错误提示如下: 代码如下:500 OOPS: cannot locate user entry:vsftpd 用命令 groups vsftpd ...

    linux编译android内核源码问题

    development/build/sdk.atree:229: couldn't locate source file: framework/layoutlib-tests.jar development/build/sdk.atree:230: couldn't locate source file: system/app/ConnectivityTest.apk development...

    ubuntu终端命令大全

    (2)locate 命令名 * 链接:(1)建立 hard 链接:ln 来源文件 链接文件 (-d:创建目录链接);(2)建立符号链接:ln -s 来源文件 链接文件 二、驱动挂载类 * 检查硬盘使用情况:df -T -h * 检查磁盘分区:fdisk ...

    FlexBuilder运行项目报Flex Builder cannot locate the required version of Flash Player

    标题 "FlexBuilder运行项目报Flex Builder cannot locate the required version of Flash Player" 描述了一个常见的问题,即在使用FlexBuilder开发Flex应用程序时,由于找不到合适的Flash Player版本,导致项目无法...

    perl-Data-Dumper-2.145-3.el7.x86_64.rpm

    RHEL 7.1安装MySQL 5.6的依赖包:perl-Data-Dumper-2.145-3.el7.x86_64.rpm ------------------------------------------------------------------------------------

    Pro Android C++ with the NDK.apress.2012

    Pro Android C++ with the NDK Copyright ? 2012 by Onur Cinar ISBN-13 (pbk): 978-1-4302-4827-9 ISBN-13 (electronic): 978-1-4302-4828-6 Content: Chapter 1: Getting Started with C++ on Android Chapter 2: ...

    数据结构活期储蓄账目管理(c语言)

    ### 数据结构活期储蓄账目管理(C语言) #### 问题背景 在现代银行系统中,活期储蓄账目的管理是非常重要的一部分。由于储户的开户、销户、存入和支出等活动非常频繁,因此需要设计一个高效且易用的活期储蓄账目...

    instantclient-basic-macos.x64-11.2.0.4.0

    sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): image not found". See ...

    X64 和 X86 Debuggers And Tools-x86_en-us.msi

    《X64与X86调试器及其工具详解——基于Qt与VS的调试环境搭建》 在软件开发过程中,调试工具扮演着至关重要的角色,尤其是对于深入理解代码执行流程、定位问题以及优化性能来说。本文将围绕“X64 Debuggers And ...

    LOCFLOW-CookBook.pdf

    在LOC-FLOW中,集成了多种流行的地震定位算法,包括PhaseNet、REAL、VELEST、HYPOINVERSE、hypoDD、GrowClust、FDTCC和Match&Locate等,适用于从局部到区域规模的地震目录构建。该Workflow的主要作者是Miao Zhang和...

    kotlin-compiler-embeddable-1.3.61.jar

    官网版:kotlin-compiler-embeddable-1.3.61

    Linux操作命令四.doc

    本文将详细介绍三个常用的 Linux 命令:which 命令、whereis 命令和 locate 命令。 一、which 命令 which 命令是一个基本的 Linux 命令,它用于确认系统中是否安装了指定的软件。例如,如果用户想知道是否安装了 ...

    系统稳定性——Dubbo 常见错误及解决方法1

    5. **启动时Configuration problem: Unable to locate SpringNamespaceHandler for XML schema** 这个错误表明Spring无法找到Dubbo的XML配置解析处理器。可能是因为缺少Dubbo的jar包,或者存在ClassLoader隔离(如...

    instantclient_10_2和instantclient_11_2

    问题一.cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: 解决一:添加如下代码,指定环境:os.environ['path'] = r'instantclient_10_2路径‘ 问题二:cx_Oracle.DatabaseError:...

    中国计算机学会推荐国际学术刊物与会议

    - **全称**: The Journal of Supercomputing - **出版社**: Springer - **网址**: [未给出] - **简介**: TJS 侧重于超级计算领域的研究,包括高性能计算、大规模并行处理等方面。 通过上述介绍可以看出,...

    文件查找.pdf

    在Linux系统中,有两个主要的命令用于查找文件:`locate`和`find`。这两个工具各有特点,适用于不同的场景。 `locate`是一个非实时查找工具,它依赖于一个预先生成的文件索引数据库 `/var/lib/mlocate/mlocate.db`...

Global site tag (gtag.js) - Google Analytics