• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Weblogic 7.0 temp dir issue

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
We have a .WAR file which make use of the "javax.servlet.context.tempdir" implementation. Here we keep some configuration entries made by the user and use it at run time. This works fine with Tomcat, WebSphere 5.x but weblogic 7.0, we face strange problem. The moment we restart the web application [ not the weblogic server ] , this temp directory gets deleted ! So the application lost all the information in the configuration files given by the user. This is really a horrible problem, and till now I couldn't find any solution.
I am not sure whether this "javax.servlet.context.tempdir" is not so used common for this kind of storage or this is a specific issue with a specific version of weblogic [ I don't know whether this will work with weblogic 8.1 or not]. So if any of you know the solution or history of this issue please update.
Thanks in advance.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
According to the specification of the servlets :
SRV.3.7.1 Temporary Working Directories
A temporary storage directory is required for each servlet context. Servlet
containers must provide a private temporary directory per servlet context, and make it available via the javax.servlet.context.tempdir context attribute. The objects associated with the attribute must be of type java.io.File. The requirement recognizes a common convenience provided in many servlet engine implementations. The container is not required to maintain the contents of the temporary directory when the servlet container restarts, but is required to ensure that the contents of the temporary directory of one servlet context is not visible to the servlet contexts of other web applications running on the servlet
container.
reply
    Bookmark Topic Watch Topic
  • New Topic