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]
