java - Unable to access XML file from Virtual directory after editing the file -
i accessing xml file through virtual directory , xml kept @ application server. parsing working fine when made changes in xml after not able access xml file. in case need re-start services working.
code : weblogic.xml <wls:virtual-directory-mapping> <wls:local-path>/app/upload_files/</wls:local-path> <wls:url-pattern>/banner/*</wls:url-pattern> <wls:url-pattern>/login/*</wls:url-pattern> <wls:url-pattern>/home/*</wls:url-pattern> </wls:virtual-directory-mapping>
it looks you using default value resource-reload-check-secs (which -1 in production mode , 1 in development mode). parameter controls caching of resource metadata (like file size static resources, etc). -1 means never reload metadata if change static resource wls never reload resource afresh.
and if case xml file , if xml file has changed in size, wls end reading partially if new file size greater , xml parser break, or give io exception if new file size lesser.
you can try re-delpoying application.
or if change static resources may change value of resource-reload-check-secs 0 or 1
sample weblogic.xml:
.... <container-descriptor> <resource-reload-check-secs>0</resource-reload-check-secs> </container-descriptor> </weblogic-web-app> ref: http://docs.oracle.com/cd/e15051_01/wls/docs103/webapp/weblogic_xml.html#wp1067857
cheers!
Comments
Post a Comment