ナレッジベース
公開されました Jun. 30, 2025

How to deploy a custom JAR to the shielded-container-lib directory in my PaaS Environment

written-by

Rafael Regner

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Issue

  • I would like to know how to deploy a custom JAR to the shielded-container-lib directory of Tomcat in my PaaS environment.

Environment

  • Liferay PaaS

Resolution

  • Follow these steps:
  1. In your Liferay Workspace, create the following directory structure: liferay/configs/common/tomcat/webapps/ROOT/WEB-INF/shielded-container-lib.
  2. Copy your custom JAR file into the liferay/configs/common/tomcat/webapps/ROOT/WEB-INF/shielded-container-lib directory.
  3. Deploy the liferay service to your Liferay Cloud environment.

Additional Information

  • By creating the appropriate directory structure in your liferay repository and deploying the service, you ensure that your custom JAR is included in the Tomcat classpath and available for use by your application.
did-this-article-resolve-your-issue

ナレッジベース