现象:tomcat能正常启动,但打开页面时,出现上面的错误。
原因:就是jsp编译的版本不对。
因为tomcat7默认jsp的编译级别为1.6
1.解决方法:
工程名右键属性-java里设置jdk为1.7.
2.解决方法:
修改conf/web.xml
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>compilerSourceVM</param-name>
<param-value>1.7</param-value>
</init-param>
<init-param>
<param-name>compilerTargetVM</param-name>
<param-value>1.7</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
相关推荐
Android WebView 报 Not allowed to load local resource错误的解决办法 博客地址:http://blog.csdn.net/yuzhiqiang_1993/article/details/76228541
>' operator is not allowed for source level below 1.7错误。 修改方法:右键项目--属性--勾选Enable project specific settings--Compiler compliance level--选择1.7--OK。 错误2:org.apache.zookeeper.Version...
nginx: [emerg] “proxy_cache_path” directive is not allowed here in /etc/nginx/conf.d/default.conf:29 提示意思“proxy_cache_path指令不被允许”,在官网上查找了相关说明,也没有发现问题,最后看应用范围...
主要介绍了php采用curl访问域名返回405 method not allowed提示的解决方法,需要的朋友可以参考下
设置隐试打开PPT报错 Hiding the application window is not allowed
NR5G网络拒绝码-5gmm_cause = 7 (0x7) (5GS Service not allowed)
Host 主机名 is not allowed to connect the mysql server 原因:没有授权远程访问mysql 解决方法: cmd 中运行mysql -u root -p(如果报mysql 不是内部或外部命令,找到安装mysql对应的bin文件夹运行mysql.exe,...
从3GPP协议和UE端行为分析5G gmm cause #27的网络问题
"Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
NULL 博文链接:https://yizhilong28.iteye.com/blog/1137285
主要介绍了Intellij IDEA实现springboot热部署过程解析,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以参考下
主要介绍了http请求405错误方法不被允许的解决 (Method not allowed),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
message from server: “Host ‘****’ is not allowed to connect to this MySQL server 1:在登录mysql服务器 2:执行:GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION //赋予任何主机访问数据的...
directories that will not be allowed to be processed by Diskeeper. Event Logging ------------- Diskeeper records information about its activity in two ways. First, general information about ...
主要给大家介绍了关于Golang报"import cycle not allowed"错误的2种解决方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友可以们下面随着小编来一起看看吧
Android中有许多的xml定义文件,比如动画、图形等等。 刚接触android时,看见这些,通常时一头雾水,只有无尽的搜索... 这个文档,对这些xml中的属性进行了一定的整理。可以参考一下。
NULL 博文链接:https://rayoo.iteye.com/blog/1973032
Error:(25, 5) Integer types not allowed (at 'android:textSize' with value '12'). 代码 <style name=HorizontalBtnLayout> <item name=android:layout_height>match_parent ...
2009新东方在线考研英语强化班阅读讲义
主要给大家介绍了关于golang中不允许循环import问题("import cycle not allowed")的相关资料,文中通过示例代码介绍的非常详细,需要的朋友可以参考借鉴,下面随着小编来一起学习学习吧