开发者社区> 问答> 正文

[pushlet] - init() Pushlet Webapp - vers?报错

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

展开
收起
爱吃鱼的程序员 2020-06-22 17:31:59 467 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

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

    2020-06-22 17:32:14
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Build Your Next ApacheSparkJob 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载