我将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根目录下面的
log4j.properties,pushlet.properties,sources.properties 在运行时要放在\WEB-INF\classes\目录下我文件放到\WEB-INF下了,并且将pushlet.jar包编码改为UTF-8格式了,现在能正常推送消息了。但是日志中version,built还是等于空哥们,现在这个pushlet整合好了吗,我也出现了同样的问题,求指教!我当时是因为编码格式的问题,把pushlet.jar改为UTF-8格式就行了
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。