This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes  End event threw exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark " End event threw exception" Watch " End event threw exception" New topic
Author

End event threw exception

Ramathilagam Bragaspathi
Greenhorn

Joined: Aug 05, 2004
Posts: 7
I have installed and using Tomcat server version, jakarta-tomcat-5.0.27
When I startup the server, I am getting

"End event threw exception" in startup window and following this another error " Parse error in application web.xml"

Here is my full startup page looks like
.....................
Aug 24, 2004 5:44:43 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
Aug 24, 2004 5:44:44 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3095 ms
Aug 24, 2004 5:44:44 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 24, 2004 5:44:44 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.27
Aug 24, 2004 5:44:44 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 24, 2004 5:44:44 AM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Aug 24, 2004 5:44:44 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\java\tomcat\jakarta-tom
at-5.0.27\conf\Catalina\localhost\admin.xml
Aug 24, 2004 5:44:46 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=tr
e
Aug 24, 2004 5:44:46 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNu
l=true
Aug 24, 2004 5:44:48 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', retu
nNull=true
Aug 24, 2004 5:44:53 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\java\tomcat\jakarta-tom
at-5.0.27\conf\Catalina\localhost\balancer.xml
Aug 24, 2004 5:44:53 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:C:\java\tomcat\jakarta-tom
at-5.0.27\conf\Catalina\localhost\manager.xml
Aug 24, 2004 5:44:54 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /iteration from URL file:c:/ja
a/tomcat/jakarta-tomcat-5.0.27/webapps/iteration
Aug 24, 2004 5:44:54 AM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.ja
a:252)
at org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:5
5)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Sourc
)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConten
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U
known 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.ContextConfig.applicationConfig(ContextC
nfig.java:263)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:6
4)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConf
g.java:216)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:
290)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:8
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDe
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:61
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:43
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.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:47
)
at org.apache.catalina.core.StandardService.start(StandardService.java:
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:23
3)
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(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unk
own servlet name index
at org.apache.catalina.core.StandardContext.addServletMapping(StandardC
ntext.java:2234)
at org.apache.catalina.core.StandardContext.addServletMapping(StandardC
ntext.java:2214)
... 47 more
Aug 24, 2004 5:44:54 AM org.apache.catalina.startup.ContextConfig applicationCo
fig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servle
name index
at org.apache.commons.digester.Digester.createSAXException(Digester.jav
:2540)
at org.apache.commons.digester.Digester.createSAXException(Digester.jav
:2566)
at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Sourc
)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
ource)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source

at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConten
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(U
known 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.ContextConfig.applicationConfig(ContextC
nfig.java:263)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:6
4)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConf
g.java:216)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:
290)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:8
7)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595

at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDe
loyer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:61
)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:43
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.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:47
)
at org.apache.catalina.core.StandardService.start(StandardService.java:
80)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:23
3)
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(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Aug 24, 2004 5:44:54 AM org.apache.catalina.startup.ContextConfig applicationCo
fig
SEVERE: Occurred at line 18 column 19
Aug 24, 2004 5:44:54 AM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Aug 24, 2004 5:44:54 AM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Aug 24, 2004 5:44:54 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
Aug 24, 2004 5:44:54 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /template from URL file:c:/jav
/tomcat/jakarta-tomcat-5.0.27/webapps/template
Aug 24, 2004 5:44:55 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /example from URL file:C:\java
tomcat\jakarta-tomcat-5.0.27\webapps\example
Aug 24, 2004 5:44:55 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:C:
java\tomcat\jakarta-tomcat-5.0.27\webapps\jsp-examples
Aug 24, 2004 5:44:56 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /onjava from URL file:C:\java\
omcat\jakarta-tomcat-5.0.27\webapps\onjava
Aug 24, 2004 5:44:56 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /ROOTold from URL file:C:\java
tomcat\jakarta-tomcat-5.0.27\webapps\ROOTold
Aug 24, 2004 5:44:56 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL fi
e:C:\java\tomcat\jakarta-tomcat-5.0.27\webapps\servlets-examples
Aug 24, 2004 5:44:57 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:C:\
ava\tomcat\jakarta-tomcat-5.0.27\webapps\tomcat-docs
Aug 24, 2004 5:44:57 AM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:C:\java\
omcat\jakarta-tomcat-5.0.27\webapps\webdav
Aug 24, 2004 5:44:58 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
Aug 24, 2004 5:44:58 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Aug 24, 2004 5:44:58 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/100 config=c:\java\tomcat\jakarta-tomcat-5.0.27\c
nf\jk2.properties
Aug 24, 2004 5:44:58 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14791 ms
.....................


what it mean and how to fix this.

Thanks for your help
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
" Parse error in application web.xml" sounds pretty clear to me - your web.xml file is not well formed. Furthermore, the error seems to be in a "end" (ie a closing tag) element.
Bill
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16022
    
  20

SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servle
name index


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: End event threw exception