[pushlet]
我将pushlet整合到项目中后报错,启动tomcat:
日志文件:
2013-08-15 08:45:02,652 INFO [pushlet] - Logging intialized logger class=class nl.justobjects.pushlet.util.Log4jLogger 2013-08-15 08:45:02,652 INFO [pushlet] - init() Pushlet Webapp - version=null built=null 2013-08-15 08:45:02,714 INFO [pushlet] - SessionManager created className=class nl.justobjects.pushlet.core.SessionManager 2013-08-15 08:45:02,714 INFO [pushlet] - SessionManager: Thu Aug 15 08:45:02 CST 2013 started; interval=60000ms 2013-08-15 08:45:02,714 INFO [pushlet] - Dispatcher created className=class nl.justobjects.pushlet.core.Dispatcher 2013-08-15 08:45:02,714 INFO [pushlet] - Dispatcher started 2013-08-15 08:45:02,714 INFO [pushlet] - EventSourceManager: start 2013-08-15 08:45:02,730 INFO [pushlet] - Activating 0 EventSources 2013-08-15 08:45:02,730 INFO [pushlet] - EventSources activated打开页面,DEBUG:
0: -(anEvent, aQuery): _doRequest=pushlet.srv?p_event=join-listen&p_format=xml-strict&p_mode=pull&p_subject=/hong/hw 1: -(event): _onEvent()=p_event=error p_reason=[pushlet] problem retrieving XML data: Internal Server Error (2287 msec)异常:
2013-8-15 10:45:58 org.apache.catalina.core.StandardWrapperValve invoke 严重: Servlet.service() for servlet pushlet threw exception java.lang.Error: Unresolved compilation problem: The method doCommand(Command) is undefined for the type Controller at nl.justobjects.pushlet.servlet.Pushlet.doRequest(Pushlet.java:198) at nl.justobjects.pushlet.servlet.Pushlet.doGet(Pushlet.java:113) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.publicmodule.startup.SetEncodingFilter.doFilter(SetEncodingFilter.java:90) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619)
请问这是什么情况,是.properties路径错了?我的.properties路径是放在src根目录下面的
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我当时是因为编码格式的问题,把pushlet.jar改为UTF-8格式就行了
哥们,现在这个pushlet整合好了吗,我也出现了同样的问题,求指教!
log4j.properties,pushlet.properties,sources.properties 在运行时要放在WEB-INFclasses目录下