I am trying to deploy war file on tomcat server through docker. But post deploying the war file I don't see the UI page and is throwing error. Post checking the logs in the pod container can see the below error. I would really appreciate if you can point where I am going wrong
Dockerfile:
FROM xxx-docker-dev.docker.xxx.dev/tomcat:9.0.65-jdk11
EXPOSE 8080
COPY deployments/*.war /usr/local/tomcat/webapps/
COPY config/ /usr/local/tomcat/conf/
USER root
RUN mkdir -p /usr/local/tomcat/conf/Catalina/localhost
RUN chmod -R 777 /usr/local/tomcat/conf/Catalina
RUN chmod -R 777 /usr/local/tomcat/webapps/
RUN chmod -R 777 /usr/local/tomcat/conf/
USER ${UID}
Error:
com.xxx.edp.landlord.impl.DefaultConfigurationResolutionRegistry could not be instantiated","name":"java.util.ServiceConfigurationError","cause":{"commonElementCount":97,"localizedMessage":"The config root must be specified by the landlord.config.root JVM argument.","message":"The config root must be specified by the landlord.config.root JVM argument.","name":"java.lang.NullPointerException","extendedStackTrace":
Web UI Error:
HTTP Status 404 – Not Found
Type Status Report
Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.