[英]Error PWC6345 on running deployed JSP application in glassFish
After successfully deploying a Java JSP application to my local glassfish server, I get the following error when trying to run it (either from my IDE - Eclipse, or by entering the URL in a browser): 将Java JSP应用程序成功部署到本地玻璃鱼服务器后,尝试运行它时(从我的IDE-Eclipse或通过在浏览器中输入URL)时出现以下错误:
org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required
The application is just a simple hello world app using JSP, however, this error only occurs if I write it using JSP; 该应用程序只是使用JSP的一个简单的hello world应用程序,但是,仅当我使用JSP编写该错误时,才会发生此错误。 an equivalent application using just a simple servlet + printing out html lines works fine. 仅使用简单的servlet +打印出html行的等效应用程序就可以正常工作。
The error message says it all. 错误消息说明了一切。
Glassfish has been started using JRE not JDK, which means that javac
which is needed to compile JSP pages is not available. Glassfish已使用JRE(而非JDK)启动,这意味着编译JSP页面所需的javac
不可用。
In Eclipse configure Glassfish to use JDK not JRE. 在Eclipse中,将Glassfish配置为使用JDK而不是JRE。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.