0
當我嘗試運行eclispe打我的Maven項目,我遇到此異常:Eclipse中運行Maven項目:java.lang.IllegalArgumentException異常:
java.lang.IllegalArgumentException: Document base E:\calypso-dev-package\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\BookSys does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4320)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4489)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
有人可以給我一些幫助?
謝謝。現在沒有例外。 – huang 2013-05-15 07:36:49
@huang如果你喜歡我的回答,爲什麼不把它接受呢? – 2013-05-15 22:54:56
感謝Pradeep Pati。一年後,你爲我節省了很多時間。 – Jorgeska 2016-07-26 16:51:50