I set the mapping to the image directory in Weblogic.xml using the virtual directories mapping tag. How can I find out the meaning of the real path so that my application can access this virtual directory for write access?
JMX doesn't seem to help here, as WebServerMBean (or any other MBean) does not seem to provide access to the display property of the virtual directory.
The Java Servlet API also failed, because the call to getRealPath () only adds the url template to the application deployment directory and does not provide the correct path.
<virtual-directory-mapping>
<local-path>/home/wlsadm/images</local-path>
<url-pattern>help/specimens/*</url-pattern>
<url-pattern>*.xml</url-pattern>
</virtual-directory-mapping>
source
share