On 27/04/2020 14:33, Siddharth Sharma wrote:
> Hi,
> Tomcat : 8.5.30
> Java 8
> OS : macOS Mojave 10.14.6
> Setting up a few (spring-boot) applications as WARs in a tomcat
> server. I'm using the WAR names as the 'context'. Can this context
> include regex in the path ?

No. You have to explicitly define the context.

> Sample Endpoint : /tenant/{tenantId}/entity/{entityId} ;

In the above what is:

- the context path
- the servlet path
- the path info ?

> Here tenantId is numeric (5 digits);
> Trying to set up the context(war name) as 'tenant#*#entity', but '*'
> does not seem to work :
> Caused by: java.lang.IllegalArgumentException: Repository: cannot add
> mbean for pattern name
> Catalina:type=ParallelWebappClassLoader,host=localhost,context=/tenant/*/entity
> 
> Any suggestions ?

What, exactly, are you trying to do?

Mark

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

Reply via email to