问题描述
严重:ErrorstartingstaticResourcesjava.lang.IllegalArgumentException:DocumentbaseD:workspace3.6zxyg-corewebappdoesnotexistorisnotareadabledirectoryatorg.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)atorg.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4048)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4217)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)atorg.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:556)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:491)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:722)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:583)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-3113:36:22org.apache.catalina.core.StandardContextstart严重:ErrorinresourceStart()2011-3-3113:36:22org.apache.catalina.core.StandardContextstart严重:ErrorgetConfigured2011-3-3113:36:22org.apache.catalina.core.StandardContextstart严重:Context[/wlps]startupfailedduetopreviouserrors2011-3-3113:36:22org.apache.catalina.core.StandardContextstop信息:Containerorg.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/wlps]hasnotbeenstarted2011-3-3113:36:22org.apache.coyote.http11.Http11Protocolstart信息:StartingCoyoteHTTP/1.1onhttp-80802011-3-3113:36:22org.apache.catalina.startup.Catalinastart信息:Serverstartupin780ms
解决方案
解决方案二:
DocumentbaseD:workspace3.6zxyg-corewebappdoesnotexistorisnotareadabledirectory你tomcat指向工程的路径有问题不行你就把项目打包放在tomcat的webapp目录下
解决方案三:
除了移动工程还有别的修改配置文件的方法么?
解决方案四:
tomcatconf目录的service.xml里面配上你要发布工程的路径写成绝对路径
解决方案五:
tomcatconf里边有server.xml没有service.xml具体放在哪里呢?
解决方案六:
引用4楼mervyn1986的回复:
tomcatconf里边有server.xml没有service.xml具体放在哪里呢?
就是server.xml,里头的context元素那儿。
解决方案七:
引用5楼ylz2007的回复:
引用4楼mervyn1986的回复:tomcatconf里边有server.xml没有service.xml具体放在哪里呢?就是server.xml,里头的context元素那儿。
真的是找不到阿
解决方案八:
<?xmlversion='1.0'encoding='utf-8'?><!--LicensedtotheApacheSoftwareFoundation(ASF)underoneormorecontributorlicenseagreements.SeetheNOTICEfiledistributedwiththisworkforadditionalinformationregardingcopyrightownership.TheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexceptincompliancewiththeLicense.YoumayobtainacopyoftheLicenseathttp://www.apache.org/licenses/LICENSE-2.0Unlessrequiredbyapplicablelaworagreedtoinwriting,softwaredistributedundertheLicenseisdistributedonan"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.SeetheLicenseforthespecificlanguagegoverningpermissionsandlimitationsundertheLicense.--><!--Note:A"Server"isnotitselfa"Container",soyoumaynotdefinesubcomponentssuchas"Valves"atthislevel.Documentationat/docs/config/server.html--><Serverport="8005"shutdown="SHUTDOWN"><!--APRlibraryloader.Documentationat/docs/apr.html--><ListenerclassName="org.apache.catalina.core.AprLifecycleListener"SSLEngine="on"/><!--InitializeJasperpriortowebappsareloaded.Documentationat/docs/jasper-howto.html--><ListenerclassName="org.apache.catalina.core.JasperListener"/><!--JMXSupportfortheTomcatserver.Documentationat/docs/non-existent.html--><ListenerclassName="org.apache.catalina.mbeans.ServerLifecycleListener"/><ListenerclassName="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/><!--GlobalJNDIresourcesDocumentationat/docs/jndi-resources-howto.html--><GlobalNamingResources><!--EditableuserdatabasethatcanalsobeusedbyUserDatabaseRealmtoauthenticateusers--><Resourcename="UserDatabase"auth="Container"type="org.apache.catalina.UserDatabase"description="Userdatabasethatcanbeupdatedandsaved"factory="org.apache.catalina.users.MemoryUserDatabaseFactory"pathname="conf/tomcat-users.xml"/></GlobalNamingResources><!--A"Service"isacollectionofoneormore"Connectors"thatshareasingle"Container"Note:A"Service"isnotitselfa"Container",soyoumaynotdefinesubcomponentssuchas"Valves"atthislevel.Documentationat/docs/config/service.html--><Servicename="Catalina"><!--Theconnectorscanuseasharedexecutor,youcandefineoneormorenamedthreadpools--><!--<Executorname="tomcatThreadPool"namePrefix="catalina-exec-"maxThreads="150"minSpareThreads="4"/>--><!--A"Connector"representsanendpointbywhichrequestsarereceivedandresponsesarereturned.Documentationat:JavaHTTPConnector:/docs/config/http.html(blocking&non-blocking)JavaAJPConnector:/docs/config/ajp.htmlAPR(HTTP/AJP)Connector:/docs/apr.htmlDefineanon-SSLHTTP/1.1Connectoronport8080--><Connectorport="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"/><!--A"Connector"usingthesharedthreadpool--><!--<Connectorexecutor="tomcatThreadPool"port="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirectPort="8443"/>--><!--DefineaSSLHTTP/1.1Connectoronport8443ThisconnectorusestheJSSEconfiguration,whenusingAPR,theconnectorshouldbeusingtheOpenSSLstyleconfigurationdescribedintheAPRdocumentation--><!--<Connectorport="8443"protocol="HTTP/1.1"SSLEnabled="true"maxThreads="150"scheme="https"secure="true"clientAuth="false"sslProtocol="TLS"/>--><!--DefineanAJP1.3Connectoronport8009<Connectorport="8009"protocol="AJP/1.3"redirectPort="8443"/>--><!--AnEnginerepresentstheentrypoint(withinCatalina)thatprocesseseveryrequest.TheEngineimplementationforTomcatstandaloneanalyzestheHTTPheadersincludedwiththerequest,andpassesthemontotheappropriateHost(virtualhost).Documentationat/docs/config/engine.html--><!--YoushouldsetjvmRoutetosupportload-balancingviaAJPie:<Enginename="Catalina"defaultHost="localhost"jvmRoute="jvm1">--><Enginename="Catalina"defaultHost="10.120.22.14"><!--Forclustering,pleasetakealookatdocumentationat:/docs/cluster-howto.html(simplehowto)/docs/config/cluster.html(referencedocumentation)--><!--<ClusterclassName="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>--><!--TherequestdumpervalvedumpsusefuldebugginginformationabouttherequestandresponsedatareceivedandsentbyTomcat.Documentationat:/docs/config/valve.html--><!--<ValveclassName="org.apache.catalina.valves.RequestDumperValve"/>--><!--ThisRealmusestheUserDatabaseconfiguredintheglobalJNDIresourcesunderthekey"UserDatabase".AnyeditsthatareperformedagainstthisUserDatabaseareimmediatelyavailableforusebytheRealm.--><RealmclassName="org.apache.catalina.realm.UserDatabaseRealm"resourceName="UserDatabase"/><!--DefinethedefaultvirtualhostNote:XMLSchemavalidationwillnotworkwithXerces2.2.--><Hostname="10.120.22.14"appBase="webapps"unpackWARs="true"autoDeploy="true"xmlValidation="false"xmlNamespaceAware="false"><!--SingleSignOnvalve,shareauthenticationbetweenwebapplicationsDocumentationat:/docs/config/valve.html--><!--<ValveclassName="org.apache.catalina.authenticator.SingleSignOn"/>--><!--Accesslogprocessesallexample.Documentationat:/docs/config/valve.html--><!--<ValveclassName="org.apache.catalina.valves.AccessLogValve"directory="logs"prefix="localhost_access_log."suffix=".txt"pattern="common"resolveHosts="false"/>--></Host></Engine></Service></Server>
解决方案九:
解决了。谢谢大家的帮助。我把工作空间里全删了然后重新导的。