开发者社区> 问答> 正文

初学myecplise+web_project+tomcat6.0报错问题

初学myecplise+web_project+tomcat6.0报错问题
哪位大神帮忙看一下
信息: SessionListener: contextInitialized()
2016-5-17 10:27:23 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory JFDemo
2016-5-17 10:27:23 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(F:tomcat-6.0webappsJFDemoWEB-INFlibjetty-server-6.1.26.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
2016-5-17 10:27:24 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter jfinal
java.lang.Error: Unresolved compilation problem:
The method setDevMode(boolean) in the type Constants is not applicable for the arguments (Boolean)

at com.demo.common.DemoConfig.configConstant(DemoConfig.java:26)
at com.jfinal.core.Config.configJFinal(Config.java:44)
at com.jfinal.core.JFinal.init(JFinal.java:66)
at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:48)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)

展开
收起
落地花开啦 2016-03-25 15:23:27 2592 0
1 条回答
写回答
取消 提交回答
  • 喜欢技术,喜欢努力的人

    The method setDevMode(boolean) in the type Constants is not applicable for the arguments (Boolean)

    以上这个异常应该是你的 jdk 或者 jdk compile level 太低造成的,jdk 1.5 引入了 boolean 到 Boolean这类基本类型到对象类型的 autoboxing

    2019-07-17 19:14:29
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Web应用系统性能优化 立即下载
高性能Web架构之缓存体系 立即下载
PWA:移动Web的现在与未来 立即下载