You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by MH...@LStelcom.com on 2026/03/17 16:41:32 UTC

Apache Hop Web - Session timeout issue with multiple parallel Docker instances

Hello,

I'm running multiple Apache Hop Web 2.17.0 instances in parallel via Docker containers on localhost, each on different ports (8021, 8022, etc.).

Problem:
When I access one Hop Web instance in my browser, it works perfectly. However, if I open a new browser tab/window to access another Hop Web instance (different port), I immediately get:
Title: Session Timeout
Message: The server session timed out.
Action required: Click "Restart" button

[cid:image001.png@01DCB635.4AFC6890]

This happens within seconds, even though each instance runs fine individually. It suggests the same browser session/cookie is shared across all Hop Web instances.
Context:

  *   All containers run simultaneously (docker compose up -d)
  *   Different ports, projects, volumes (fully isolated)
  *   Single browser accessing multiple localhost:port instances (I even tryied to open the second instance in incognito)

Question:
How can I configure Apache Hop Web (or Tomcat) so each Docker instance maintains its own independent browser session, preventing cross-contamination between ports?

Thank you for your help!
Michel



Re: Apache Hop Web - Session timeout issue with multiple parallel Docker instances

Posted by Hans Van Akelyen <ha...@gmail.com>.
Hi Michel,

I have taken a look, and it is indeed because the JSESSIONID is shared on host level and interferes with the multiple instances.

The solution is to add and mount a context.xml file to each tomcat instance.

for example: context-server-1.xml

<?xml version="1.0" encoding="UTF-8"?>
<Context sessionCookieName="JSESSIONID_8080"/>

and then mount it in your compose file:

volumes:
     - ./context-server-1.xml:/usr/local/tomcat/conf/context.xml

Not sure if there is a clean way to do this automatically but we could add an extra variable to our dockerfile to set this value.

Cheers,
Hans
On 17 Mar 2026 at 18:11 +0100, Hans Van Akelyen <ha...@gmail.com>, wrote:
> Hi Michel,
>
> I’ll take a look at this, it’s an interesting find and you are the first to report it. I will see if I can reproduce this and guard against it. I think you are on the right track that it must be some session/browser cookie. I’ll see how we can further guard against this. This might be a change to the tomcat configuration or require a code change.
>
> Kr,
> Hans
>
> On Tue, 17 Mar 2026 at 17:42, <MH...@lstelcom.com> wrote:
> > Hello,
> >
> > I'm running multiple Apache Hop Web 2.17.0 instances in parallel via Docker containers on localhost, each on different ports (8021, 8022, etc.).
> >
> > Problem:
> > When I access one Hop Web instance in my browser, it works perfectly. However, if I open a new browser tab/window to access another Hop Web instance (different port), I immediately get:
> > Title: Session Timeout
> > Message: The server session timed out.
> > Action required: Click "Restart" button
> >
> >
> > This happens within seconds, even though each instance runs fine individually. It suggests the same browser session/cookie is shared across all Hop Web instances.
> > Context:
> >
> > • All containers run simultaneously (docker compose up -d)
> > • Different ports, projects, volumes (fully isolated)
> > • Single browser accessing multiple localhost:port instances (I even tryied to open the second instance in incognito)
> >
> >
> > Question:
> > How can I configure Apache Hop Web (or Tomcat) so each Docker instance maintains its own independent browser session, preventing cross-contamination between ports?
> >
> > Thank you for your help!
> > Michel
> >
> >

Re: Apache Hop Web - Session timeout issue with multiple parallel Docker instances

Posted by Hans Van Akelyen <ha...@gmail.com>.
Hi Michel,

I’ll take a look at this, it’s an interesting find and you are the first to
report it. I will see if I can reproduce this and guard against it. I think
you are on the right track that it must be some session/browser cookie.
I’ll see how we can further guard against this. This might be a change to
the tomcat configuration or require a code change.

Kr,
Hans

On Tue, 17 Mar 2026 at 17:42, <MH...@lstelcom.com> wrote:

> Hello,
>
>
>
> I'm running multiple Apache Hop Web 2.17.0 instances in parallel via
> Docker containers on localhost, each on different ports (8021, 8022, etc.).
>
>
>
> *Problem*:
> When I access one Hop Web instance in my browser, it works perfectly.
> However, if I open a *new browser tab/window* to access another Hop Web
> instance (different port), I immediately get:
>
> *Title*: Session Timeout
> *Message*: The server session timed out.
> *Action required*: Click "Restart" button
>
>
>
>
>
> This happens *within seconds*, even though each instance runs fine
> individually. It suggests the *same browser session/cookie* is shared
> across all Hop Web instances.
>
> *Context*:
>
>    - All containers run simultaneously (docker compose up -d)
>    - Different ports, projects, volumes (fully isolated)
>    - Single browser accessing multiple localhost:port instances (I even
>    tryied to open the second instance in incognito)
>
>
>
> *Question*:
> How can I configure Apache Hop Web (or Tomcat) so each Docker instance
> maintains its *own independent browser session*, preventing
> cross-contamination between ports?
>
>
>
> Thank you for your help!
> Michel
>
>
>
>
>