Hi,
Tomcat 4.x implements the Servlet Specification, v2.3.  You can get the
servlet spec at:
http://java.sun.com/products/servlet/download.html

In there you will find the DTD for web.xml.  Among other things, it
lists where you can put <session-config> elements and their meaning.
The <session-config> element is not required in order for a webapp to
load.  It is an optional element, with a default value of 30 minutes for
session expiration.

Accordingly, there must be some other reason why your webapp won't load
if you don't put the <session-config> element in your web.xml.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 12, 2002 12:21 PM
>To: Tomcat Users List
>Subject: Re: Loading new context on tomcat 4
>
>hi, one more thing, I've found what is the problem,
>I have this on my web.xml
><session-config>
><session-timeout>10</session-timeout>
></session-config>
>If I leave this uncommented the app wont load.
>Someone know which is de equivalent in tomcat4
>thank
>
>----- Original Message -----
>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, August 12, 2002 12:10 PM
>Subject: RE: Loading new context on tomcat 4
>
>
>Hi,
>When you download tomcat 4.x, you get a couple of example deployment
>descriptors.  Check the
>webapps/ROOT/WEB-INF
>and
>webapps/examples/WEB-INF
>directories and you'll see the web.xml files there.
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-----Original Message-----
>>From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
>>Sent: Monday, August 12, 2002 11:07 AM
>>To: Tomcat Users List
>>Subject: Re: Loading new context on tomcat 4
>>
>>hi,
>>I 've copy everything from tomcat 3.2 to tomcat4 because I'm not the
>>developer who done this apps, so I'll ask the developer to update the
>>deployment, beside, have you got a WEB-INF/web.xml example , so I can
>show
>>it to my developers?
>>and about the e.i. all are running fine.
>>Thank
>>RG
>>
>>----- Original Message -----
>>From: "Shapira, Yoav" <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Sent: Monday, August 12, 2002 11:33 AM
>>Subject: RE: Loading new context on tomcat 4
>>
>>
>>Hi,
>>If you're using tomcat 4.x, why is your DTD written to the version 2.2
>>spec?
>>You probably cannot copy the app directory from tomcat 3.2.1 to 4.x
>>without any changes.  You need to update your deployment descriptor at
>>least.  Have you also verified a proper installation of 4.x, i.e. all
>>examples running etc.?
>>
>>Yoav Shapira
>>Millennium ChemInformatics
>>
>>
>>>-----Original Message-----
>>>From: Rodrigo Giammarini [mailto:[EMAIL PROTECTED]]
>>>Sent: Monday, August 12, 2002 10:04 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: Loading new context on tomcat 4
>>>
>>>Hi !
>>>I have a problem loading new context on tomcat 4.0.4 on a Redhat 7.2
>>and
>>>java 1.4.0_01, the app that wont work in tomcat 4 is working on
tomcat
>>>3.2.1-
>>>If I delete this lines from de webapps/context-name/WEB-INF/web.xml
>the
>>>page is loaded but not displayed an in the /manger/list appears as
>>running-
>>>web.xml
>>><?xml version="1.0" encoding="ISO-8859-1"?>
>>>
>>><!DOCTYPE web-app
>>>    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>>>    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>
>>><web-app>
>>>
>>>  <session-config>
>>>    <session-timeout>10</session-timeout>
>>>  </session-config>
>>>
>>>  <servlet>
>>>    <servlet-name>Controller</servlet-name>
>>>    <servlet-class>com.cti.webgeoloc.Controller</servlet-class>
>>>  </servlet>
>>>
>>></web-app>
>>>
>>>Thanks in advance!
>>
>>--
>>To unsubscribe, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail:
>><mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:tomcat-user-
>>[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:tomcat-user-
>>[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to