1 Reply Latest reply on May 11, 2007 4:11 PM by Sergey Smirnov

    richfaces-demo-3.0.1.war doesn't work with Java 6 + Tomcat 6

    Thai Dang Vu Apprentice

      That war file http://maven.exadel.com/org/richfaces/richfaces-demo/3.0.1-SNAPSHOT/richfaces-demo-3.0.1-20070511.001257-47.war doesn't work with Java 1.6 + Tomcat 6.0.10. The error is

      HTTP Status 500 -
      
      type Exception report
      
      message
      
      description The server encountered an internal error () that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:274)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      
      root cause
      
      java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the class loader (instance of org/apache/jasper/servlet/JasperLoader) of the current class, org/apache/jsp/index_jsp, and the class loader (instance of org/apache/catalina/loader/StandardClassLoader) for resolved class, javax/servlet/jsp/JspApplicationContext, have different Class objects for the type javax/el/ExpressionFactory used in the signature
       org.apache.jsp.index_jsp._jspInit(index_jsp.java:22)
       org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
       org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:157)
       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:320)
       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

      but works fine with Java 1.6 + Tomcat 5.5.23.[/url]