Announcement Announcement Module
No announcement yet.
ContextLoaderServlet Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • ContextLoaderServlet

    I am using WebLogic 8.1 sp2 and therefore (from the Spring javadoc) need to use the ContextLoaderServlet. However, it looks like my ApplicationContext is getting loaded twice? I see all the files read twice. Is that because ContextLoaderServlet "closes" the WebApplicationContext during the servlet "destroy" method? And then it is reconstituted the first time someone gets something from it (from my application servlet)?

    I do notice that sometimes when I use my debugger it does not get loaded twice, is that because a thread is still accessing the ContextLoaderServlet and thus WebLogic will not destroy it?

  • #2
    Can you post the relevant configuration? Have you tried searching the forums? Most of the times the appContext is loaded twice because there are two definitions of the Servlet or a parent-child relationship between context.