Tag: jetty

使用Jetty WTP插件在Jetty上部署JSP页面时,“PWC6345:调用javac时出现错误”错误

我试图在Jetty上部署一个JSP页面,使用Eclipse的Jetty WTP插件 。 但是我得到下面的错误。 它看起来像Jetty无法findjavac 。 Eclipse中的Jetty WTP插件有什么设置吗?或者我该如何解决这个问题? 如果我将项目作为.war文件导出到jetty\webapps ,然后使用java -jar start.jar手动启动Jetty,那么JSP页面可以正常工作。 但是,如果我使用Jetty WTP插件为Eclipse进行部署,则不起作用。 我有我的JAVA_HOME设置为C:\Program Files (x86)\Java\jdk1.7.0_01和我在Windows 7上使用Jetty 8.0.4。 Servlets在当前的设置下工作正常。 有关如何解决这个JSP页面的任何build议? HTTP ERROR 500 Problem accessing /MyJavaWeb/formProcess. Reason: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required Caused by: org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. […]

Eclipse RCP插件+embedded式Jetty + JSF

我使用embedded式Jetty制作了一个RCP插件,如下所示: 1)在plugin.xml – > Dependencies中,我添加了以下内容: org.eclipse.equinox.http.jetty org.eclipse.equinox.http.registry org.mortbay.jetty.server javax.servlet 2)在plugin.xml – > Extensions中,我添加了一个Servlet扩展点( org.eclipse.equinox.http.registry.servlet ) class: TemperatureServlet alias:/temperature TemperatureServlet看起来像这样: import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class TemperatureServlet extends HttpServlet { protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("doGet Called"); resp.sendRedirect("Convertor.jsp"); } } Convertor.jsp文件如下所示: <%@ page language="java" contentType="text/html; […]