By default, Tomcat does not handle %2F, but sometimes you need to process spaces. Here’s how to modify it:
Go to the tomee/conf directory:
vi catalina.properties
Add the following line at the bottom:
org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH=true
As shown in the image below:

Then start Tomcat.