2 Replies Latest reply on Jun 19, 2007 8:23 AM by Laszlo Kozma

    registration example not working

    hilz bilz Newbie

      Hi.
      I tried out few seam examples, and all the ones i tried worked fine except the "registration" example which is the one i really need to work so i can start learning, since it is the simplest one.
      I am using JDK 1.6.0 (b105) Tomcat 6.0.9, seam 1.1.6 GA.
      can anyone tell me what i am missing?
      Here is what i get when i visit the url of that example:


      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/register_jspx, 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
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)

      root cause

      javax.faces.FacesException: 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/register_jspx, 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.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:422)
      org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
      org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

      root cause

      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/register_jspx, 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)
      org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
      org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
      org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

      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/register_jspx, 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.register_jspx._jspInit(register_jspx.java:35)
      org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:80)
      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)
      org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
      org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
      org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
      org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)

      note The full stack trace of the root cause is available in the Apache Tomcat/6.0.9 logs.
      Apache Tomcat/6.0.9