Add external jars in tomcat/lib folder in azure app service

Chinnu 26 Reputation points
2021-01-11T08:22:03.523+00:00

I have a requirement to integrate keycloak into my application which is deployed as a WAR in Azure app service plan. Keycloak provides a couple of adapters for this integration.
These adapters has to be added in CATALINA_HOME/lib folder of tomcat.
Is it possible to add external jars in azure app services.
If so, could you please let me know the steps to do that.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2021-01-15T16:50:03.783+00:00

    Hi @Chinnu ,

    I responded to you on your Stack Overflow post. Posting my response on here for visibility:

    "The CATALINA_HOME directory isn’t on the /home drive, so if you put them there the .jar’s wouldn’t be shared across your instances. you can upload the .jar’s to /home/tomcat/lib, which is mentioned in this doc. /home/tomcat/lib is added to Tomcat’s class loader, so the .jar will be added just like when you put it under CATALINA_HOME/lib."

    Hope that helps.

    Thanks,
    Grace


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.