tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Mosolov" <Alex.Moso...@hillcrestlabs.com>
Subject hard-to-reproduce startup error with session-config
Date Fri, 20 Feb 2009 16:40:26 GMT
Once in a couple of weeks, I get the following in the catalina log file
trying to start tomcat (which also causes the webapps to become
unresponsive):

INFO: Deploying web application archive secret.war
Feb 4, 2009 6:30:16 PM org.apache.tomcat.util.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.IllegalArgumentException: <session-config> element is limited
to 1 occurance
	at
org.apache.catalina.startup.SetSessionConfig.begin(WebRuleSet.java:559)
	at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1358
)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElemen
t(AbstractSAXParser.java:501)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canStartElement(XMLDocumentFragmentScannerImpl.java:1357)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLD
ocumentScannerImpl.java:645)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(XMLDocumentFragmentScannerImpl.java:508)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:807)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:737)
	at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
a:107)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
actSAXParser.java:1205)
	at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.pars
e(SAXParserImpl.java:522)
	at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
	at
org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(Contex
tConfig.java:695)
	at
org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig
.java:632)
	at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1061)
	at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:261)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4252
)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va: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.deployWAR(HostConfig.java:829)
	at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
	at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29
3)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
	at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1337)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1601)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1610)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:619)
Feb 4, 2009 6:30:16 PM org.apache.catalina.startup.ContextConfig
processDefaultWebConfig
SEVERE: Parse error in default web.xml
java.lang.IllegalArgumentException: <session-config> element is limited
to 1 occurance
	at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.jav
a:2808)
	at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.jav
a:2834)
	at
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1361
)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElemen
t(AbstractSAXParser.java:501)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canStartElement(XMLDocumentFragmentScannerImpl.java:1357)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$F
ragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLD
ocumentScannerImpl.java:645)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s
canDocument(XMLDocumentFragmentScannerImpl.java:508)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:807)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML1
1Configuration.java:737)
	at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.jav
a:107)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstr
actSAXParser.java:1205)
	at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.pars
e(SAXParserImpl.java:522)
	at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)
	at
org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(Contex
tConfig.java:695)
	at
org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig
.java:632)
	at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1061)
	at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:261)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4252
)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va: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.deployWAR(HostConfig.java:829)
	at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
	at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
	at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1215)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:29
3)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:117)
	at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.j
ava:1337)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1601)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.proc
essChildren(ContainerBase.java:1610)
	at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(
ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:619)
Feb 4, 2009 6:30:16 PM org.apache.catalina.startup.ContextConfig
processDefaultWebConfig
SEVERE: Occurred at line 488 column 21

I'm using version 6.0.16, and haven't modified the default conf/web.xml
file.  Line 488 is in fact where the only <session-config> element in
the file begins.  I've seen the same problem happen for different
webapps, as well as in version 6.0.18.  It seems to happen on a fresh
install of tomcat, and restarting it "fixes" the problem.  It happens on
different machines, so that seems to rule out a hardware problem.

I can't reliably reproduce it, but it happens often enough that it's an
issue.  I've tried googling the problem and searching through mailing
lists but it looks like I'm the only one having the problem.  Do you
guys have any idea what might be going on?  Any insight would be really
appreciated, I'm stumped!




Alex

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message