无法编译jsp??Unable to compile class for JSP: [问题点数:30分,结帖人wyq2318032]

Bbs2
本版专家分:375
结帖率 100%
Bbs4
本版专家分:1653
Bbs2
本版专家分:375
Bbs3
本版专家分:981
Bbs2
本版专家分:375
Bbs4
本版专家分:1653
Bbs2
本版专家分:375
Bbs4
本版专家分:1653
Bbs2
本版专家分:375
Bbs1
本版专家分:69
Bbs1
本版专家分:69
Bbs2
本版专家分:375
Unable to compile class for JSP问题
小弟前几天刚装JBuilder 2006,可连个最简单的网站都没<em>编译</em>过:(rnrn页面抛出异常:rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: -1 in the <em>jsp</em> file: nullrnrnGenerated servlet error:rn [javac] Compiling 1 source filern [javac] I:\EShop\Tomcat\work\WebModule1\<em>jsp</em>1_<em>jsp</em>.java:7: 软件包 eshop 不存在rn [javac] new eshop.Test().ShowMsg();rn [javac] ^rn [javac] I:\EShop\Tomcat\work\WebModule1\<em>jsp</em>1_<em>jsp</em>.java:54: 软件包 Pack 不存在rn [javac] new Pack.Test().ShowMsg(); rn [javac] ^rn [javac] 2 错误rnrn可是在目录WEB-INF\<em>class</em>es下,包eshop和Pack中的Test.<em>class</em>文件都存在,不知道是怎么回事?rn以前使用Jbuilder的低版本时从没遇过类似问题。请大家帮忙,谢谢。
org.apache.jasper.JasperException: Unable to compile class for JSP:
HTTP Status 500 -rnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnAn error occurred at line: 108 in the <em>jsp</em> file: /AddressBook/b_nameall.<em>jsp</em>rnThe method adreesName(String) is undefined for the type AddressDaorn105: String birthday=request.getParameter("birthday");rn106: String phone=request.getParameter("phone");rn107: name=new String(request.getParameter("name").getBytes("iso-8859-1"),"gb2312");rn108: ArrayList aList1=aDao.adreesName(name);rn109: %>rn110: rn111: <%rnrnrnStacktrace:rn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass(JDTCompiler.java:423)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:317)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:295)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:282)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.rnrnrnrn这个错是怎么样造成的。我这么找都找不到。
不一样的:Unable to compile class for JSP
在别的地方可以但在我的电脑就不行rnrnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: -1 in the <em>jsp</em> file: nullrnrnGenerated servlet error:rn [javac] Compiling 1 source filernrnC:\Tomcat\work\Catalina\192.168.1.27\_\org\apache\<em>jsp</em>\index_<em>jsp</em>.java:7: cannot access java.lang.Objectrnbad <em>class</em> file: C:\Java\jre\lib\rt.jar(java/lang/Object.<em>class</em>)rn<em>class</em> file has wrong version 49.0, should be 48.0rnPlease remove or make sure it appears in the correct subdirectory of the <em>class</em>path.rnpublic final <em>class</em> index_<em>jsp</em> extends org.apache.jasper.runtime.HttpJspBasern ^rn1 errorrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:306)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:398)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:441)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:422)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:507)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:810)rn filters.CheckLoginTimoutFilter.doFilter(CheckLoginTimoutFilter.java:57)rn filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.24 logs.rnrn
Unable to compile class for JSP求教
org.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: -1 in the <em>jsp</em> file: nullrnrnGenerated servlet error:rn [javac] Compiling 1 source filernrn/usr/apache-tomcat-4.1.36/work/Standalone/localhost/_/hyssq/HYSYL_BOT_VIEW_<em>jsp</em>.java:19: getTimeInMillis() has protected access in java.util.Calendarrn beg.getTimeInMillis();rn ^rn/usr/apache-tomcat-4.1.36/work/Standalone/localhost/_/hyssq/HYSYL_BOT_VIEW_<em>jsp</em>.java:20: getTimeInMillis() has protected access in java.util.Calendarrn end.getTimeInMillis();rn ^rn/usr/apache-tomcat-4.1.36/work/Standalone/localhost/_/hyssq/HYSYL_BOT_VIEW_<em>jsp</em>.java:21: getTimeInMillis() has protected access in java.util.Calendarrn float geshu =((end.getTimeInMillis()-beg.getTimeInMillis())/(1000*60))/30;rn ^rn/usr/apache-tomcat-4.1.36/work/Standalone/localhost/_/hyssq/HYSYL_BOT_VIEW_<em>jsp</em>.java:21: getTimeInMillis() has protected access in java.util.Calendarrn float geshu =((end.getTimeInMillis()-beg.getTimeInMillis())/(1000*60))/30;rn ^rn4 errorsrnrn我在我机器运行没有问题 但是拿到1.3jdk的liunx操作系统出如上错误rn
急,Unable to compile class for JSP
代码没有问题,在别的机器可运行,在新机器上部署就出问题了,是个登陆页面,登陆后显示错误rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 65 in the <em>jsp</em> file: /login_do.<em>jsp</em>rnGenerated servlet error:rnD:\tool\New Folder\tomcat\tomcat\webapps\RBT\work\org\apache\<em>jsp</em>\login_005fdo_<em>jsp</em>.java:121: unreachable statementrn out.write("\r\n");rn ^rn1 errorrnrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:332)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:412)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:472)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:451)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn
求救:Unable to compile class for JSP
[b]错误信息:[/b]rnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnAn error occurred at line: 29 in the <em>jsp</em> file: /adjust.<em>jsp</em>rnrequset cannot be resolvedrn26: %>rn27: rn29: String tempname=requset.getParameter("un");rn30: String temppass=request.getParameter("ps");rn31: tempname=change(tempname);rn32: temppass=change(temppass);rnrnrnStacktrace:rn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass(JDTCompiler.java:423)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:317)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:295)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:282)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn[code=Java]rnrn rn Untitled Documentrn rn rn rn rn rn rn rn rn[/code]
求解 Unable to compile class for JSP
JSP页面rnrn rnrnrnrnrn rn rn rn rn rn rn rn rnrn rn
JSP报错。 org.apache.jasper.JasperException: Unable to compile class for JSP
错误信息,已经尝试过删除Jar,之类的还是不行rn[code=text]rn2014-09-19 11:09:52,798 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/gmcrm].[<em>jsp</em>]] Servlet.service() for servlet <em>jsp</em> threw exceptionrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 8 in the <em>jsp</em> file: /wechat/upload_json.<em>jsp</em>rnGenerated servlet error:rnSyntax error on token "rnrn网页代码rn[/code]
maven jdk1.8版本报错
maven项目<em>编译</em>运行的时候通过,通过浏览器访问的时候报错。rn严重: Servlet.service() for servlet <em>jsp</em> threw exceptionrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnAn error occurred at line: 1 in the gener
JSP错误505:Unable to compile class for JSP:
这个Jsp用来显示数据库,报错的类是 ArrayList类rn定义ArrayList 的dao:rn[code=java]package com.dao;rnrnimport java.sql.Connection;rnimport java.sql.PreparedStatement;rnimport java.sql.ResultSet;rnimport java.util.*;rnrnimport entity.Department;rnimport util.DBHelper;rnrn//部门业务逻辑类rnpublic <em>class</em> DepDAO rnrn // 获得所有部门信息rn public ArrayList getAllDepartment() rn Connection conn = null;rn PreparedStatement stmt = null;rn ResultSet rs = null;rn ArrayList list = new ArrayList();// 部门集合rn try rn conn = DBHelper.getConnection();rn String sql = "select * from department;"; // SQLrn stmt = conn.prepareStatement(sql);rn rs = stmt.executeQuery();rn while (rs.next()) rn Department dep = new Department();rn dep.setId(rs.getInt("id"));rn dep.setDepname(rs.getString("depname"));rn dep.setTotal(rs.getInt("total"));rn dep.setOrdered(rs.getInt("ordered"));rn dep.setUsed(rs.getInt("used"));rn dep.setDescription(rs.getString("description"));rn list.add(dep);// 把一个部门加入集合rn rn return list;// 返回集合rn catch (Exception ex) [/code]rnrn显示的<em>jsp</em>页面:rn[code=html]rnrnrnrnrnrnrnrn rn 部门-校园资源管理系统rnrnrn rn 校园资源管理系统rn 后台 rn rn rn rn rn rn 后台首页rn 部门管理rn rn 部门列表rn 新增部门rn rn 管理员管理rn rn 管理员列表rn 新增管理员rn rn 用户管理rn rn 用户列表rn 新增用户rn rn 预约情况管理rn 使用情况管理rn rn rn rn rn rn list=depDao.getAllDepartment();rn if(list!=null&&list.size()>0)rn rn for(int i=0;irn rn rn 部门rn 资源总数rn 描述rn 部门管理员rn 联系方式rn rn rn rn rn 部门管理员rn 联系方式rn rn rn [/code]rnrn第57行ArrayList这个地方报错:rnStacktrace:] with root causernorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnAn error occurred at line: 57 in the <em>jsp</em> file: /dep_list.<em>jsp</em>rnArrayList cannot be resolved to a typernrn我看了一下也导入DAO包了,实在不知道哪里出了问题,求解谢谢!
求助:JSP :Unable to compile class for JSP
我装的是JDK+TOMCATrnrnCLASSPATH:D:\JDK\lib;.;D:\JDK\lib\tool.jar;D:\JDK\lib\dt.jar;%TOMCAT_HOME%\librnJAVA_HOME:D:\JDK\rnPATH:%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;D:\JDK\bin;.;D:\JDK\lib\dt.jar;D:\JDK\lib\tools.jarrnTOMCAT_HOME:D:\Tomcat 5.0rnrnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 2 in the <em>jsp</em> file: /shi/index.<em>jsp</em>rnrnGenerated servlet error:rn [javac] Compiling 1 source filernrnD:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\<em>jsp</em>\shi\index_<em>jsp</em>.java:43: package com.guestbook does not existrn com.guestbook.DBConnection DBConnection = null;rn ^rnrnrnrnAn error occurred at line: 2 in the <em>jsp</em> file: /shi/index.<em>jsp</em>rnrnGenerated servlet error:rnD:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\<em>jsp</em>\shi\index_<em>jsp</em>.java:45: package com.guestbook does not existrn DBConnection = (com.guestbook.DBConnection) pageContext.getAttribute("DBConnection", PageContext.PAGE_SCOPE);rn ^rnrnrnrnAn error occurred at line: 2 in the <em>jsp</em> file: /shi/index.<em>jsp</em>rnrnGenerated servlet error:rnD:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\<em>jsp</em>\shi\index_<em>jsp</em>.java:47: package com.guestbook does not existrn DBConnection = new com.guestbook.DBConnection();rn ^rn3 errorsrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:351)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:415)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:458)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:552)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rnrn哪位大哥帮帮小弟我~~~~~~~~~~~~~~~~哇~~~~~~~~~~~~~~~~rn
mac下tomcat报错
n n n n/Users/xmg/Documents/apache-tomcat-9.0.12/bin&quot; (in directory &quot;/Users/xmg/Documents/apache-tomcat-9.0.12/bin&quot;): error=13, Permission deniednmac 下tomcat报错问题 是因为没有权限nnn找到tomcat路径下面...
jsp:useBean 不能编译class或者没有class这个属性
bean.<em>jsp</em>nnnnn n <em>jsp</em>测试n n n nnPerson.javanimport java.io.Serializable;nnpublic <em>class</em> Person implements Serializable{n private String name;n private int age;nn public
关于Tomcat7无法编译jsp页面的解决方法
由于工作需要,要把项目发布到服务器上,本地测试全部通过,但是有一些在系统中没有用到的无关紧要的JSP页面有错误,这些错误时由于系统升级遗留下来的因为API换了导致的错误。n重点来了,本地测试好好的,发布到服务器上时,因为Tomcat<em>无法</em><em>编译</em>部分系统用到的JSP页面,这下好了,一直显示<em>无法</em>加载类或是<em>class</em>文件不存在。错误截图如下:
JSP访问时出错
安装了jdk1.8版本或tomcat8.0版本后运行之前<em>jsp</em>项目报错:org.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: An error occurred at line: [45] in the generated java file: [F:\apache-tomcat-8.0.14\work\Catalina\localhost\MoniWeb\org\apache\<em>jsp</em>\<em>jsp</em>\main_<em>jsp</em>.java] The method getDispatcherType() is undefined for the type HttpServletRequest
jsp页面显示Unable to compile class for JSP
我用<em>jsp</em>自带的管理工具建立了一个虚拟目录,变了一个很简单的<em>jsp</em>,然后在浏览器中看,提示如下:Unable to <em>compile</em> <em>class</em> for JSP,说没找到<em>编译</em>器,怎么办啊?
自定义标签报错Unable to compile class for JSP:
import java.io.IOException;rnrnimport javax.servlet.<em>jsp</em>.tagext.TagSupport;rnrnrnpublic <em>class</em> Tag1 extends TagSupportrnrn public int doEndTag()rnrn rnrn tryrnrn rnrn String copyPre = "颜志军版权所有 &copy2008"; rnrn String info = new String(copyPre.getBytes(), "ISO8859_1"); rnrn pageContext.getOut().println(info); rnrn rnrn catch(IOException e)rnrn return EVAL_PAGE;rnrn rnrn rnrnrnrnrnrnrnrnrn rnrn rnrn 1.0rnrn 1.1rnrn yzjrnrn rnrn rn rnrn copyrightrnrn Tag1rn empty rnrnrn rn rn rnrn crnrn Tag1rn empty rnrnrn rnrnrnrnrnrnrnrn rnrn rnrn rnrn rnrn 自定义标签简单示例rnrn rnrn rnrnrn [color=#FF0000][/color] 这地方报错rn rnrnrnrnrn
确实没办法了:org.apache.jasper.JasperException: Unable to compile class for JSP
用数据库连接bean,出现rnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP错误,我找了别人的一个bean还是一样的错误。rnrn我用多种方法试过,<em>class</em>应该是找到了,不过就是不行。rn环境变量设置:rnJAVA_HOME = C:\j2sdkrnTOMCAT_HOME = C:\Tomcat 5.0rnCLASSPATH = .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%TOMCAT_HOME%\common\lib\servlet.jar;%TOMCAT_HOME%\common\lib\mm.mysql-2.0.4-bin.jarrnrn我已经把tool.jar copy 到 %TOMCAT_HOME%/common/librnrn在虚拟目录与缺省目录ROOT下都不能通过rnrn请问为何呢?怎么解决?rnrnrn
一个Unable to compile class for JSP错误?
我用的是eclipse(3.2)+myeclipse(5.1)rnjdk(1.4.2_04)rntomcat(5.0.28)rnrn<em>jsp</em>文件放在WebRoot下,java文件放在src的cn.com.shoppingonline包中,rn.<em>class</em>文件放在<em>class</em>es的cn.com.shoppingonline包中.rnrn其中一个left.<em>jsp</em>代码如下:rnrnrn rnrnrnrnrn运行这个<em>jsp</em>文件报如下错误:rnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 5 in the <em>jsp</em> file: /left.<em>jsp</em>rnGenerated servlet error:rnD:\jakarta-tomcat-5.0.28\work\Catalina\localhost\ShoppingOnline\org\apache\<em>jsp</em>\left_<em>jsp</em>.java:49: cannot access cn.com.shoppingonline.ConstantsrnrnrnAn error occurred at line: 5 in the <em>jsp</em> file: /left.<em>jsp</em>rnGenerated servlet error:rnbad <em>class</em> file: D:\jakarta-tomcat-5.0.28\webapps\ShoppingOnline\WEB-INF\<em>class</em>es\cn\com\shoppingonline\Constants.<em>class</em>rn<em>class</em> file has wrong version 49.0, should be 48.0rnPlease remove or make sure it appears in the correct subdirectory of the <em>class</em>path.rn List sortList = (List)session.getAttribute(Constants.SORT_LIST_KEY);rn ^rn1 errorrnrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:332)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:412)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:472)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:451)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.0.28rnrn请各位高手帮我解决一下,非常感谢!!!!!!!!!!!!!!rnrn请顺便留下QQ号,如果能在QQ上讨论更好.rn解答好了我会在bbs上给分的.
关于Unable to compile class for JSP的问题
我有这样的代码:rnrnrnrnrnrnrn rnrnrn rn rn rn rn 书名rn 作者rn 定价rn rn 数据库无记录rnrnrn rn rn rn rn >删除rn >修改rn rn rnrnrnrnrn只运行这个JSP就出现了这样的问题:rnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:559)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrnroot cause rnrnjava.io.FileNotFoundException: no such file: D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\xtApp\org\apache\<em>jsp</em>\bookList_<em>jsp</em>.<em>class</em>rn org.apache.jasper.<em>compile</em>r.SmapUtil$SDEInstaller.(SmapUtil.java:237)rn org.apache.jasper.<em>compile</em>r.SmapUtil$SDEInstaller.install(SmapUtil.java:225)rn org.apache.jasper.<em>compile</em>r.SmapUtil.installSmap(SmapUtil.java:153)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:429)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:458)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:553)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrn忙了两天了,也看过网上的各种解决方法,还是不行,同样的<em>jsp</em> 在另一个工程中运行没有问题.....rn请各位高手指教!
求助:Unable to compile class for JSP,linux
出错信息:rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnAn error occurred at line: 7 in the generated java filernOnly a type can be imported. com.utils resolves to a packagernrnAn error occurred at line: 16 in the <em>jsp</em> file: /console/default/fileUpload.<em>jsp</em>rnutils cannot be resolvedrn13: rn14: String dir = application.getRealPath("/")+"conf/config.xml";rn15: System.out.println(dir);rn16: String initpath = utils.getPath(dir);rn17: System.out.println("---"+initpath+"---");rn18: rn19: String reqPath = "";rnrn
异常信息 org.apache.jasper.JasperException: Unable to compile class for JSP:
我的开发环境是:Tomcat6.0/jdk1.6/MyEclipse 7.0/SQL Server 2005rn 今天在做练习的时候 遇到这样的问题 不知道是哪里错了 前辈请指点 rn[code=Java]rn错误信息:org.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP:rnrnAn error occurred at line: 19 in the <em>jsp</em> file: /index.<em>jsp</em>rnProductBean cannot be resolved to a typern16: String sql = "select * from productdetails where ProductId='"+p_productID+"'";rn17: Collection col = product.getProduct(sql);rn18: Iterator it = col.iterator();rn19: ProductBean temp = new ProductBean();rn20: if(it.hasNext())rn21: temp = (ProductBean)it.next();rn22: p_productname = temp.getProductname();rn[/code]rnrnrnrn然后信息里说的 JSP中第19行 是一个JavaBean的实例 JSP中的代码:rn[code=Java]rnrn 产品详细信息rn //这个类是一个数据库连接类 用于查找表里的值rn //声明对象用于存储表里的属性rn //同上rn rnrn //表单提交到本页rn rn rnrn //根据用户输入的值 到数据库里查找对应用户输入的信息 并显示.. rn 产品名称: rn 产品类型: rn 产品价格: rn 品牌: rn 说明: rn rn[/code]
部署在tomcat 6下的jsp不能编译
     昨天在tomcat 6下测试部署web项目发布,出现如下问题:rn rnAn error occurred at line: 22 in the generated java fileThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryrnStacktrace: a...
