码迷,mamicode.com
首页 > 其他好文 > 详细

实习第4天

时间:2015-08-03 18:20:06      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:

早上在看 log4j详解与实战 http://www.iteye.com/topic/378077

 

 

在添加struts2中,使用JDK1.8  

会一直提示

The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

哎版本还是不要用这么高的好。

 

装ecplise J2ee的时候用也Tomcat 最高也就7.0版本

 

技术分享


Unable to load configuration. - action - file:/D:/workspace/Struts2_0100/WebRoot/WEB-INF/classes/struts.xml:38:66
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:273)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
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)

//这个地方很关键,因为我一直我修改config/struts.xml里面的action,tomcat一直未能反应过来

 

Caused by: Action class [testAction] not found - action - file:/D:/workspace/Struts2_0100/WebRoot/WEB-INF/classes/struts.xml:38:66
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
... 16 more

 

project\build\classes\    文件夹存在类编译之后的文件,

应该是Tomcat好像抽风了,一直读取classes里面的struts.xml文件,

解决方法:

把Tomcat里的项目先remove,在把tomcat也删除了,在把classes里的文件全删除了.

把tomcat的缓存也清除掉 tomcat/work

File not found: F:\javaWorkSpace\edu.hainu.knowledge\build\classes\struts.xml.

 

 

今天又多了一点感悟,最好的笔记就是一个好的工程+上许多需要注意的注释。

实习第4天

标签:

原文地址:http://www.cnblogs.com/linkarl/p/4699859.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!