You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alex Mosolov <Al...@hillcrestlabs.com> on 2009/02/20 17:40:26 UTC

hard-to-reproduce startup error with session-config

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


RE: hard-to-reproduce startup error with session-config

Posted by Alex Mosolov <Al...@hillcrestlabs.com>.
Right, yeah.  Seems like conf/web.xml wouldn't be the only file that's
affected if that were the case.  I'll try a newer version of java,
though, since that seems to be the one constant across all cases, but as
there's no reliable way to reproduce it, it'll be hard to tell if it
helps.

Thank you for looking at it.

Alex

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Friday, February 20, 2009 1:58 PM
To: Tomcat Users List
Subject: RE: hard-to-reproduce startup error with session-config

> From: Alex Mosolov [mailto:Alex.Mosolov@hillcrestlabs.com]
> Subject: RE: hard-to-reproduce startup error with session-config
>
> java version "1.6.0_03"

Might try a newer JVM (1.6.0_12 is available), but I doubt that will
help.

Sounds more like some sort of file caching problem, but if it were, I'd
expect more problems than this.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


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


RE: hard-to-reproduce startup error with session-config

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Alex Mosolov [mailto:Alex.Mosolov@hillcrestlabs.com]
> Subject: RE: hard-to-reproduce startup error with session-config
>
> java version "1.6.0_03"

Might try a newer JVM (1.6.0_12 is available), but I doubt that will help.

Sounds more like some sort of file caching problem, but if it were, I'd expect more problems than this.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

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


RE: hard-to-reproduce startup error with session-config

Posted by Alex Mosolov <Al...@hillcrestlabs.com>.
Real tomcat, not repackaged.  The one change I make after unpacking it
is have the logs directory be a symlink to another filesystem.

OS is redhat el5, happens on el4 too though:
Linux mirage.hcrest.com 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT
2008 x86_64 x86_64 x86_64 GNU/Linux

Java version:
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)


-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Friday, February 20, 2009 1:02 PM
To: Tomcat Users List
Subject: RE: hard-to-reproduce startup error with session-config

> From: Alex Mosolov [mailto:Alex.Mosolov@hillcrestlabs.com]
> Subject: hard-to-reproduce startup error with session-config
>
> It seems to happen on a fresh install of tomcat

A real Tomcat, or a 3rd-party repackaged one that scatters things all
over and then tries to put them back together with symlinks?

What JRE/JDK are you using?  What OS?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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


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


RE: hard-to-reproduce startup error with session-config

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Alex Mosolov [mailto:Alex.Mosolov@hillcrestlabs.com]
> Subject: hard-to-reproduce startup error with session-config
>
> It seems to happen on a fresh install of tomcat

A real Tomcat, or a 3rd-party repackaged one that scatters things all over and then tries to put them back together with symlinks?

What JRE/JDK are you using?  What OS?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

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