4 Oct 2010 02:15
"Can't find ServletContext to check for <welcome-file-list> in web.xml. Assuming defaults."
I just got my application configured to use
DWR version 2.0.3. I am using reverse ajax. I am getting the
following error in the console...
Can't find ServletContext to check for <welcome-file-list> in web.xml. Assuming defaults.
- To prevent this message from happening, either call the PageNormalizer from a DWR Thread
- Or seed the PageNormalizer with a ServletContext before access from outside a DWR thread
I have read the section on the NON-Web Threads and Reverse Ajax (http://directwebremoting.org/dwr/reverse-ajax/threads.html) but the link to the example is not working...And I am not clear as to how to resolve the issue.
____
I have a ProductResizeTracker class implements ProductResizeListener class - the constructor does the following:
WebContext wctx = WebContextFactory.get();
ServletContext servletContext = wctx.getServletContext();
sctx = ServerContextFactory.get(servletContext);
I have a home page called tabbed-home.jsp that onload calls dwr.engine.setActiveReverseAjax(true);
I have a js function called "function updateProductResize(product){alert("product resized!")}"
HOW do I resolve this issue?
Teresa Stone
Raytheon IIS
Sr Software Engineer
Cell 903.356.6097
Work 972.205.4629
Can't find ServletContext to check for <welcome-file-list> in web.xml. Assuming defaults.
- To prevent this message from happening, either call the PageNormalizer from a DWR Thread
- Or seed the PageNormalizer with a ServletContext before access from outside a DWR thread
I have read the section on the NON-Web Threads and Reverse Ajax (http://directwebremoting.org/dwr/reverse-ajax/threads.html) but the link to the example is not working...And I am not clear as to how to resolve the issue.
____
I have a ProductResizeTracker class implements ProductResizeListener class - the constructor does the following:
WebContext wctx = WebContextFactory.get();
ServletContext servletContext = wctx.getServletContext();
sctx = ServerContextFactory.get(servletContext);
I have a home page called tabbed-home.jsp that onload calls dwr.engine.setActiveReverseAjax(true);
I have a js function called "function updateProductResize(product){alert("product resized!")}"
HOW do I resolve this issue?
Teresa Stone
Raytheon IIS
Sr Software Engineer
Cell 903.356.6097
Work 972.205.4629
RSS Feed