JSP Unable to compile问题
新装一AIX 5.3服务器,安装tomcat后,访问tomcat中example都报错,错误类似于:org.apache.jasper.JasperException: Unable to <em>compile</em> 注意:反对使用 sun.tools.javac.Main。rn/opt/tomcat/jakarta-tomcat-3.3.1/work/DEFAULT/examples/<em>jsp</em>/num/numguess_1.java:30: 找不到类 <em>jsp</em>.num.JspFactory。rn JspFactory _<em>jsp</em>xFactory = null;rnrn安装目录结构如下:rnjava- /usr/java14rntomcat-/opt/tomcat/jakarta-tomcat-3.3.1rnrn系统环境变量如下:rnroot .profile rnJAVA_HOME=/usr/java14rnPATH=$JAVA_HOME/bin:$PATHrnCLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jarrnexport PATH JAVA_HOME CLASSPATHrnrn/etc/environmentrnPATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java14/jre/bin:/usr/java14/bin:/opt:/opt/tomcat:/opt/tomcat/jakarta-tomcat-3.3.1/bin:/opt/tomcat/jakarta-tomcat-3.3.1/lib:.rnrn啥原因啊?
Unable to compile class for JSP找不出错误
显示是ClassNotFoundException: org.apache.<em>jsp</em>.BBS.WebRoot.article_<em>jsp</em>rnUnable to <em>compile</em> <em>class</em> for JSP: rn的错误 可是就是不知道哪错了 找不出来!!rnrnrnrnrnrnrnrnrnrnrnrn rn 论坛: Java语言*初级版rn rn rn rn rn rn rn rn rn ;ti rn rn rn rn rn rn rn rn rn rn rn rn rn 论坛: Java语言*初级版rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 发表新主题rn rn rn rn rn rn rn rn rn rn rn rn rn 帖子: 152,709rn rn -rn rn 主题: 37,048rn rn -rn rn 过滤:rn rn rn 所有主题rn rn rn 未解决的问题rn rn rn 已解决的问题rn rn rn 精华区rn rn rn rn -rn 页数: 1,482 - [ 1 2 3 4 5 | 下一页rn ] rn rn rn rn rn rn rn rn rn rn rn it = articles.iterator(); it.hasNext();)rn Article a = it.next();rn String preStr = "";rn for(int i=0; irn rn rn rn rn rn rn rn 主题rn rn rn rn 作者 rn rn rn rn rn 查看 rn rn rn rn 回复rn rn rn 最后发表rn rn rn rn rn rn rn rn giftrn rn rn rn 3,178rn rn rn 8rn rn rn rn rn rn 最后发表:rn crab1 »rn rn rn rn rn rn rn rn rn rn rn rn rn rn irn rn rn rn rn rn rn rn rn rn rn Forum Homern |rn Loginrn / Register |rn Creatern Account |rn Searchrn rn C hinaJ avaW orld.com rn rn rn rn rn rn rn rn rn rn rn rn
Unable to compile class for JSP的问题 急!!
请各位帮我看看我的代码rn我不知大哪里出问题了rn下面的语句报错了rn我已经导入了java.util.*, order.*两个包了。rnrnList orderList = orderManager.chooseSort(choose, userId);rnrn请大家帮帮忙~!
错误 org.apache.jasper.JasperException: Unable to compile class for JSP
错误:rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 9 in the <em>jsp</em> file: /tijiaozhuce.<em>jsp</em>rnGenerated servlet error:rnC:\Tomcat 5.0\work\Catalina\localhost\biyesheji\org\apache\<em>jsp</em>\tijiaozhuce_<em>jsp</em>.java:59: cannot resolve symbolrnsymbol : <em>class</em> DBSQLManager rnlocation: <em>class</em> org.apache.<em>jsp</em>.tijiaozhuce_<em>jsp</em>rn DBSQLManager dbsm=new DBSQLManager();rn ^rnrnrnAn error occurred at line: 9 in the <em>jsp</em> file: /tijiaozhuce.<em>jsp</em>rnGenerated servlet error:rnC:\Tomcat 5.0\work\Catalina\localhost\biyesheji\org\apache\<em>jsp</em>\tijiaozhuce_<em>jsp</em>.java:59: cannot resolve symbolrnsymbol : <em>class</em> DBSQLManager rnlocation: <em>class</em> org.apache.<em>jsp</em>.tijiaozhuce_<em>jsp</em>rn DBSQLManager dbsm=new DBSQLManager();rn ^rn2 errorsrnrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:332)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:412)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:472)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:451)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnrnrnrnrnrnrn我把两个CLASS文件丢在web-inf里的CALSS里 rnrn 一个是DBSQLManager.<em>class</em>一个是DbConnection.<em>class</em>rnrnrnrn是哪出错了呢  求高手,,,,,rnrnrnrn 菜鸟等待,,,,,rn
为什么时不时的出现Unable to compile class for JSP
[code=Java]org.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:594)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnroot cause rnrnjava.io.FileNotFoundException: D:\Tomcat 6\work\Catalina\localhost\kf\org\apache\<em>jsp</em>\error\loginError_<em>jsp</em>.java (拒绝访问。)rn java.io.FileOutputStream.open(Native Method)rn java.io.FileOutputStream.(Unknown Source)rn java.io.FileOutputStream.(Unknown Source)rn org.apache.jasper.<em>compile</em>r.Compiler.setupContextWriter(Compiler.java:276)rn org.apache.jasper.<em>compile</em>r.Compiler.generateJava(Compiler.java:215)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:332)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:312)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:299)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:637)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrn[/code]rnrnrn一会儿好了,一会儿又不行了。。。rn在本地测试的时候没有问题,一传上服务器上,这问题就来了。。
javaWeb项目报错:Unable to compile class for JSP
昨天还正常,今天早上开始报错,在网上查找相关资料,有两种说法:n1.项目下的jar包和tomcat下的jar包有冲突 n2.tomcat配置文件需要配置一个节点,如下图n![图片说明](https://img-ask.csdn.net/upload/201607/16/1468655174_259208.png)nn下面是我项目报的错误,请帮忙看下(被折磨了一上午还没搞定),谢谢n![图片说明](https://img-ask.csdn.net/upload/201607/16/1468654940_760126.png)
请求帮助:Unable to compile class for JSP
小弟最近在调试struts程序时遇到一个问题,自己搞了好久也搞不定,请大家一定帮忙!!下面是错误代码:rnrnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: org.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnGenerated servlet error:rnThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryrnrnrn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:565)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:354)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnroot cause rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnGenerated servlet error:rnThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:329)rn org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass(JDTCompiler.java:415)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:308)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:286)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:273)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:566)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)rn org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.2 logs.rnrnrn
Unable to compile class for JSP 怎么解决啊.
我平台Mysql 5.0,netbeans 5.5rn做的东西一开始能运行,忽然就rnrnUnable to <em>compile</em> <em>class</em> for JSPrnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:342)rn org.apache.jasper.<em>compile</em>r.AntCompiler.generateClass(AntCompiler.java:248)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:288)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:267)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:255)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:556)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)rnrnrnroot cause rnrnCompile failed; see the <em>compile</em>r error output for details.rn org.apache.tools.ant.taskdefs.Javac.<em>compile</em>(Javac.java:933)rn org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)rn org.apache.jasper.<em>compile</em>r.AntCompiler.generateClass(AntCompiler.java:216)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:288)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:267)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:255)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:556)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.9rnrnrnrn求解!!!!!!!
Unable to compile for JSP
我用一个单独的页面处理异常,出现以上错误.rn而在本页内处理却可以,请教这是怎么回事?
HTTP status 500 unable to compile class for jsp
HTTP status 500 <em>unable</em> to <em>compile</em> <em>class</em> for <em>jsp</em>报这个错,排查了好久,不是代码的问题,不是jar包的问题,不是环境变量,不是tomcat版本的问题,是环境里有人么设置有问题么?求大神帮忙解决啊
错误:org.apache.jasper.JasperException: Unable to compile class for JSP:
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnrnrnrnStacktrace:rn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass(JDTCompiler.java:435)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:298)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:277)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:265)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:564)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn com.dfmcsoft.util.SetEncodingFilter.doFilter(SetEncodingFilter.java:60)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.23 帮忙看看错误出在哪了,谢谢了!
求救!org.apache.jasper.JasperException: Unable to compile class for JSP
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnrnrnrnrnStacktrace:rn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass(JDTCompiler.java:435)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:298)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:277)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:265)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:564)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn com.webtier.ManagerServlet.checkManager(ManagerServlet.java:148)rn com.webtier.ManagerServlet.doGet(ManagerServlet.java:36)rn com.webtier.ManagerServlet.doPost(ManagerServlet.java:307)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.23 logs.rn这到底是什么错误呢???rn
请问“Unable to compile class for JSP”是什么错误?
打开查询程序页面后会报出如下错误:rnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: -1 in the <em>jsp</em> file: nullrnrnGenerated servlet error:rn [javac] Compiling 1 source filernrnThe system is out of resources.rnConsult the following stack trace for details.rnjava.lang.OutOfMemoryErrorrnrn前两天都还没出现过这样的错误,可是从昨天开始就这样了,我以为是数据库里没数据就会这样,但是以前数据库里也没有数据也并不会报错,请好心人帮忙解答一下为什么会出现这样的错误。不胜感激!
救救我啊Unable to compile class for JSP
问题一rnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 8 in the <em>jsp</em> file: /getStudent.<em>jsp</em>rnrnGenerated servlet error:rn [javac] Compiling 1 source filernrnI:\Tomcat 5.0\work\Catalina\localhost\test\org\apache\<em>jsp</em>\getStudent_<em>jsp</em>.java:42: cannot resolve symbolrnsymbol : <em>class</em> student rnlocation: <em>class</em> org.apache.<em>jsp</em>.getStudent_<em>jsp</em>rn student student = null;rn ^rnrnrnrnAn error occurred at line: 8 in the <em>jsp</em> file: /getStudent.<em>jsp</em>rnrnGenerated servlet error:rnI:\Tomcat 5.0\work\Catalina\localhost\test\org\apache\<em>jsp</em>\getStudent_<em>jsp</em>.java:44: cannot resolve symbolrnsymbol : <em>class</em> student rnlocation: <em>class</em> org.apache.<em>jsp</em>.getStudent_<em>jsp</em>rn student = (student) pageContext.getAttribute("student", PageContext.PAGE_SCOPE);rn ^rnrnrnrnAn error occurred at line: 8 in the <em>jsp</em> file: /getStudent.<em>jsp</em>rnrnGenerated servlet error:rnI:\Tomcat 5.0\work\Catalina\localhost\test\org\apache\<em>jsp</em>\getStudent_<em>jsp</em>.java:46: cannot resolve symbolrnsymbol : <em>class</em> student rnlocation: <em>class</em> org.apache.<em>jsp</em>.getStudent_<em>jsp</em>rn student = new student();rn ^rn3 errorsrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:127)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:351)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:415)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:458)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:552)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrnnote The full stack trace of the root cause is available in the Tomcat logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.0.16rnrn问题二 rn我用javac 命令怎么突然不可以<em>编译</em>java Servlet了, <em>编译</em><em>jsp</em>Bean没有问题rnrn附 getStudent_<em>jsp</em>rnrnrnrnrn rn 学生rnrnrnrnrn rnrnrn rn 所有学生rn 新加学生rnrn rn rn rn 学生号rn 姓名rn 密码rn 籍贯rn 系别rn 性别rn 学分rn 电话rn E_mailrn 删除rn 更新rn rn rn rn rn rn rn rn rn rn rn rn rn 删除rn 更新 rn rn rn rn rn rn< rnrnrnrnstudentrnimport java.sql.*;rnpublic <em>class</em> student rn private String name;rn private String password;rn private String id;rn private String jiguan;rn private String sex;rn private String dep;rn rn public void setDep(String s)dep=s;rn public String getDep()return dep;rn public void setSex(String s)sex=s;rn public String getSex()return sex; rn public String getId() rn return id;rn rn public void setId(String id) rn this.id = id;rn rn public String getName() rn return name;rn rn public void setName(String name) rn this.name = name;rn rn public String getPassword() rn return password;rn rn public void setPassword(String password) rn this.password = password;rn rnrn public String getJiguan() rn return jiguan;rn rn public void setJiguan(String jiguan) rn this.jiguan = jiguan;rn rn rn rn public boolean hasLogin(String id) //检查该学生是否已经注册rn boolean f=true;rn String sql="select id from student where id ='"+id+"'";rn sqlBean db =new sqlBean();rn tryrn ResultSet rs=db.executeQuery(sql);rn if(rs.next()) f=false;rn else f=true;rn catch(Exception e) e.getMessage();rn return f;rn rn rn public ResultSet getStudent()rn String sql="select * from student ";rn sqlBean db= new sqlBean();rn ResultSet rs = db.executeQuery(sql);rn return rs;rn rn rn rn public void updateStudent()rn rn String sql="update student "+rn " set name='"+name+"',sex='"+sex+"',department='"+dep+"', "+rn "password='"+password+"',jiguan='"+jiguan+"' "+rn " where id='"+id+"' ";rn sqlBean db= new sqlBean();rn db.executeInsert(sql);rn rn rn rn public void deleteStudent()rn rn String sql="delete from student where id ='"+id+"' ";rn sqlBean db= new sqlBean();rn db.executeDelete(sql);rn rn rn public int deleteStudent(String id)rn int num=0;rn String sql="delete from student where id ='"+id+"' ";rn sqlBean db= new sqlBean();rn num=db.executeDelete(sql);rn return num;rn rn public void addStudent() rn String sql="insert into student(name,password,id,sex,department,jiguan) "+ rn "VALUES('"+name+"','"+password+"','"+id+"','"+sex+"','"+dep+"','"+jiguan+"')";rn sqlBean db =new sqlBean();rn rn db.executeInsert(sql);rn rn rn rn
新手请教:Exception: Unable to compile class for JSP
我安装了jdk+tomcat4.1,检验都通过,但我把tomcat的欢迎界面的.<em>jsp</em>文件换为另一个.<em>jsp</em>文件时结果出现HTTP500的错误:rnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 1 in the <em>jsp</em> file: /index.<em>jsp</em>rnrnGenerated servlet error:rn [javac] Compiling 1 source filernrnC:\tomcat4.1\work\Standalone\localhost\_\index_<em>jsp</em>.java:42: 找不到符号rn符号: 类 datern位置: 软件包 java.utilrn out.print(new java.util.date());rnrn原代码:rnrnnow time is: rnrnrn谢谢大家指教rn
求助 org.apache.jasper.JasperException: Unable to compile class for JSP:异常
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnAn error occurred at line: 76 in the generated java filernSyntax error, insert "" to complete BlockrnrnAn error occurred at line: 86 in the generated java filernSyntax error on token "", delete this tokenrnrnAn error occurred at line: 87 in the generated java filernSyntax error, insert "" to complete ClassBodyrnrnStacktrace:rn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass(JDTCompiler.java:423)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:308)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:286)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:273)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:566)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.rn---------------------------------------------rn环境rnMyEclipse 5.5 JDK 1.5 TOMCAT 6.0
程序报Unable to compile class for JSP错误
struts1 做的web项目,在本地和一台windows服务器上运行正常,rn上传到liunx服务器上有几个页面报错,报错信息为:Unable to <em>compile</em> <em>class</em> for JSP rn请问这是什么原因? 如何解决?
sos:org.apache.jasper.JasperException: Unable to compile class for JSP
运行<em>jsp</em>页面报如下异常,大家给个解决方案!! 急急........rn高积分奖励rnrn008-03-01 16:24:46 [日志信息] Servlet.service() for servlet <em>jsp</em> threw exceptionrn[color=#3366FF]org.apache.jasper.JasperException[/color]: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 20 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Category cannot be resolved or is not a typernrnAn error occurred at line: 20 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Category cannot be resolved or is not a typernrnGenerated servlet error:rncom.ORM.Category cannot be resolved or is not a typernrnAn error occurred at line: 149 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Category cannot be resolved or is not a typernrnAn error occurred at line: 149 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Category cannot be resolved or is not a typernrnGenerated servlet error:rncom.ORM.Category cannot be resolved or is not a typernrnAn error occurred at line: 184 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Merchandise cannot be resolved or is not a typernrnAn error occurred at line: 184 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Merchandise cannot be resolved or is not a typernrnGenerated servlet error:rncom.ORM.Merchandise cannot be resolved or is not a typernrnAn error occurred at line: 232 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Merchandise cannot be resolved or is not a typernrnAn error occurred at line: 232 in the <em>jsp</em> file: /default.<em>jsp</em>rnGenerated servlet error:rncom.ORM.Merchandise cannot be resolved or is not a typernrnGenerated servlet error:rncom.ORM.Merchandise cannot be resolved or is not a typernrnrn at org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError([color=#3366FF]DefaultErrorHandler.java:84[/color])rn at org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError([color=#3366FF]ErrorDispatcher.java:328[/color])rn at org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass([color=#3366FF]JDTCompiler.java:397[/color])rn at org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>([color=#3366FF]Compiler.java:288[/color])rn at org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>([color=#3366FF]Compiler.java:267[/color])rn at org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>([color=#3366FF]Compiler.java:255[/color])rn at org.apache.jasper.JspCompilationContext.<em>compile</em>([color=#3366FF]JspCompilationContext.java:556[/color])rn at org.apache.jasper.servlet.JspServletWrapper.service([color=#3366FF]JspServletWrapper.java:293[/color])rn at org.apache.jasper.servlet.JspServlet.serviceJspFile([color=#3366FF]JspServlet.java:291[/color])rn at org.apache.jasper.servlet.JspServlet.service([color=#3366FF]JspServlet.java:241[/color])rn at javax.servlet.http.HttpServlet.service([color=#3366FF]HttpServlet.java:802[/color])rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter([color=#3366FF]ApplicationFilterChain.java:252[/color])rn at org.apache.catalina.core.ApplicationFilterChain.doFilter([color=#3366FF]ApplicationFilterChain.java:173[/color])rn at org.apache.catalina.core.ApplicationDispatcher.invoke([color=#3366FF]ApplicationDispatcher.java:672[/color])rn at org.apache.catalina.core.ApplicationDispatcher.processRequest([color=#3366FF]ApplicationDispatcher.java:463[/color])rn at org.apache.catalina.core.ApplicationDispatcher.doForward([color=#3366FF]ApplicationDispatcher.java:398[/color])rn at org.apache.catalina.core.ApplicationDispatcher.forward([color=#3366FF]ApplicationDispatcher.java:301[/color])rn at org.apache.struts.action.RequestProcessor.doForward([color=#3366FF]RequestProcessor.java:1085[/color])rn at org.apache.struts.action.RequestProcessor.processForwardConfig([color=#3366FF]RequestProcessor.java:398[/color])rn at org.apache.struts.action.RequestProcessor.process([color=#3366FF]RequestProcessor.java:241[/color])rn at org.apache.struts.action.ActionServlet.process([color=#3366FF]ActionServlet.java:1196[/color])rn at org.apache.struts.action.ActionServlet.doGet([color=#3366FF]ActionServlet.java:414[/color])rn at javax.servlet.http.HttpServlet.service([color=#3366FF]HttpServlet.java:689[/color])rn at javax.servlet.http.HttpServlet.service([color=#3366FF]HttpServlet.java:802[/color])rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter([color=#3366FF]ApplicationFilterChain.java:252[/color])rn at org.apache.catalina.core.ApplicationFilterChain.doFilter([color=#3366FF]ApplicationFilterChain.java:173[/color])rn at com.ricky.filter.CharacterEncodingFilter.doFilter([color=#3366FF]CharacterEncodingFilter.java:33[/color])rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter([color=#3366FF]ApplicationFilterChain.java:202[/color])rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)rn at java.lang.Thread.run(Thread.java:595)rn2008-03-01 16:24:46 [日志信息] Servlet.service() for servlet action threw exceptionrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP
为什么会这样? Unable to compile class for JSP
<em>jsp</em>.<em>jsp</em>:rnrn rn rnrnSimpleBean.java:rnrnimport java.io.*; rnimport javax.servlet.http.HttpServletRequest; rnimport javax.servlet.http.HttpServletResponse; rnimport javax.servlet.ServletInputStream; rnrnpublic <em>class</em> SimpleBean rnrnpublic void doUpload(HttpServletRequest request) throws rn IOException rn PrintWriter pw = new PrintWriter( rn new BufferedWriter(new FileWriter("Demo.out"))); rn ServletInputStream in = request.getInputStream(); rn int i = in.read(); rn while (i != -1) rn pw.print((char) i); rn i = in.read(); rn rn pw.close(); rn rn rnrn<em>jsp</em>放在examples/<em>jsp</em>下,<em>class</em>放在\examples\WEB-INF\<em>class</em>es下rnrn运行<em>jsp</em>出错:rnAn error occurred at line: 1 in the <em>jsp</em> file: /<em>jsp</em>/<em>jsp</em>.<em>jsp</em>rnrnGenerated servlet error:rnD:\JBuilder7\jakarta-tomcat-4.0.3\work\localhost\examples\<em>jsp</em>\<em>jsp</em>$<em>jsp</em>.java:56: Class org.apache.<em>jsp</em>.SimpleBean not found.rn SimpleBean TheBean = null;rn ^rnrnrnAn error occurred at line: 1 in the <em>jsp</em> file: /<em>jsp</em>/<em>jsp</em>.<em>jsp</em>rnrnGenerated servlet error:rnD:\JBuilder7\jakarta-tomcat-4.0.3\work\localhost\examples\<em>jsp</em>\<em>jsp</em>$<em>jsp</em>.java:59: Class org.apache.<em>jsp</em>.SimpleBean not found.rn TheBean= (SimpleBean)rn ^rnrnrnAn error occurred at line: 1 in the <em>jsp</em> file: /<em>jsp</em>/<em>jsp</em>.<em>jsp</em>rnrnGenerated servlet error:rnD:\JBuilder7\jakarta-tomcat-4.0.3\work\localhost\examples\<em>jsp</em>\<em>jsp</em>$<em>jsp</em>.java:64: Class org.apache.<em>jsp</em>.SimpleBean not found.rn TheBean = (SimpleBean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "SimpleBean");
myeclipse中出现Unable to compile class for JSP
[color=#FF0000]我用的是myeclipse8.5,最近在学着做一个bbs项目,在JSP文件中调用一个叫Article.java的类,却出现了如下错误:[/color]rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 3 in the <em>jsp</em> file: /test.<em>jsp</em>rnGenerated servlet error:rnArticle cannot be resolved to a typernrnAn error occurred at line: 3 in the <em>jsp</em> file: /test.<em>jsp</em>rnGenerated servlet error:rn[b]Article [/b]cannot be resolved to a typernrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:328)rn org.apache.jasper.<em>compile</em>r.JDTCompiler.generateClass(JDTCompiler.java:409)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:288)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:267)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:255)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:563)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.rnrnrnrn代码大概意思如下:rnrnrnrnrn[color=#FF0000]Article位于bbs包中,myeclipse中并没有报错,只是打开网页时出错,WEB-INF\<em>class</em>es目录中也发现Article.<em>class</em>,网上查了很多方法都没解决。rnrn另外,还有一个奇怪的现象,当不断刷新这个页面的时候,错误页面和正常页面总是交替出现,而且还是正常的页面出现的次数多,我以为是ie缓存的问题,但使用了rnresponse.setHeader("Pragma","No-cache"); rnresponse.setHeader("Cache-Control","no-cache"); rnresponse.setDateHeader("Expires", 0);rn和rn rn rn rn都没有用,不知什么方法可以解决。rnrn新接触这个感觉学起来很费力,希望大虾们能帮帮我。rn[/color]rn
Unable to compile class for JSP 神马东东啊?
HTTP Status 500 -rnrntype Exception reportrnrnmessagernrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexceptionrnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:346)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:414)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:472)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:451)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.baosight.iplat4j.security.log.LoggerContextInitializingFilter.doFilter(LoggerContextInitializingFilter.java:71)rn com.baosight.iplat4j.web.filter.FilterChainProxy$1.doFilter(FilterChainProxy.java:100)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)rn org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)rn org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn com.baosight.iplat4j.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:74)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn com.baosight.iplat4j.security.AuthenticationProcessingFilter.doFilter(AuthenticationProcessingFilter.java:135)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)rn org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)rn com.baosight.iplat4j.web.filter.FilterParamInitDelegator.doFilter(FilterParamInitDelegator.java:35)rn com.baosight.iplat4j.web.filter.FilterChainProxy$1.doFilter(FilterChainProxy.java:100)rn com.baosight.iplat4j.web.filter.PartialLoadFilter.doFilter(PartialLoadFilter.java:43)rn com.baosight.iplat4j.web.filter.FilterChainProxy.doFilterInternal(FilterChainProxy.java:106)rn com.baosight.iplat4j.web.filter.FilterChainProxy.doFilter(FilterChainProxy.java:74)rn com.baosight.spes.system.UserIdAcquireFilter.doFilter(UserIdAcquireFilter.java:131)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rnrnroot causernrnUnable to find a javac <em>compile</em>r;rncom.sun.tools.javac.Main is not on the <em>class</em>path.rnPerhaps JAVA_HOME does not point to the JDKrn org.apache.tools.ant.taskdefs.<em>compile</em>rs.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)rn org.apache.tools.ant.taskdefs.Javac.<em>compile</em>(Javac.java:935)rn org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:382)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:472)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:451)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.baosight.iplat4j.security.log.LoggerContextInitializingFilter.doFilter(LoggerContextInitializingFilter.java:71)rn com.baosight.iplat4j.web.filter.FilterChainProxy$1.doFilter(FilterChainProxy.java:100)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)rn org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)rn org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn com.baosight.iplat4j.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:74)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn com.baosight.iplat4j.security.AuthenticationProcessingFilter.doFilter(AuthenticationProcessingFilter.java:135)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:193)rn org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)rn org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)rn org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)rn com.baosight.iplat4j.web.filter.FilterParamInitDelegator.doFilter(FilterParamInitDelegator.java:35)rn com.baosight.iplat4j.web.filter.FilterChainProxy$1.doFilter(FilterChainProxy.java:100)rn com.baosight.iplat4j.web.filter.PartialLoadFilter.doFilter(PartialLoadFilter.java:43)rn com.baosight.iplat4j.web.filter.FilterChainProxy.doFilterInternal(FilterChainProxy.java:106)rn com.baosight.iplat4j.web.filter.FilterChainProxy.doFilter(FilterChainProxy.java:74)rn com.baosight.spes.system.UserIdAcquireFilter.doFilter(UserIdAcquireFilter.java:131)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:78)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)rn
关于 Unable to compile class for JSP 问题?
晕了rn做的 Bean 文件 在tomcat4 里面可以用rnj2sdk1.4 的环境rn同一台机器, j2sdk 的路径应该没问题rn装了一个 tomcat5的版本rn把bean 文件拷进去, 结果运行<em>jsp</em>文件提示错误 这是什么问题?rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnAn error occurred at line: 4 in the <em>jsp</em> file: /login.<em>jsp</em>rnGenerated servlet error:rnD:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\<em>jsp</em>\login_<em>jsp</em>.java:46: cannot resolve symbolrnsymbol : <em>class</em> dbq rnlocation: <em>class</em> org.apache.<em>jsp</em>.login_<em>jsp</em>rn dbq db = null;rn ^rnbean 文件放在 D:\Tomcat 5.0\webapps\ROOT\WEB-INF 下 。应该没问题啊rnrnrnrnrnrnrnrnrn
求“Unable to compile class for JSP”解决办法
用localhost打开网页时,出现如下错误。rnindex.<em>jsp</em>中的27行是一个标签。。。。rn————————————————————————————rn严重: Servlet.service() for servlet debug<em>jsp</em> threw exceptionrnorg.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSP: rnrnAn error occurred at line: 27 in the generated java filernThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryrn
急!!!Unable to compile class for JSP,页面打不开!!!
org.apache.jasper.JasperException: Unable to <em>compile</em> <em>class</em> for JSPrnrnGenerated servlet error:rnC:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\shopCite\org\apache\<em>jsp</em>\product\index_<em>jsp</em>.java:6: 需要 rnimport ;rn ^rn1 错误rnrnrnrn org.apache.jasper.<em>compile</em>r.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)rn org.apache.jasper.<em>compile</em>r.ErrorDispatcher.javacError(ErrorDispatcher.java:332)rn org.apache.jasper.<em>compile</em>r.Compiler.generateClass(Compiler.java:412)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:472)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:451)rn org.apache.jasper.<em>compile</em>r.Compiler.<em>compile</em>(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.<em>compile</em>(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrn一个index页面出现这样的错,实在<em>无法</em>解决,请各位大虾帮帮忙!!!rn
救急,看下问题,Unable to compile class for JSP
http://topic.csdn.net/u/20110123/22/d946b4d1-21d2-4127-9115-88ed2ba4773f.html?seed=829593335&r=71378928#r_71378928rn困扰2天了。。。
AT89C51中文资料下载
讲述at89c51的相关知识,很仔细,易于理解 相关下载链接:[url=//download.csdn.net/download/zcangel88/2549146?utm_source=bbsseo]//download.csdn.net/download/zcangel88/2549146?utm_source=bbsseo[/url]
AVR指令详解(英文版)下载
Instruction Set Nomenclature、I/O Registers、Conditional Branch Summary... 相关下载链接:[url=//download.csdn.net/download/sacole1/2724201?utm_source=bbsseo]//download.csdn.net/download/sacole1/2724201?utm_source=bbsseo[/url]
用VB编程的一个矢量绘图控件下载
用VB编程的一个矢量绘图控件,有源代码,可以进行一般的绘图操作和线性的改变,颜色的改变等等 相关下载链接:[url=//download.csdn.net/download/zyf19871205/3330301?utm_source=bbsseo]//download.csdn.net/download/zyf19871205/3330301?utm_source=bbsseo[/url]
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 jsp课程设计数据库 jsp数据库课程设计
我们是很有底线的