org.apache.jasper.JasperException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • This bug has already being scheduled to be fixed in JIRA 4.2, so this is just for the record. As far as the investigation goes, this problem only occurs in JIRA EAR/WAR installation type and using JDK 1.5+. Here are the steps to reproduce the problem: - Download JIRA 4.1 war. - Install and configure. - Attempt to run. - First attempt at resolving the default splash page results in exceptions thrown. The following stack trace is thrown: {noformat} ... org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 29 in the jsp file: /includes/decorators/header.jsp Generated servlet error: Type mismatch: cannot convert from Object to KeyboardShortcutManager at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297) ... {noformat} It seems that there is a fundamental issue with the JSP code itself when being used with JDK 1.5+. The affected file is {{header.jsp}} file which is located in <JIRA_install>/atlassian-jira/includes/decorators/ directory: *Original:* {noformat} ... ... WebResourceManager webResourceManager = ComponentManager.getInstance().getWebResourceManager(); final KeyboardShortcutManager shortcutManager = ComponentManager.getComponentInstanceOfType(KeyboardShortcutManager.class); ... {noformat} *Fixed:* {noformat} ... WebResourceManager webResourceManager = ComponentManager.getInstance().getWebResourceManager(); final KeyboardShortcutManager shortcutManager = (KeyboardShortcutManager) ComponentManager.getComponentInstanceOfType(KeyboardShortcutManager.class); ... {noformat} There needs to be an explicit cast made to {{KeyboardShortcutManager}}. Cheers.
    via by Joachim Ooi [Atlassian],
  • This bug has already being scheduled to be fixed in JIRA 4.2, so this is just for the record. As far as the investigation goes, this problem only occurs in JIRA EAR/WAR installation type and using JDK 1.5+. Here are the steps to reproduce the problem: - Download JIRA 4.1 war. - Install and configure. - Attempt to run. - First attempt at resolving the default splash page results in exceptions thrown. The following stack trace is thrown: {noformat} ... org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 29 in the jsp file: /includes/decorators/header.jsp Generated servlet error: Type mismatch: cannot convert from Object to KeyboardShortcutManager at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297) ... {noformat} It seems that there is a fundamental issue with the JSP code itself when being used with JDK 1.5+. The affected file is {{header.jsp}} file which is located in <JIRA_install>/atlassian-jira/includes/decorators/ directory: *Original:* {noformat} ... ... WebResourceManager webResourceManager = ComponentManager.getInstance().getWebResourceManager(); final KeyboardShortcutManager shortcutManager = ComponentManager.getComponentInstanceOfType(KeyboardShortcutManager.class); ... {noformat} *Fixed:* {noformat} ... WebResourceManager webResourceManager = ComponentManager.getInstance().getWebResourceManager(); final KeyboardShortcutManager shortcutManager = (KeyboardShortcutManager) ComponentManager.getComponentInstanceOfType(KeyboardShortcutManager.class); ... {noformat} There needs to be an explicit cast made to {{KeyboardShortcutManager}}. Cheers.
    via by Joachim Ooi [Atlassian],
  • JSP Page becomes too long to get compile
    via by Unknown author,
  • Tomcat 6.0 Jasper Exception
    via Stack Overflow by partkyle
    ,
    • org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 29 in the jsp file: /includes/decorators/header.jsp Generated servlet error: Type mismatch: cannot convert from Object to KeyboardShortcutManager at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328) at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    andyglickandyglick
    12 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    34 more bugmates