Metacat overwrites the deployDir property
On a fresh installation of Metacat, the
application.deployDir property value gets overwritten. This is undesirable for Docker deployments where the Metacat Admin UI is not used for configuration, but rather the
metacat.properties file is pre-configured for deployment. Fix this. It looks to be happening in the
Look at the consequences of not calling
discoverDeployDir() and perhaps remove this. Needs review.
#3 Updated by Jing Tao almost 3 years ago
- Status changed from New to Closed
The issue turns out to be Tomcat 8 has change the format of current path.
In Tomcat 7, it was /opt/local/share/java/tomcat7/webapps/metacat/.
But in Tomcat 8, it is /opt/local/share/java/tomcat8/webapps/metacat
So the fancy pattern match doesn't work.
Since we just want to remove the context part, I used the old lastIndexOf and substring method in the String class. It worked well.