首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Jboss 无法编译 JSP 有关问题

2013-09-11 
Jboss 无法编译 JSP 问题报错信息如下org.apache.jasper.JasperException: Unable to compile class for J

Jboss 无法编译 JSP 问题
报错信息如下 
org.apache.jasper.JasperException: Unable to compile class for JSP 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97) 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346) 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
com.jcss.bg.filters.GeneralFilter.doFilter(GeneralFilter.java:54) 

root cause 

Compile failed; see the compiler error output for details. 
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944) 
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069) 
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455) 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 


org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
com.jcss.bg.filters.GeneralFilter.doFilter(GeneralFilter.java:54 

环境 JDK 1.4.2 
  jboss-3.2.5 

环境变量 ANT_HOME:D:\Program Files\apache-ant-1.7.1 
   
  JAVA_HOME : D:\Program Files\JDK1.4.2 
   
  Path:D:\Program Files\JDK1.4.2\bin;%SystemRoot%\system32;%SystemRoot%; 
  %SystemRoot%\System32\Wbem;D:\Program Files\Firebird\Firebird_1_5\bin;D:\Program Files\apache-ant-1.7.1\bin 
   
  classpath :D:\Program Files\JDK1.4.2\lib\dt.jar;D:\Program Files\JDK1.4.2\lib\tools.jar;.; 

JBOSS下在 D:\home\jboss\jboss-3.2.5-newsystem-master\server\wbx\deploy\jbossweb-tomcat50.sar 
  以及 
  D:\home\jboss\jboss-3.2.5-newsystem-master\server\wbx\lib 下均放了 JASPER-COMPILE.JAR与TOOL.JAR 
  依然无法解决JSP报错信息。 
   
  额,这个是一个项目中的一个模块,其他模块配置大同小异,都是JBOSS-3.2.5下,可以直接改JSP页面(运行时自动加载JSP页面)唯独这个模块不会自动更新 
  JSP,谢谢~ 


[解决办法]
学到了..
[解决办法]
Compile failed; see the compiler error output for details. 

你咋不找出details看看阿
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html

热点排行