2013年9月17日星期二

struts2 Unable to load configuration

tomcat start is always being given , jar files from my struts2 app file copied , but the start is still being given
Serious : 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
serious : Error in resourceStart ()
2013-9-16 19:18:41 org.apache.catalina.core.StandardContext startInternal
serious : Error getConfigured
2013-9-16 19:18:41 org.apache.catalina.core.StandardContext startInternal
serious : Context [/ upload] startup failed due to previous errors
2013-9-16 19:18:42 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
Information : Parsing configuration file [struts-default.xml]
2013-9-16 19:18:42 org.apache.struts2.dispatcher.Dispatcher error
serious : Dispatcher initialization failed

This in the end how to solve ah , thank you kind !
------ Solution ---------------------------------------- ----
I do not know specifically where you are wrong, but you should be imported jar is incorrect, you can try to go to the wrong tune . See you posting wrong time to tell you of the time I guess you did not even think for themselves , directly Qiujiao ! Suggested the main floor to try to solve their own problems ,
------ Solution ----------------------------- ---------------
amount , instead of telling you that the folder does not exist yet , to see what uses that path
------ Solution - -------------------------------------------
you determine your hard on this path ?

D: \ yang.files \ SkyDrive \ JavaWebWorkspace \ file_upload \ WebRoo
------ Solution ------------------- -------------------------
jar can not be wrong , but you may want to add the jar , and there may be your jar package plus a little,
------ For reference only ----- ----------------------------------
Thank you , problem solving , or packet error problems cited in the dtd declaration struts.xml version defined in the imported version of the package is not the same .

没有评论:

发表评论