tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Bainbridge <jbainbri...@gmail.com>
Subject Re: servlet request time out ?!
Date Fri, 03 Jun 2005 16:11:38 GMT
On 6/3/05, Angelov, Rossen <Rossen.Angelov@sourcemedia.com> 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 - webmaster@kde.org
Personal Site - http://jasonbainbridge.com

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


Mime
View raw message