4 Replies Latest reply on May 11, 2005 10:48 AM by real_zeus

    JSP compile problem on 4.0.2 RC1

      Hi All,
      I am using jboss-4.0.2RC1 (uses tomcat 5.5.8), and when I deploy my app and try to access my first page, I get the following JSP compile error
      (this worked on 4.0.0):

      org.apache.jasper.JasperException: Unable to compile class for JSP

      Generated servlet error:
      The method handlePageException(Exception) in the type PageContext is not applicable for the arguments (Throwable)

      Generated servlet error:
      The method _jspx_meth_bean_message_0(JspTag, PageContext) in the type login_jsp is not applicable for the arguments (FormTag, PageContext)

      Generated servlet error:
      The method _jspx_meth_bean_message_1(JspTag, PageContext) in the type login_jsp is not applicable for the arguments (FormTag, PageContext)

      Generated servlet error:
      The method doAfterBody() is undefined for the type FormTag

      Anybody have any idea on what is wrong here?

      Thanks,
      Adrian

        • 1. Re: JSP compile problem on 4.0.2 RC1

          found the problem - included an old jar file hidden away down there in the depths of my ant script :)

          • 2. Re: JSP compile problem on 4.0.2 RC1
            abuayyub

            Copy the javax.servlet.jar from the jboss lib to the WEB-INF/lib dir of the application and rename it servlet.jar. remove any servlet-api.jar or other servlet jar. This did the trick when i got this particular error.

            • 3. Re: JSP compile problem on 4.0.2 RC1
              rknj79

               

              "abuayyub" wrote:
              Copy the javax.servlet.jar from the jboss lib to the WEB-INF/lib dir of the application and rename it servlet.jar. remove any servlet-api.jar or other servlet jar. This did the trick when i got this particular error.


              I did exactly what you said, but still get the problem. I am developing in WSAD and trying to export my ear to JBOSS. I see that WSAD includes a library name J2EE.jar and this has some servlet packages, does JBOSS have an equivalent jar. Please!! Any help you have to solve this problem will be great, I have been stuck on it for almost 3 days.

              Thanks.

              Roy

              • 4. Re: JSP compile problem on 4.0.2 RC1
                real_zeus

                I just had the same problem with JSPs on JBoss 4.0.2 final.
                I use WSAD, but deploy EAR using own Ant Script, not "Export EAR".
                In order to solve the problem I checked JARs in following folders:
                - {$jdk}\lib
                - {$jboss}\lib
                - {$jboss}\lib\endorsed
                - {$jboss}\server\{$config}\lib
                and removed JARs with same classes from my EAR.