Jason, thanks for pointing out the order in web.xml matters.
Placing the session-config lines after the mappings resolved the problem
with the XML exception, but another exception started appearing in the log:
Jun 3, 2005 2:17:59 PM org.apache.coyote.tomcat5.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request
processing
java.lang.ArrayIndexOutOfBoundsException: 0
at
org.apache.coyote.tomcat5.CoyoteAdapter.normalize(CoyoteAdapter.java:483)
at
org.apache.coyote.tomcat5.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:
239)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:158)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
at java.lang.Thread.run(Thread.java:534)
Do you know what might be causing it and if the exception can be related to
setting the session-config option?
Ross
-----Original Message-----
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 11:12 AM
To: Tomcat Users List
Subject: Re: servlet request time out ?!
On 6/3/05, Angelov, Rossen <[EMAIL PROTECTED]> wrote:
> I tried adding it to my .../WEB-INF/web.xml
> <web-app>
> ....
> <session-config>
> <session-timeout>45</session-timeout>
> </session-config>
>
> ...
> </web-app>
>
> but I started getting errors when tomcat is deploying the context:
>
> Jun 3, 2005 11:51:20 AM org.apache.commons.digester.Digester error
> SEVERE: Parse Error at line 28 column 11: The content of element type
> "web-app" must match
>
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
>
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
>
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
>
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
> l-ref*)".
> org.xml.sax.SAXParseException: The content of element type "web-app" must
> match
>
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
>
ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
>
g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
>
curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
> l-ref*)".
The session-config details need to go after the servlet-mapping's and
before the mime-mapping's in your web.xml, that is what that error is
saying, the DTD expects the elements to be in a certain order and your
order isn't correct.
Regards,
--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
"This communication is intended solely for the addressee and is
confidential and not for third party unauthorized distribution."