- 浏览: 23221 次
- 性别:
- 来自: 烟台
最新评论
Unable to load configuration. - [unknown location]
问题描述:
严重: Dispatcher initialization failed
Unable to load configuration. - [unknown location]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
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.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:441)
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:412)
at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:327)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 16 more
一月 23, 2018 10:25:39 上午 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:502)
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.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Unable to load configuration. - [unknown location]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
... 14 more
Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:441)
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:412)
at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:327)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 16 more
解决方法:在struts中找到struts2-spring-plugin-2.3.15.jar包并引用。与struts.xml中的如下配置有关系,
<!-- 设置struts的对象工厂,由spring进行创建 (更换Struts2的工厂)-->
<!-- 实际上这个常量不配置也可以,如果项目中使用了struts2-spring-plugin-2.3.15.jar那么可以不用配置。 如果使用了其他的第三方plugin,建议明确配置struts2的对象工厂 -->
<constant name="struts.objectFactory" value="spring" />
严重: Dispatcher initialization failed
Unable to load configuration. - [unknown location]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
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.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:441)
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:412)
at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:327)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 16 more
一月 23, 2018 10:25:39 上午 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:502)
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.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4958)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Unable to load configuration. - [unknown location]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
... 14 more
Caused by: Cannot locate the chosen ObjectFactory implementation: spring - [unknown location]
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:441)
at org.apache.struts2.config.BeanSelectionProvider.alias(BeanSelectionProvider.java:412)
at org.apache.struts2.config.BeanSelectionProvider.register(BeanSelectionProvider.java:327)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 16 more
解决方法:在struts中找到struts2-spring-plugin-2.3.15.jar包并引用。与struts.xml中的如下配置有关系,
<!-- 设置struts的对象工厂,由spring进行创建 (更换Struts2的工厂)-->
<!-- 实际上这个常量不配置也可以,如果项目中使用了struts2-spring-plugin-2.3.15.jar那么可以不用配置。 如果使用了其他的第三方plugin,建议明确配置struts2的对象工厂 -->
<constant name="struts.objectFactory" value="spring" />
发表评论
-
ClassNotFoundException: org.springframework.web.context.ContextLoaderListener解决
2018-04-13 11:22 1461在搭建的时候,运行Tomcat就如下错误。错误描述:严重: ... -
ApplicationEventMulticaster not initialized和LifecycleProcessor not initialized解决
2018-04-13 10:49 728错误描述:java.lang.IllegalStateExce ... -
自定义404错误页面
2018-01-29 15:39 345为了让程序具有更好 ... -
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
2018-01-25 15:20 1386[11-15 11:34:44][localhost-st ... -
No result defined for action xxx.EmployeeAction and result xxx
2018-01-24 18:29 604警告: Could not find action or r ... -
spring注解@Autowired、@Resource的区别
2018-01-24 16:11 5641、@Autowired与@Resource都可以用来注入 ... -
spring注解@Component、@Repository、@Service、@Controller的区别
2018-01-24 15:48 475现在Web应用程序绝大多数都是采用了经典的三层分层结构,因 ... -
spring注解@Service注解的使用
2018-01-24 14:36 2668要说明@Service注解的使用,就得说一下我们经常在s ... -
Struts2中Action由Struts2自己管理与由Spring管理的区别(转自别人)
2018-01-24 10:46 508struts2单独使用时,Action实例由struts2 ... -
Disabling contextual LOB creation as createClob() method threw error
2018-01-23 10:57 2158问题描述(红色java.lang.reflect.Invoca ... -
在搭建过程中需要注意的一些小细节梳理
2018-01-23 09:54 362我是在Eclipse的Mars版本中进行搭建的,针对整合过程中 ... -
未找到类: org/apache/commons/io/FileUtils和org.apache.commons.lang3.StringUtils
2018-01-23 10:12 1541问题描述: 警告: Could not create JarE ... -
java.lang.NoClassDefFoundError: org/hibernate/engine/SessionFactoryImplementor
2018-01-23 08:48 775问题描述: 严重: Context initializatio ... -
Bean property 'lobHandler' is not writable or has an invalid setter method.
2018-01-22 18:07 1225错误描述 严重: Context initialization ... -
java.lang.NoClassDefFoundError: Lorg/hibernate/cache/CacheProvider;问题解决
2018-01-22 16:42 1484搭建SSH(Struts2、Spring3、Hibernate ...
相关推荐
Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 1. 下载文件native.rar 并解压 2. 用SecureFX 上传, 替换native目录下文件,选择二进制文件上传。 3. ...
在Android Studio中遇到"Unable to load class ‘javax.xml.bind.JAXBException‘"的错误,通常是由于Java运行时环境(JRE)或开发工具包(JDK)与项目的兼容性问题导致的。`javax.xml.bind.JAXBException`是Java的...
./code --install-extension MS-CEINTL.vscode-language-pack-zh-hans-1.41.1.vsix
Java 1.8.0 OpenJDK 1.8.0.402.b06-1.el7_9.x86_64.rpm 是一个针对Linux系统的Java开发工具包的离线升级版本。这个包特别适用于那些无法或不便在线更新Java环境的系统,比如在没有互联网连接或者网络环境受限的...
解决win7 32 位Unable to load R3 module ...VBoxDD.dll (VBoxDD):GetLastError=1790,把C:\Windows\System32下themeservice.dll,themeui.dll,uxtheme.dll 3个文件替换就OK。
搭建hadoop 环境时遇到启动异常告警问题 “WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable” 上来不多说,百度收集些相关...
解决 error: Unable to find vcvarsall.bat 配置文件。 安装vs后,根据vs版本修改VS90COMNTOOLS对应的数字(我安装的是vs2013),安装了vs2013,测试不同的机子上使用配置文件解决问题
- ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....
will need to be sent to Microsoft as per the normal process. However, a log entry will be added to the normal BurnInTest log. - Changes to trace logging to reduce activity when trace logging is not...
ubuntu-22.04-preinstalled-server-arm64+raspi.img.xz http://cdimages.ubuntu.com/ubuntu/releases/22.04/release/
**Nexus概述** Nexus是Sonatype公司推出的一款开源软件仓库管理器,广泛应用于Java开发领域,特别是Maven项目的依赖管理。Nexus作为Maven私服,可以作为一个内部的、受控的存储库,用于存储、管理和分发组织的构建...
glog.overlay-x64_v120_Debug_dynamic -Version 0.3.3.0 OpenCV.overlay-x64_v120_Debug -Version 2.4.10 OpenCV.overlay-x64_v120 -Version 2.4.10 glog.overlay-x64_v120_dynamic -Version 0.3.3.0
解决问题:Unable to download ‘libfreeimage-3.16.0-linux64.so‘.,直接传到/root/.imageio/freeimage/
标题“mysql Unable to lock ./ibdata1, error: 11”所反映的问题是MySQL数据库在运行过程中遇到了一个常见的错误,提示无法锁定数据文件`ibdata1`,错误代码11。这个错误通常与数据库的表空间管理、并发操作或者...
标题 "Unable to access HASP SRM Run-time Environment? (H0033)" 提到的问题是用户在尝试运行一个依赖于HASP SRM(Sentinel Runtime Environment)的应用程序时遇到了错误代码H0033。这个错误通常表示系统无法正确...
今天给人配置环境, 遇到了 “unable to start debugging.unable to establish a connetcion to GDB” 这个问题, launch 和 tasks 都完全没有问题, 都可以运行 code-runner, 就是不能连接 gdb 启动调试, 这可真是奇葩...
ocr tesseract windows安装包 tesseract-ocr-setup-3.01.-1.exe tesseract-ocr-setup-3.02.02.exe Linux 安装包 tesseract-ocr-3.02.02.tar.gz及安装需要的leptonica-1.68.tar.gz Linux上需要的英文语言包 eng....
部署struts web项目到Tomcat,出错Unable to load configuration. - action,部署另外的web项目依然出错,甚至错误中的提示还是上一个项目名,愕然!!不过解决了
# configuration written to /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/.config # make:离开目录“/home/wwt/linux_r16/lichee/buildroot” make:进入目录'/home/wwt/linux_r16/lichee/...
Unable to load configuration. - [unknown location] ``` 该错误提示通常伴随着一系列的堆栈跟踪信息,指向了问题的具体原因。例如,在提供的部分内容中可以看到以下堆栈跟踪: ``` Caused by: Unable to load ...