org.apache.jasper.JasperException: PWC6033: Error in Javac Compilation for JSP

记录一次 嵌入式Servlet容器 Jetty 升级过程中发生的问题

公司老项目使用的是Jetty-9.1.5的老版本,现在需要升级到最新的9.4以上版本。但是在升级的过程中发生了奇怪的错误。

org.apache.jasper.JasperException: PWC6033:
Error in Javac Compilation for JSP

大概的意思就是你的JSP文件,无法被编译和识别。这个坑我找了好多文章都没有解决。其实解决方式很简单,只要在你的启动参数(IDEA上 run configuration 里 VM options)加上一句话就可以了。

-Dorg.apache.jasper.compiler.disablejsr199=true

官网是这样解释的,

By default, the Glassfish JSP container tries to use the compiler that
is part of the JDK. NOTE: when using the JDK compiler, the system does
not save your class files to disk unless you use the saveBytecode
init-param as described below.

这里我直接给出链接,感兴趣的自己去官网看:

https://www.eclipse.org/jetty/documentation/9.2.22.v20170531/configuring-jsp.html#jsp-support

我先睡了。。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值