After set Load Balance 3dpassport got Incorrect username email or password error

incorrect password error

Following normal load balance settings , 3dpassport tomee conf/server.xml , add jvmRoute.

 <Engine name="Catalina" defaultHost="localhost" jvmRoute="pass1">

apache custom conf file add

<Proxy balancer://passCluster>
  BalancerMember http://3dpass1.aaa.bbb:7080 route=pass1
  BalancerMember http://3dpass2.aaa.bbb:7080 route=pass2
  ProxySet stickysession=SERVERID
</Proxy>

/usr/DassaultSystemes/R2025x/3DPassport/linux_a64/templates/3DPassport_httpd_fragment.conf add

Header add Set-Cookie "SERVERID=3dpassport.%{BALANCER_WORKER_ROUTE}e; path=/3dpassport" env=BALANCER_ROUTE_CHANGED

and then , we got the first picture’s error.

To solve this issue.

  • shutdown all the 3dpassport tomee
  • clear folder tomee/temp tomee/work folder.
  • start all the 3dpassport tomee
  • modify 3DPassport_httpd_fragment.conf, add “;Secure” after /3dpassport.
Header add Set-Cookie "SERVERID=3dpassport.%{BALANCER_WORKER_ROUTE}e; path=/3dpassport;Secure" env=BALANCER_ROUTE_CHANGED

and restart apache

And then we can login normally.

To find the problem

When checking the cookie when the error occurs, we can find that SERVERID is not set correctly. SameSite=NONE is not set correctly

So After set-cookie Secure

Leave a Reply