org.gjt.xpp.XmlPullParserException

eclipse 3.5
tomcat tomcat6.0.14
tomcat设置
Server Locations
Use Tomcat installation (takes control of Tomcat installation)
Deploy path webapps
就会报错:
严重: Parse Fatal Error at line 20 column 59: parsing initialization error: org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations not supported at line 20 and column 59 seen ..."http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd"... (parser state UNKNONW_EVENT (-1))
org.gjt.xpp.XmlPullParserException: <![DOCTYPE declarations not supported at line 20 and column 59 seen ..."http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd"... (parser state UNKNONW_EVENT (-1))
at org.gjt.xpp.sax2.Driver.parse(Driver.java:304)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1562)
at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:518)
at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:555)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295)
at org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4428)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4235)
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:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
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:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

改成Use workspace metadata (does not modify Tomcat installation)就没有这个问题了。

但是我跟喜欢在开发测试阶段把应用部署到tomcat安装目录下面的webapps。于是我换一个tomcat,版本是6.0.32
居然好了。因此怀疑是我的tomcat6.0.14在配置上面存在问题。
但具体哪里配置有问题,暂时还没找到。

你可能感兴趣的:(java,eclipse,tomcat,tomcat6)