标题:新手请教一下问题!!启动tomcat的时候出来的那些严重信息是怎么回事!!! ...
只看楼主
cuipan0122
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2009-11-12
结帖率:0
已结贴  问题点数:20 回复次数:3 
新手请教一下问题!!启动tomcat的时候出来的那些严重信息是怎么回事!!!谢谢
2009-11-12 23:42:33 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.6.0_14\jre\bin;D:\Program Files\tomcat-6.0.18\apache-tomcat-6.0.18\bin
2009-11-12 23:42:33 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-11-12 23:42:33 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1066 ms
2009-11-12 23:42:33 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-11-12 23:42:33 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
2009-11-12 23:42:34 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-11-12 23:42:34 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2009-11-12 23:42:34 org.apache.tomcat.util.digester.Digester fatalError
严重: Parse Fatal Error at line 2 column 1: Content is not allowed in prolog.
org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at com.(ErrorHandlerWrapper.java:195)
    at com.(ErrorHandlerWrapper.java:174)
    at com.(XMLErrorReporter.java:388)
    at com.(XMLScanner.java:1411)
    at com.(XMLDocumentScannerImpl.java:1039)
    at com.(XMLDocumentScannerImpl.java:648)
    at com.(XMLDocumentFragmentScannerImpl.java:510)
    at com.(XML11Configuration.java:807)
    at com.(XML11Configuration.java:737)
    at com.(XMLParser.java:107)
    at com.(AbstractSAXParser.java:1205)
    at com.(SAXParserImpl.java:522)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
    at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    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:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-11-12 23:42:34 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Parse error in application web.xml file at jndi:/localhost/myapp/WEB-INF/web.xml
org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at com.(AbstractSAXParser.java:1231)
    at com.(SAXParserImpl.java:522)
    at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
    at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
    at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1066)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4252)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    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:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-11-12 23:42:34 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Occurred at line 2 column 1
2009-11-12 23:42:34 org.apache.catalina.startup.ContextConfig start
严重: Marking this application unavailable due to previous error(s)
2009-11-12 23:42:34 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2009-11-12 23:42:34 org.apache.catalina.core.StandardContext start
严重: Context [/myapp] startup failed due to previous errors
2009-11-12 23:42:35 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-11-12 23:42:35 org.apache. init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-11-12 23:42:35 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/62  config=null
2009-11-12 23:42:35 org.apache.catalina.startup.Catalina start
信息: Server startup in 1947 ms
搜索更多相关主题的帖子: tomcat 
2009-11-13 00:01
windizual
Rank: 3Rank: 3
等 级:论坛游侠
威 望:4
帖 子:124
专家分:186
注 册:2009-7-1
得分:10 
具体这些信息是怎么回事我是不太了解
不过应该是你没有配置好TOMCAT的原因,我这就没有这问题
你重新按要求配置一遍吧
http://blog.
你可以参考上面的配置网页


下面是我的TOMCAT信息
2009-11-13 0:48:02 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jdk1.6.0_12\bin;.;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;D:/Java/jdk1.6.0_12/bin/../jre/bin/client;D:/Java/jdk1.6.0_12/bin/../jre/bin;D:\Java\jdk1.6.0_12\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;D:\Java\jdk1.6.0_12\bin;D:\Java\jdk1.6.0_12\jre\bin
2009-11-13 0:48:03 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2009-11-13 0:48:03 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 3902 ms
2009-11-13 0:48:04 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-11-13 0:48:04 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2009-11-13 0:48:07 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2009-11-13 0:48:07 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2009-11-13 0:48:08 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2009-11-13 0:48:08 org.apache. init
信息: JK: ajp13 listening on /0.0.0.0:8009
2009-11-13 0:48:08 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/170  config=null
2009-11-13 0:48:08 org.apache.catalina.startup.Catalina start
信息: Server startup in 4603 ms

Java要学的东西好多~~~~~
2009-11-13 00:53
lampeter123
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:54
帖 子:2508
专家分:6424
注 册:2009-1-30
得分:10 
检查下web.xml配置有没有问题

你的优秀和我的人生无关!!!!
    
    我要过的,是属于我自己的生活~~~
2009-11-13 08:06
cuipan0122
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2009-11-12
得分:0 
恩!!!谢谢你们了!!我试试看!!重新配置一下
2009-11-13 08:25



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-292131-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.044698 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved