Revision history [back]

click to hide/show revision 1
initial version

answered 2014-02-24 13:37:35 +0800

chillworld gravatar image chillworld flag of Belgium

https://github.com/chillw...

Can it be that you have a servlet named ServletPush declared in your web.xml? (this can be your problem)
Read this small talk : http://books.zkoss.org/wiki/SmallTalks/2009/August/ZK5:ChatwithEventQueue and you will see that there are no servlets configured.

Then a suggestion four your coding(it will be easier and cleaner to maintain) :

Actually you don't need the eventQueue in your java code cause you are working in MVVM, server push can also be done with global-commands.

Read this question: http://forum.zkoss.org/question/90813/postglobalcommand-in-application-scope/

If you have questions about this approuch let me know(small talk is coming for that topic).

Greetz chill.

Can it be that you have a servlet named ServletPush declared in your web.xml? (this can be your problem)
Read this small talk : http://books.zkoss.org/wiki/SmallTalks/2009/August/ZK5:ChatwithEventQueue and you will see that there are no servlets configured.

Then a suggestion four your coding(it will be easier and cleaner to maintain) :

Actually you don't need the eventQueue in your java code cause you are working in MVVM, server push can also be done with global-commands.

Read this question: http://forum.zkoss.org/question/90813/postglobalcommand-in-application-scope/

If you have questions about this approuch let me know(small talk is coming for that topic).

edit :

I reviewed your program and there is nothing wrong with it. As I can see in the stacktrace you have another webprogram deployed on your tomcat. That program calls CometAsyncServlet at the path /ServerPush(the program you send calls ServerPush and path is / ).

Now go to your tomcat and undeploy that webprogram and you will have no error when restarting your tomcat.

Greetz chill.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More