0

I found answer here, Simplest way to serve static data from outside the application server in a Java web application

it is excellent solution and working fine in my case also.

But my application is deployed on web logic.

I tried to get same file server.xml in like we do have in $cataline/config/server , but i think there must be different file of WebLogic

so, above same setup, i need to do for our application deployed on WebLogic.

deepak mishra
  • 310
  • 2
  • 13
  • maybe duplicate of [How to serve static resources using Spring's mvc:resources on WebLogic?](https://stackoverflow.com/questions/8038834/how-to-serve-static-resources-using-springs-mvcresources-on-weblogic) but I can't flag it as there's no accepted answer. Please check. – Eugène Adell Aug 23 '19 at 09:45
  • Looking answer for WebLogic, given solution works only with tomcat. – deepak mishra Aug 23 '19 at 11:17
  • I didn't test and don't have the material for this, but the answer is referring to `wls` tags which clearly are for Weblogic. – Eugène Adell Aug 23 '19 at 11:41
  • finally i found this solution, not available on stackoverflow. true C:\Oracle\Middleware\ Oracle_Home/* C:\ softwares/* /filedrive – deepak mishra Aug 23 '19 at 14:20
  • Thanks for sharing. If it's working, please add your solution as an answer, it might help people. – Eugène Adell Aug 23 '19 at 14:22

1 Answers1

0

finally i found following answer. Not available on stackoverflow.

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app>
<container-descriptor>
<index-directory-enabled>true</index-directory-enabled>
</container-descriptor>
<virtual-directory-mapping>
 <local-path>C:\Oracle\Middleware\</local-path>
<url-pattern>Oracle_Home/*</url-pattern>
</virtual-directory-mapping>
<virtual-directory-mapping>
<local-path>C:\</local-path>
<url-pattern>softwares/*</url-pattern>
</virtual-directory-mapping>
<context-root>/filedrive</context-root>
</weblogic-web-app>
deepak mishra
  • 310
  • 2
  • 13