Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-19241

JSP compliation error in Jboss 4.2.1

XMLWordPrintable

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      If you deploy JIRA in Jboss 4.2.1 and older, 1.5+ JVM and navigate to the view projects page, you get the following stacktrace:

      2009-09-24 08:25:34,613 http-127.0.0.1-8080-16 ERROR test 30333x38x1 1pevvl4 /secure/project/ViewProjects.jspa [web].[localhost].[/jira].[action]] Servlet.service() for servlet action threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP: 
      
      An error occurred at line: 39 in the jsp file: /decorators/admin.jsp
      Type mismatch: cannot convert from Object to ReindexMessageManager
      36:                 HttpSession httpSession = request.getSession(false); //dont create the session if there isnt one
      37:                 User remoteUser = httpSession != null ? (User) httpSession.getAttribute(DefaultAuthenticator.LOGGED_IN_KEY) : null;
      38: 
      39:                 ReindexMessageManager reindexMessageManager = ComponentManager.getComponentInstanceOfType(ReindexMessageManager.class);
      40:                 final String message = reindexMessageManager.getMessage(remoteUser);
      41:                 if (!StringUtils.isBlank(message))
      42:                 {
      
      
      Stacktrace:
      	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
      	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
      	at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
      	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
      	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
      	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
      	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
      	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
      	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      

      This problem is being caused by the fact that JIRA 4.0 is not compatible with the JAVA 1.4 compiler and a bug in Jboss 4.2.0 reported in JBAS-4605.

              Unassigned Unassigned
              bdziedzic Bogdan Dziedzic [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: