You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dave Reynolds <da...@epimorphics.com> on 2025/09/29 12:03:47 UTC

Help with FileStore configuration change between 9.0.108 and 9.0.109

Hi,

We have been successfully running a set of Tomcat 9.0.108 instances 
using FileStore for session persistence.  However, updating to 9.0.109 
breaks these with a configuration parse error.

The context.xml in our web app contains just:

<Context>
   <Valve className="org.apache.catalina.valves.PersistentValve"/>
   <Manager className="org.apache.catalina.session.PersistentManager" 
maxIdleBackup="1">
     <Store className="org.apache.catalina.session.FileStore" 
directory="/var/opt/session"/>
   </Manager>
</Context>

Under 9.0.108 this works and sessions are persisted as expected in the 
configured directory.

Under 9.0.109 the webapp fails to start with messages:

     Parse error in context.xml for [/catalog]
     Occurred at line [4] column [91]

That line and column reference corresponds to the end of the <Store.../> 
line.

This is running in a docker container based on the 
tomcat:9.0.109-jdk21-corretto-al2 image.

Presume this is related to 
https://bz.apache.org/bugzilla/show_bug.cgi?id=69781 which is part of 
the 109 point release but can't see anything in the PR for that which 
explains the "Parse error".

I imagine our context.xml is wrong in a way that 9.0.108 let through but 
9.0.109 is failing on but there's not much there and have tried several 
variants without success. Any help spotting the problem would be much 
appreciated.

Dave
-- 
Epimorphics Ltd                        www.epimorphics.com
Tel: 01275 399069                     Mobile: 07906 628814

Epimorphics Ltd. is a limited company registered in England #7016688
Registered address: Second Floor, One The Square, Temple Quay, Bristol, 
BS1 6DG, UK


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


Re: Help with FileStore configuration change between 9.0.108 and 9.0.109

Posted by Zdeněk Henek <vr...@gmail.com>.
Hi,

there is release bug in 109, you have to wait with upgrade to 110

read https://tomcat.apache.org/ 109 release.

Regards,
Zdenek Henek

On Mon, Sep 29, 2025 at 12:13 PM Dave Reynolds <
dave.reynolds@epimorphics.com> wrote:

> Hi,
>
> We have been successfully running a set of Tomcat 9.0.108 instances
> using FileStore for session persistence.  However, updating to 9.0.109
> breaks these with a configuration parse error.
>
> The context.xml in our web app contains just:
>
> <Context>
>    <Valve className="org.apache.catalina.valves.PersistentValve"/>
>    <Manager className="org.apache.catalina.session.PersistentManager"
> maxIdleBackup="1">
>      <Store className="org.apache.catalina.session.FileStore"
> directory="/var/opt/session"/>
>    </Manager>
> </Context>
>
> Under 9.0.108 this works and sessions are persisted as expected in the
> configured directory.
>
> Under 9.0.109 the webapp fails to start with messages:
>
>      Parse error in context.xml for [/catalog]
>      Occurred at line [4] column [91]
>
> That line and column reference corresponds to the end of the <Store.../>
> line.
>
> This is running in a docker container based on the
> tomcat:9.0.109-jdk21-corretto-al2 image.
>
> Presume this is related to
> https://bz.apache.org/bugzilla/show_bug.cgi?id=69781 which is part of
> the 109 point release but can't see anything in the PR for that which
> explains the "Parse error".
>
> I imagine our context.xml is wrong in a way that 9.0.108 let through but
> 9.0.109 is failing on but there's not much there and have tried several
> variants without success. Any help spotting the problem would be much
> appreciated.
>
> Dave
> --
> Epimorphics Ltd                        www.epimorphics.com
> Tel: 01275 399069                     Mobile: 07906 628814
>
> Epimorphics Ltd. is a limited company registered in England #7016688
> Registered address: Second Floor, One The Square, Temple Quay, Bristol,
> BS1 6DG, UK
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Help with FileStore configuration change between 9.0.108 and 9.0.109

Posted by Dave Reynolds <da...@epimorphics.com>.
Thanks both.

Apologies for having failed to spot that.

Dave

On 29/09/2025 14:02, Mark Thomas wrote:
> Looks like a variation of the known regression with FileStore and 
> 9.0.109. There will be a fix in the October releases.
> 
> Mark
> 
> On 29/09/2025 13:03, Dave Reynolds wrote:
>> Hi,
>>
>> We have been successfully running a set of Tomcat 9.0.108 instances 
>> using FileStore for session persistence.  However, updating to 9.0.109 
>> breaks these with a configuration parse error.
>>
>> The context.xml in our web app contains just:
>>
>> <Context>
>>    <Valve className="org.apache.catalina.valves.PersistentValve"/>
>>    <Manager className="org.apache.catalina.session.PersistentManager" 
>> maxIdleBackup="1">
>>      <Store className="org.apache.catalina.session.FileStore" 
>> directory="/var/opt/session"/>
>>    </Manager>
>> </Context>
>>
>> Under 9.0.108 this works and sessions are persisted as expected in the 
>> configured directory.
>>
>> Under 9.0.109 the webapp fails to start with messages:
>>
>>      Parse error in context.xml for [/catalog]
>>      Occurred at line [4] column [91]
>>
>> That line and column reference corresponds to the end of the 
>> <Store.../> line.
>>
>> This is running in a docker container based on the tomcat:9.0.109- 
>> jdk21- corretto-al2 image.
>>
>> Presume this is related to https://bz.apache.org/bugzilla/ 
>> show_bug.cgi? id=69781 which is part of the 109 point release but 
>> can't see anything in the PR for that which explains the "Parse error".
>>
>> I imagine our context.xml is wrong in a way that 9.0.108 let through 
>> but 9.0.109 is failing on but there's not much there and have tried 
>> several variants without success. Any help spotting the problem would 
>> be much appreciated.
>>
>> Dave
> 
> 
> ---------------------------------------------------------------------
> 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: Help with FileStore configuration change between 9.0.108 and 9.0.109

Posted by Mark Thomas <ma...@apache.org>.
Looks like a variation of the known regression with FileStore and 
9.0.109. There will be a fix in the October releases.

Mark

On 29/09/2025 13:03, Dave Reynolds wrote:
> Hi,
> 
> We have been successfully running a set of Tomcat 9.0.108 instances 
> using FileStore for session persistence.  However, updating to 9.0.109 
> breaks these with a configuration parse error.
> 
> The context.xml in our web app contains just:
> 
> <Context>
>    <Valve className="org.apache.catalina.valves.PersistentValve"/>
>    <Manager className="org.apache.catalina.session.PersistentManager" 
> maxIdleBackup="1">
>      <Store className="org.apache.catalina.session.FileStore" 
> directory="/var/opt/session"/>
>    </Manager>
> </Context>
> 
> Under 9.0.108 this works and sessions are persisted as expected in the 
> configured directory.
> 
> Under 9.0.109 the webapp fails to start with messages:
> 
>      Parse error in context.xml for [/catalog]
>      Occurred at line [4] column [91]
> 
> That line and column reference corresponds to the end of the <Store.../> 
> line.
> 
> This is running in a docker container based on the tomcat:9.0.109-jdk21- 
> corretto-al2 image.
> 
> Presume this is related to https://bz.apache.org/bugzilla/show_bug.cgi? 
> id=69781 which is part of the 109 point release but can't see anything 
> in the PR for that which explains the "Parse error".
> 
> I imagine our context.xml is wrong in a way that 9.0.108 let through but 
> 9.0.109 is failing on but there's not much there and have tried several 
> variants without success. Any help spotting the problem would be much 
> appreciated.
> 
> Dave


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