tomcat启动时错误

问题描述

严重: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>
解决方案九:
解决了。谢谢大家的帮助。我把工作空间里全删了然后重新导的。

时间: 2024-10-02 06:15:23

tomcat启动时错误的相关文章

拦截器-tomcat启动时出现这种错误

问题描述 tomcat启动时出现这种错误 严重: Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/D:/Program%20Files/apache-tomcat-6.0.29/webapps/struts2.myeclipse.bak/WEB-INF/lib/struts2-spring-plugin-2.3.20.jar!/struts-plugin.xml:29:132 at

Tomcat启动时项目重复加载所导致资源初始化两次的问题

最近在项目开发测试的时候,发现Tomcat启动时项目重复加载,导致资源初始化两次的问题 导致该问题的原因: 如下图:在Eclipse中将Server Locations设置为"Use Tomcat installation(takes control of Tomcat installation)"时, 就会导致该问题! 根本原因: 解决方法一: 把server.xml中的context删除掉

ssh2在tomcat启动时抛出的异常,无解

问题描述 ssh2在tomcat启动时抛出的异常,无解 Mar 16, 2015 3:22:39 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Error configuring application listener of class org.springframework.web.util.Log4jConfigListener java.lang.ClassNotFoundException: org.

tomcat启动时 过高-linux环境下tomcat启动时CPU过高

问题描述 linux环境下tomcat启动时CPU过高 我从tomcat官方网站上下载了一个tomcat7,然后上传到linux环境下解压,然后启动tomcat(没有部署任何项目), CPU瞬间就达到100%,请高手帮忙解释下,是什么原因 解决方案 性能调优:http://blog.chinaunix.net/uid-26204366-id-3896703.html 解决方案二: http://www.linuxidc.com/linux/2014-07/104753.htm 解决方案三: ht

sqlSessionTemplate在tomcat启动时自动关闭

问题描述 sqlSessionTemplate在tomcat启动时自动关闭 sqlSessionTemplate在tomcat启动时自动关闭 数据库连接没有问题 <!-- mapper扫描 --> <!-- --> 解决方案 Tomcat 启动时类加载顺序

tomcat启动时出现如下问题 求大神解答 急急急!

问题描述 tomcat启动时出现如下问题 求大神解答 急急急! 解决方案 其实也看不懂,是不是端口被占用了.

tomcat启动时Dubbo注册zookeeper的信息刷的很慢

问题描述 tomcat启动时Dubbo注册zookeeper的信息刷的很慢 最近tomcat启动时Dubbo注册zookeeper的信息刷的很慢,而且tomcat启动时间越来越长,查看zookeeper.out,几乎1秒钟刷新一条信息.将zookeeper的地址换成其他可以正常启动项目的机器,一样很慢.而且同一台电脑上的其他项目在注册zookeeper时速度很快. 跪求大神解答 解决方案 不知道大神解决问题没有, 我也遇到了相同的问题 解决方案二: 不知道大神解决问题没有, 我也遇到了相同的问题

tomcat启动报错-tomcat启动时一闪而过

问题描述 tomcat启动时一闪而过 启动日志 catalina.logINFO: Initializing ProtocolHandler [""ajp-bio-8009""]九月 17 2013 10:30:54 上午 org.apache.coyote.AbstractProtocolHandler initSEVERE: Failed to initialize end point associated with ProtocolHandler ["

tomcat启动时,会加载filter吗

问题描述 tomcat服务器启动,加载web项目时,是否在启动时就加载filter呢?filter不是在匹配的时候才执行的吗?为什么tomcat启动时就加载呢?自己写了个例子,确实是tomcat启动时就加载filter,真是这样吗?tomcat是如何加载的呢? 解决方案 Listener的初始化最早,Filter次之.他俩的初始化都是在容器启动完成之前初始化的.Servlet没有初始化,原因是没有匹配的请求进来.如果想要servlet自动初始化,需要在指定的servlet中配置<load-on-