tomcat下配置struts 报这样的错误

05-05-20 Javalga
h DOCTYPE root "null".

org.xml.sax.SAXParseException: Document root element "taglib", must match DOCTYP

E root "null".

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un

known Source)

at org.apache.xerces.util.ErrorHandlerWrapper.error(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.dtd.XMLDTDValidator.rootElementSpecified(Unkno

wn Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown

Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc

e)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen

t(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR

ootElementHook(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent

Dispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un

known Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.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:1562)

at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig

.java:977)

at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja

va:921)

at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:

868)

at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64

7)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi

g.java:243)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

eSupport.java:166)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3

567)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase

.java:821)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80

7)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep

loyer.java:307)

at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j

ava:559)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401

)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java

:358)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

eSupport.java:166)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347

)

at org.apache.catalina.core.StandardService.start(StandardService.java:4

97)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:219

0)

at org.apache.catalina.startup.Catalina.start(Catalina.java:512)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)

at org.apache.catalina.startup.Catalina.process(Catalina.java:180)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2005-5-20 10:24:06 org.apache.commons.digester.Digester error

严重: Parse Error at line 6 column 19: Document is invalid: no grammar found.

org.xml.sax.SAXParseException: Document is invalid: no grammar found.

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un

known Source)

at org.apache.xerces.util.ErrorHandlerWrapper.error(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.dtd.XMLDTDValidator.handleStartElement(Unknown

Source)

at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc

e)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen

t(Unknown Source)

at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR

ootElementHook(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent

Dispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un

known Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.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:1562)

at org.apache.catalina.startup.ContextConfig.tldScanStream(ContextConfig

.java:977)

at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.ja

va:921)

at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:

868)

at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:64

7)

at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi

g.java:243)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

eSupport.java:166)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3

567)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase

.java:821)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80

7)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep

loyer.java:307)

at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j

ava:559)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401

)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java

:358)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

eSupport.java:166)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347

)

at org.apache.catalina.core.StandardService.start(StandardService.java:4

97)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:219

0)

at org.apache.catalina.startup.Catalina.start(Catalina.java:512)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)

at org.apache.catalina.startup.Catalina.process(Catalina.java:180)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2005-5-20 10:24:07 org.apache.commons.digester.Digester fatalError

严重: Parse Fatal Error at line 180 column 13: The end-tag for element type "act

ion" must end with a '>' delimiter.

org.xml.sax.SAXParseException: The end-tag for element type "action" must end wi

th a '>' delimiter.

at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un

known 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.XMLNSDocumentScannerImpl.scanEndElement(Unknow

n Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent

Dispatcher.dispatch(Unknown Source)

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un

known Source)

at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)

at org.apache.xerces.parsers.DTDConfiguration.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.struts.action.ActionServlet.parseModuleConfigFile(ActionSe

rvlet.java:736)

at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet

.java:685)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:331)

at javax.servlet.GenericServlet.init(GenericServlet.java:256)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.

java:935)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82

3)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex

t.java:3420)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3

608)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase

.java:821)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80

7)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep

loyer.java:307)

at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)

at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j

ava:559)

at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401

)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)

at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java

:358)

at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl

eSupport.java:166)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)

at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347

)

at org.apache.catalina.core.StandardService.start(StandardService.java:4

97)

at org.apache.catalina.core.StandardServer.start(StandardServer.java:219

0)

at org.apache.catalina.startup.Catalina.start(Catalina.java:512)

at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)

at org.apache.catalina.startup.Catalina.process(Catalina.java:180)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2005-5-20 10:24:07 org.apache.struts.action.ActionServlet handleConfigException

严重: Parsing error processing resource path /WEB-INF/struts-config.xml

org.xml.sax.SAXParseException: The end-tag for element type "action" must end wi

th a '>' delimiter.

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.commons.digester.Digester.parse(Digester.java:1548)

at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe

rvlet.java:736)

at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet

.java:685)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:331)

at javax.servlet.GenericServlet.init(GenericServlet.java:256)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.

java:935)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82

3)

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex

t.java:3420)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3

608)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase

.java:821)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80

7)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep

这是怎么回事,但是不影响使用,只是每次启动都会有这个错。怎么办?

kalparser
2005-05-21 21:54
It sounds like you might have installed the JSTL correctly. Did you copy the appropriate JARS into your WEB-INF/lib directory and the TLDs into your WEB-INF directory? I believe this is all that is required for installation.

Also make sure that you are referring to the TLDs correctly if you also added them to web.xml (although this step is not necessary). Does that help?

猜你喜欢