简体   繁体   English

在glassFish中运行已部署的JSP应用程序时出现错误PWC6345

[英]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.

相关问题 使用Payara-Micro部署JavaEE应用程序时出现“ org.apache.jasper.JasperException:PWC6345”错误 - “org.apache.jasper.JasperException: PWC6345” error when using Payara-Micro to deploy a JavaEE application org.apache.jasper.JasperException:PWC6345:调用javac时出错。 需要完整的JDK(不仅仅是JRE) - org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required 启动 Liferay 7 (liferay-portal-7.0-ce-ga1) 时出错:PWC6345:调用 javac 时出错。需要完整的 JDK(不仅仅是 JRE) - Error when starting Liferay 7 (liferay-portal-7.0-ce-ga1): PWC6345: There is an error in invoking javac.A full JDK (not just JRE) is required Jetty Runner,Servlet筛选器和org.apache.jasper.JasperException:PWC6345 - Jetty Runner, Servlet Filter and org.apache.jasper.JasperException: PWC6345 在Glassfish上部署的Web应用程序上的XML解析错误 - XML parsing on a web application deployed on Glassfish error 应用程序已在GlassFish 4.1上成功部署,但浏览错误404 - Application Deployed Successful on GlassFish 4.1 but browsing error 404 glassfish3 部署错误:应用程序……已部署在此域中 - glassfish3 deploy error: Application … is already deployed in this domain JSP GlassFish错误 - JSP GlassFish error 无法在Glassfish上部署的应用程序中发送电子邮件 - impossible to send email in application deployed on Glassfish Liferay 7.2/7.3 错误:'PWC6033:JSP 的 Javac 编译错误' - Liferay 7.2/7.3 error: 'PWC6033: Error in Javac compilation for JSP'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM