org.apache.jasper.JasperException: Unable to compile class for JSP
配置的问题!

解决方案 »

  1.   

    要设置环境变量,JAVA_HOME指到你的JDK目录
      

  2.   

    No Java compiler was found to compile the generated source for the JSP. 
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK 
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart. 
    If using an alternate Java compiler, please check its installation and access path.
    说明你JAVA_HOME没有设置好或者,你的classpath没有包含tools.jar
      

  3.   

    你的NewsVO 好像并没有被导入class NewsBean文件中
      

  4.   

    在classpath下只要放下tools.jar路径?怎么还是没用?
      

  5.   

    格式不对吧!!!
    要在tools.jar后面加上:.
      

  6.   

    类的路径不对吧,是不是放在默认的class目录下了?还有数据库驱动没有加载吧,你试试在bean里加上import com.microsoft.jdbc.sqlserver.SQLServerDriver;
      

  7.   

    要设置环境变量,JAVA_HOME指到你的JDK目录
      

  8.   

    在classpath中加上tools.jar的路径
      

  9.   

    唉,我也出这毛病。不知道咋整的,我显示的是空指针。NN的。CSDN里的高手都不出现。。
    同情啊,兄弟/。。
      

  10.   

    作个只现实时间的jsp,运行看看!不就知道是不是配置的问题了!