[pushlet] - init() Pushlet Webapp - version=null built=null

醉生梦死丶 发布于 2013/08/15 10:52
阅读 997
收藏 0

我将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根目录下面的

加载中
0
白石
白石
log4j.properties,pushlet.properties,sources.properties 在运行时要放在\WEB-INF\classes\目录下
醉生梦死丶
醉生梦死丶
我文件放到\WEB-INF下了,并且将pushlet.jar包编码改为UTF-8格式了,现在能正常推送消息了。但是日志中version,built还是等于空
0
vincentMoLin
vincentMoLin
哥们,现在这个pushlet整合好了吗,我也出现了同样的问题,求指教!
醉生梦死丶
醉生梦死丶
我当时是因为编码格式的问题,把pushlet.jar改为UTF-8格式就行了
返回顶部
顶部