ODK server on Tomcat met 303 error when Android submitted filled form

1. What is the problem? Be very detailed.
Everything worked well until I submitted the filled form from ODK Collect to ODK Aggregate; server (running on Tomcat 8.5.61 on Linux). The ODK Collect reported "Error: Generic Exception:
java.lang.Exception. And on server side, I noticed "302" error when the submission failed: - - [31/Mar/2021:04:18:10 -0700] "HEAD /submission?deviceID=mac%3A00%3AE3%3AB2%3AE3%3A3B%3ACC HTTP/1.1" 204 - - - [31/Mar/2021:04:18:11 -0700] "POST /submission?deviceID=mac%3A00%3AE3%3AB2%3AE3%3A3B%3ACC HTTP/1.1" 302 - - - [31/Mar/2021:04:18:11 -0700] "GET /submission?deviceID=mac%3A00%3AE3%3AB2%3AE3%3A3B%3ACC HTTP/1.1" 204 -

2. What app or server are you using and on what device and operating system? Include version numbers.
Server: ODK Aggregrate on Tomcat 8.5.61
Client: ODK Collect v1.25.2

3. What you have you tried to fix the problem?
Tried to modify server.xml on tomcat, but the effort didn't work.

4. What steps can we take to reproduce the problem?

5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below.

This will be hard to troubleshoot with the limited amount of information available. You could try posting details on your form, the Aggregate version, the details of the changes you tried on the server.xml file, and any additional server logs available. This appears to be related to the same problem you posted earlier. As noted in that thread: