首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

struts开发WEB有关问题

2011-12-30 
struts开发WEB问题启动tomcat时报错如下信息:Installingwebapplicationatcontextpath/bookManagerSystemfr

struts开发WEB问题
启动tomcat时报错如下
信息:   Installing   web   application   at   context   path   /bookManagerSystem   from   URL   file:D:\tomcat\jakarta-tomcat-5.0.28\webapps\bookManagerSystem
2007-3-14   17:04:25   org.apache.commons.digester.Digester   fatalError
严重:   Parse   Fatal   Error   at   line   2   column   5:   The   string   "-- "   is   not   permitted   within   comments.
org.xml.sax.SAXParseException:   The   string   "-- "   is   not   permitted   within   comments.
at   org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown   Source)
at   org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown   Source)
at   org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown   Source)
at   org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown   Source)
at   org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown   Source)
at   org.apache.xerces.impl.XMLScanner.scanComment(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown   Source)
at   org.apache.xerces.parsers.XML11Configuration.parse(Unknown   Source)
at   org.apache.xerces.parsers.XML11Configuration.parse(Unknown   Source)
at   org.apache.xerces.parsers.XMLParser.parse(Unknown   Source)
at   org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.commons.digester.Digester.parse(Digester.java:1548)
at   org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:514)
at   org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:547)
at   org.apache.catalina.startup.TldConfig.execute(TldConfig.java:301)
at   org.apache.catalina.core.StandardContext.start(StandardContext.java:4282)
at   org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at   org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at   org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at   org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at   org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at   org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)
at   org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at   org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at   org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at   org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at   org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at   org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at   org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at   org.apache.catalina.core.StandardService.start(StandardService.java:480)
at   org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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:585)
at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
在浏览器中打开页面后什么都没有显示

[解决办法]
你看一下你的bookManagerSystem.xml,这个可能格式上有错误。特别注意--。如果这个XML没有错误,你看一下conf/下的server.xml是否有错误。
[解决办法]
注释有问题嘛


[解决办法]
查找下看看配置文件有没有不恰当的使用了“--”符号
[解决办法]
org.xml.sax.SAXParseException: The string "-- " is not permitted within comments.


说的这么清楚。你直接查找删除算了。
[解决办法]
配置文件有错三

热点排行