在glassFIsh中部署应用程序后出错

Bas*_*sit 6 glassfish-3

我刚刚在玻璃鱼上部署了一个应用程序.我做了什么,我做了一个目录结构.HelloWorld-> index.jsp,WEB-INF-> sun-web.xml,web.xml.我的index.jsp只是一个打印HelloWorld的页面

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<html>
    <head>
        <title>Hello World! Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

然后我去了HelloWorld目录并发出以下命令

jar cvf helloworld.war .
Run Code Online (Sandbox Code Playgroud)

war文件已创建.然后我使用管理控制台将应用程序部署到GlassFish.在我写的/ HelloWorld的上下文中.但后来我尝试使用http:// localhost:8080/HelloWorld /打开应用程序

然后我得到了错误

type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
exception

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac.  A full JDK (not just JRE) is required
Run Code Online (Sandbox Code Playgroud)

我的路径环境设置为

;C:\Program Files\Java\jdk1.6.0_06\bin;C:\Program Files\glassfish-3.0.1\bin;
Run Code Online (Sandbox Code Playgroud)

我的classpath上有java,为什么我收到这个错误?我正在使用Windows 7.

谢谢

Jim*_*Jim 3

不知何故,glassfish 会在您的计算机上安装另一个 JRE。尝试设置 AS_JAVA 环境变量:http://www.java.net/node/702274