HTTP 500

Help
2009-02-18
2013-04-25
  • Radek Jakis
    Radek Jakis
    2009-02-18

    Hi,

    I'm running Debian + Tomcat 5.5.20 + Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03).

    I deployed yawebmail via Tomcat GUI. When I'm trying enter yawebmail I get HTTP Status 500 and "javax.servlet.ServletException: Exception in JSP: /logon.jsp:7" (Full output below)

    In act of desperation I gave 0777 to all tomcat dirs I've found - dodin't works.

    I'll be pleased for any suggestions.

    Regards

    exception

    javax.servlet.ServletException: Exception in JSP: /logon.jsp:7

    4: <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    5: <%@ taglib uri="/WEB-INF/cuic.tld" prefix="cuic" %>
    6:
    7: <f:view>
    8:
    9:   <f:loadBundle basename="de.lotk.yawebmail.properties.application"
    10:           var="applicationProperties"/>

    Stacktrace:
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        java.security.AccessController.doPrivileged(Native Method)
        org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)

    root cause

    javax.faces.FacesException: Exception in JSP: /logon.jsp:7

    4: <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    5: <%@ taglib uri="/WEB-INF/cuic.tld" prefix="cuic" %>
    6:
    7: <f:view>
    8:
    9:   <f:loadBundle basename="de.lotk.yawebmail.properties.application"
    10:           var="applicationProperties"/>

    Stacktrace:
        org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
        org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
        org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
        org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        java.security.AccessController.doPrivileged(Native Method)
        org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
        sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        java.lang.reflect.Method.invoke(Method.java:585)
        org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        java.security.AccessController.doPrivileged(Native Method)
        javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
        org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)

     
    • Stephan Sann
      Stephan Sann
      2009-02-18

      Hi,

      do you have another MyFaces version somewhere in your classpath?

      Check out the lib-directories of tomcat. If you don't find anything there, check other deployed Webapps; as an experiment you could undeploy all other Webapps (normally Webapps should all have their own classpath separated from each other, but you never know (JBoss for example uses a Unified Class Loader)).

      Let me know if this helps you any further...

      Best regards
      Stephan

       
    • Radek Jakis
      Radek Jakis
      2009-02-19

      Hi,

      All applications except yawebmail and manager console undeployed, /var/lib/tomcat5.5/shared/lib and classes are empty.

      After deployment I'm getting message as I wrote, but after Tomcat restart I'm getting another Exception. I've tryed it 2 times - deploying, and only restart tomcat without any changes.

      After Tomcat restart I'm getting this:

      javax.servlet.ServletException: org.apache.jasper.JasperException
          javax.faces.webapp.FacesServlet.service(FacesServlet.java:154)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          java.lang.reflect.Method.invoke(Method.java:585)
          org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
          java.security.AccessController.doPrivileged(Native Method)
          javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
          org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
          org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
          java.security.AccessController.doPrivileged(Native Method)
          org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          java.lang.reflect.Method.invoke(Method.java:585)
          org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
          java.security.AccessController.doPrivileged(Native Method)
          javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
          org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
          org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)

      root cause

      javax.faces.FacesException: org.apache.jasper.JasperException
          org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:429)
          org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
          org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
          org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
          javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          java.lang.reflect.Method.invoke(Method.java:585)
          org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
          java.security.AccessController.doPrivileged(Native Method)
          javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
          org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
          org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
          java.security.AccessController.doPrivileged(Native Method)
          org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
          sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          java.lang.reflect.Method.invoke(Method.java:585)
          org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
          java.security.AccessController.doPrivileged(Native Method)
          javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
          org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
          org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)

      Regards & many thanks for help
      Radek

       
      • Stephan Sann
        Stephan Sann
        2009-02-20

        Sorry dude, my only advice is to get yourself the sources of yawebmail and to remote-debug Tomcat to see what the actual problem is...

        Good luck.
        Stephan