5 Replies Latest reply on Jun 28, 2004 3:49 AM by uramisten

    unable to compile jsp after redeploying war...???

    uramisten

      Any ideas on what could possibly cause this error?

      org.apache.jasper.JasperException: Unable to compile class for JSP at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:478)


      Error only occurs if a jsp page compilation has already been attempted from that war (successful or otherwise). Then on a redeploy, this happens. Only way to get it to go away is to restart the server.. which is not a happy thing.. :(

      Any ideas on what could cause this?

        • 1. Re: unable to compile jsp after redeploying war...???
          uramisten

          no ideas huh? :( darn.
          This one is a bit of a showstopper unfortunately.. no upgrading the app without restarting the server.. :(

          • 2. Re: unable to compile jsp after redeploying war...???
            darranl

            Never seen anything like it, I have been happily redeploying wars all day without any problem.

            JBoss version?
            Servlet container?
            JDK Version?

            Is you application simply made up of JSPs or are you using EJBs as well?

            How about a full stack trace?

            Are there any more errors displayed either to the web browser or in the JBoss debug log?

            Can you put together a simple test case that demonstrates your problem?

            • 3. Re: unable to compile jsp after redeploying war...???
              uramisten

              The actual application in question here is a modified version of jpivot
              (jpivot.war from the downloads at sourceforge.net/projects/jpivot). I thought maybe I messed something up, so I tried the stock version too.. same results.

              jboss 3.2.3, java sdk version 1.4.2_03, same on win32, or on linux. No J2EE here.. I think, just servlets/jsp taglibs etc.

              I will post a full stacktrace although I didn't see anything notewothy there..

              Odd part is that deploy/undeploy etc can be done over and over without any problems UNTIL a jsp page is processed from the app.. then game over on any further redeploy attempts
              Cheers.

              • 4. Re: unable to compile jsp after redeploying war...???
                allyann


                Did you have any luck in working this out. We are experiencing exactly the same problem.

                We can compile our classes, then when we redeploy the app, we get the following error:

                ===========================================
                HTTP Status 500 -

                --------------------------------------------------------------------------------

                type Exception report

                message

                description The server encountered an internal error () that prevented it from fulfilling this request.

                exception

                org.apache.jasper.JasperException: Unable to compile class for JSP
                at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:478)
                at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
                at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
                at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

                ...

                regards Al

                • 5. Re: unable to compile jsp after redeploying war...???
                  uramisten

                  turned out one of the jars included in my war was interfering with (superceding) some routines/classes used for jsp compilation. I can't for the life of me remember which it was though.. sorry. I hope that helps..somewhat.

                  Ati