struts2 Unable to load configuration
tomcat启动总是报错,jar文件是我从struts2的app文件中拷贝的,但是启动仍然报错
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base D:\yang.files\SkyDrive\JavaWebWorkspace\file_upload\WebRoot does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:138)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:5055)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5235)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)
2013-9-16 19:18:41 org.apache.catalina.core.StandardContext startInternal
严重: Error in resourceStart()
2013-9-16 19:18:41 org.apache.catalina.core.StandardContext startInternal
严重: Error getConfigured
2013-9-16 19:18:41 org.apache.catalina.core.StandardContext startInternal
严重: Context [/upload] startup failed due to previous errors
2013-9-16 19:18:42 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts-default.xml]
2013-9-16 19:18:42 org.apache.struts2.dispatcher.Dispatcher error
严重: Dispatcher initialization failed
这个到底该怎么解决啊,谢谢指点!
------解决方案--------------------我不知道你具体哪里错了,但是应该是你导入的jar不正确,你可以自己试着去调错。看你出错的时间跟你发帖的时间我猜你根本就没自己思考,直接求教的!建议楼主要试着自己解决问题、、、
------解决方案--------------------额,不是告诉你那个文件夹不存在了吗,看看什么地方用到了那个路径
------解决方案--------------------