Changing prweb context in tomcat

Hi Team,

I am trying to deploy Pega on openshift container, however wanted to change the prweb context root from /prweb to /app/prweb

I have tried adding the context as below in server.xml under host but it fails to bring up the app:

<Context path="/app/prweb" docBase="prweb.war"/>

Any suggestions?

Thanks,

Mayank Garg

@Mayank Garg I have been unable to find a response for you.

Our SME is not sure if you can add to the path like this, we don’t add ‘/app/’ to the path, we instead deploy prweb as an application name directly.

Prweb is essentially renamed whatever the application is called.

If adding to the context path, I would think you would have to additionally create the directory before deployment, but again, this is a guess, as we don’t follow this practice on-prem.

@MarijeSchillern

On our liberty and websphere application servers, we have this option to update context root where we change the context root from prweb to /app/prweb.

However, I am trying to find similar option with tomcat based deployment.

Thanks,

Mayank Garg

@Mayank Garg

I think the issue can be resolved by ingress but not by tomcat, for container-based deployment.

Hoping the following URL can help you:

@JiaweiZou

Yes, this works. Thanks a lot Jiawei for your help.