[pushlet]

发布于 2021-11-21 11:15:48 字数 3250 浏览 858 评论 3

我将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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

如此安好 2021-11-22 19:09:43

我当时是因为编码格式的问题,把pushlet.jar改为UTF-8格式就行了

酒几许 2021-11-22 02:34:47

哥们,现在这个pushlet整合好了吗,我也出现了同样的问题,求指教!

清风夜微凉 2021-11-21 15:48:48

log4j.properties,pushlet.properties,sources.properties 在运行时要放在WEB-INFclasses目录下

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文