https://bz.apache.org/bugzilla/show_bug.cgi?id=62600

            Bug ID: 62600
           Summary: Environment variable in shared.loader triggers warning
           Product: Tomcat 8
           Version: 8.0.37
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: sachin.gor...@gmail.com
  Target Milestone: ----

Tomcat version: 8.0.37
OS: CentOS 6.2
Java Version: JRE 1.8.0_162

In catalina.properties file we have set the shared.loader value as follows,

shared.loader="${APP_HOME}/UI/shared/lib/*.jar"

Tomcat is starting properly and loading the jars in the specified folder as
well, I know because if I specify incorrect path then application is not
deployed.

But when I restart Tomcat, I get following warning

Aug 06, 2018 8:26:32 PM org.apache.catalina.startup.ClassLoaderFactory
validateFile
WARNING: Problem with directory [/${APP_HOME}/UI/shared/lib], exists: [false],
isDirectory: [false], canRead: [false]
Using absolute path resolves the problem but we would like to use the APP_HOME
environment variable as its configurable.

Check for environment variables should be done in the loader paths to avoid
warning.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to