I am trying to implement the chat example that Jean-Francois used in his
blog but I get this exception in the same place that other people have
reported it in the past (namely cometContext.addCometHandler(handler); in
doPost()) only I have checked that the context used to invoke the servlet is
the same as that in its mapping configuration. I am using the latest
Grizzly.
Are there other possible reasons for getting this exception? The servlet
mapping is "/ChatServlet" and the code to register it is:
contextPath = config.getServletContext().getContextPath() +
"/ChatServlet";
The chat.jsp used to invoke the servlet has:
<frameset>
<iframe src ="/examples/ChatServlet?action=openchat" name="CometChat"
width="100%" scrolling="auto"> </iframe>
<iframe name="post" src="post.jsp" width="100%" scrolling="no"/>
</frameset>
Any ideas?
Thanks,
-JCT