`
flyeagle
  • 浏览: 212224 次
  • 来自: ...
社区版块
存档分类
最新评论

servlet 3.0 startAsync()方法报错解决

阅读更多

在使用servlet 3.0新特性Comet时,常会出现"The method startAsync() is undefined for the type HttpServletRequest"错误显示,而在项目中已经引入了servlet 3.0 的相关jar,依然报错,一直没有在网上找到解决办法,后来发现是因为在使用eclipse创建web项目时,它会引入eclipse自带的servlet包,这样它就不适用添加到项目lib下得servlet 3.0的jar。在项目包路径中将从eclipse中引入的包删除后问题解决:



 remove J2EE 1.4 Libraries项问题解决。

  • 大小: 17.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics