`
zhanjianhua
  • 浏览: 89485 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Caught exception while loading file struts-default.xml - Class: java.security.Ac

 
阅读更多

信息: Initializing Spring root WebApplicationContext
2012-9-10 11:03:42 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts
Caught exception while loading file struts-default.xml - Class: java.security.AccessControlContext
File: AccessControlContext.java
Method: checkPermission
Line: 374 - java/security/AccessControlContext.java:374:-1
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:839)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
 at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
 at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
 at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
 at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
 at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
 at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
 at java.security.AccessController.doPrivileged(Native Method)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
 at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
 at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
 at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
 at org.apache.catalina.core.StandardService.start(StandardService.java:516)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission file:\E:\Host\web088585\ROOT\WEB-INF\lib\struts2-core-2.0.11.jar!\struts-default.xml read)
 at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
 at java.security.AccessController.checkPermission(AccessController.java:546)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
 at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
 at java.io.File.exists(File.java:731)
 at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:106)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:824)
 ... 37 more
2012-9-10 11:03:42 org.apache.catalina.core.StandardContext start
严重: Error filterStart

 

今天启动TOMCATE ,发现日志报上面的错误

这种错误一般出现jar冲突或jar版本有问题

最后将xwork-2.0.4.jar替换成xwork-2.0.7.jar,问题终于解决

分享到:
评论

相关推荐

    tomcat部署多个项目.pdf

    `Caught exception while loading file struts-default.xml - [unknown location]` 这个异常是因为 Struts 框架中的配置文件 `struts-default.xml` 无法正确地加载。 解决方法 2:配置 Struts 框架 要解决这个...

    配置struts2常见错误

    Caught exception while loading file struts-default.xml - [unknown location] ``` **解决方法**: 这个错误通常由库文件冲突引起,比如多个版本的`xml-apis.jar`或`xerces-2.6.2.jar`文件同时存在。为了解决这个...

    不规则动词过去式和过去分词练习题-4页.pdf

    14. catch - 过去式: caught, 过去分词: caught 15. build - 过去式: built, 过去分词: built 16. deal - 过去式: dealt, 过去分词: dealt 17. feed - 过去式: fed, 过去分词: fed 18. feel - 过去式: felt, 过去...

    java调用net开发的webservice实例

    javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag ...

    java基础知识测试题

    根据提供的文件信息,这里将对每一道题目进行详细的解析,并解释相关的 Java 基础知识点。 ### 1. Java 的关键字选择题 **题目:** 下列哪个是 Java 中的关键字? - A. sizeof - B. abstract - C. NULL - D. ...

    Could not perform operation -- unexpected exception. Unexpected failure (8000ff

    在尝试使用INTouch 2014 R2 SP1版本软件在Windows 10操作系统上创建新型应用程序时,用户遇到了“Could not perform operation -- unexpected exception. Unexpected failure (8000ffff)”这一错误提示。该问题出现...

    Java - The Well-Grounded Java Developer

    ### Java - The Well-Grounded Java Developer #### PART 1: DEVELOPING WITH JAVA 7 **1. Introducing Java 7** - **Overview**: This section provides a comprehensive introduction to the new features and ...

    高中三年级英语上学期语法-动词短语.doc

    - **be caught in**: 陷入困境,如被困在雨中。 - **catch up with**: 追赶上,如追上慢跑者。 6. **cut** 短语: - **cut back (on)**: 削减,如减少开支,或修剪植物。 - **cut down (on)**: 砍倒树木,减少...

    新东方六级高频词组.doc

    3. catch on - 理解或流行,例如:The new concept quickly caught on among young people. 4. cling to - 坚持或依赖,例如:He clung to the hope that she would return. D部分: 1. deficient in - 缺乏,例如...

    湖南省衡阳县2018 2019学年高二英语12月月考试题(扫描版).doc

    caught - 66. to stop - 67. riding - 68. a - 69. mine - 70. suddenly 5. **短文改错**: 这是一种检查学生语法和用词准确性的练习,下面是给出的错误及其纠正: - 1. 将"Get"改为"Getting",动名词形式...

    广东天河中学2021高考英语语法一轮复习基础训练:定语从句02 Word版含答案.docx

    5. **题目**:When he was working there he caught a serious illness from _______ efforts he still suffers. - A. which - B. that - C. whose - D. what - **解析**:此题考查关系代词的使用。“whose”...

    高中英语不规则动词过去式和过去分词表格格-8页.pdf

    20. catch(捕捉): 过去式caught,过去分词caught 21. choose(选择): 过去式chose,过去分词chosen 22. come(来): 过去式came,过去分词come 23. cost(花费): 过去式cost,过去分词cost 24. cut(割): 过去...

    AndroidPhotoView

    In order to prevent this exception (which typically occurs when you zoom out), take a look at HackyDrawerLayout and you can see the solution is to simply catch the exception. Any ViewGroup which uses...

    VC-P-P-exception-handling-documents.zip_异常处理

    "VC/C++源码, FileException" 提供了一个学习VC++异常处理机制的实例,这对于初学者来说是极具价值的。 在C++中,异常处理是通过`try`、`catch`和`throw`关键字来实现的。当程序在`try`块中遇到无法正常处理的错误...

    初中中考复习易混淆动词短语汇总及练习.doc

    43. ** Catch a cold** - 感冒,如:I think I caught a cold, I feel so weak. 44. ** Change one's mind** - 改变想法,如:She changed her mind about going to the party. 45. ** Change…into…** - 把......

    [Content_Types].xml[Content_Types].xml[Content_Types].xml

    [Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml[Content_Types].xml

    java.net.SocketException Connection reset 解决方法

    "java.net.SocketException Connection reset 解决方法" 在 Java 编程中,SocketException 是一种常见的异常,特别是在网络编程中。Conexion reset by peer 是一种特殊的 SocketException,它发生在客户端和服务器...

    九年级英语上册Unit5LookintoScienceLesson28TheStudyofLivingThings课时训练新版冀教版

    Fantastic facts about the butterfly have caught Dr. Taylor's attention. - 2. 多达 2.3 亿只蝴蝶在此过冬。Here, up to as many as 230 million butterflies spend the winter. - 3. 返回到南方的蝴蝶是前往...

    java面向对象基础练习

    根据提供的文件信息,我们可以归纳和解析出多个与Java面向对象编程相关的知识点,下面将逐一进行详细阐述。 ### 1. Switch 语句的理解 - **题目解析**:给出的示例代码展示了如何使用 `switch` 语句进行条件判断。...

Global site tag (gtag.js) - Google Analytics