Defining an absolute path to the shared drive, running the HA resource kit in cluster environment will result in an error:
java.nio.file.InvalidPathException: K:/CA/SOI/tomcat/custom: Invalid path=: Invalid path=
Post updating our SOI manager servers, which are running in a cluster, to CU4 and running the HA resource kit, we started the following services to run the triage test:
- CA SOI MQ Server Service
- CA SOI WSO2 Carbon
- A SOI Application Server Service
Access to the debug page is not possible and we get the following error in soimgr-debug.log:
java.nio.file.InvalidPathException: K:/CA/SOI/tomcat/custom: Invalid path=: Invalid path=
In this case K:\ is the shared drive used by the SOI cluster. We get the same error on both cluster nodes.
Release : 4.2 CUM 4
Component :CA Service Operations Insight
Creating symbolic link using the below steps helps resolve the issue for read/write the configuration file.
C:\Users\Administrator>mklink /D "C:\Program Files (x86)\CA\SOI\tomcat\custom" K:\CA\SOI\tomcat\custom
3. One symbolic link for custom will be created in <install Dir>\tomcat\ folder which will point to shared folder.it will create link for all the configuration file with shared location.
4. Once we will save the configuration then it will update to shared folder files.
5. Start the SOI services with recommended steps.
It seems the path to the custom config files defined in \CA\SOI\tomcat\webapps\sam\WEB-INF\web.xml cannot be evaluated.
The path to the shared drive is set by the HA resource kit:
<context-param>
<param-name>com.aprisma.spectrum.root.custom</param-name>
<param-value>K:/CA/SOI/tomcat/custom</param-value>
<description>
...
</description>
</context-param>
We tried copying the files from shared drive K:\CA\SOI\tomcat\custom
to local drive D:\CA\SOI\tomcat\custom.
Then changed the path to "${catalina.home}/custom" in web.xml.
After restarting the services the error message was gone.
Defining the an absolute path to the shared drive will result in an error.