facebook

jsp compile error JasperException

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #222961 Reply

    I’m using eclipse version: 3.0.1
    Myeclipse 3.8.2
    If I use jsp with struts , the file jsp doesn’t compile.

    Please, could you help me?

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

    Generated servlet error:
    C:\eclipse\jakarta-tomcat-5.0.28\work\Catalina\localhost\TesteStruts\org\apache\jsp\MyJsp_jsp.java:109: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.MyJsp_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
    if (_jspx_meth_html_base_0(_jspx_th_html_html_0, _jspx_page_context))
    ^

    #223023 Reply

    Riyad Kalla
    Member

    the file jsp doesn’t compile

    In MyEclipse or in Tomcat?

    C:\eclipse\jakarta-tomcat-5.0.28\work\Catalina\localhost\TesteStruts\org\apache\jsp\MyJsp_jsp.java:109: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.MyJsp_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
    if (_jspx_meth_html_base_0(_jspx_th_html_html_0, _jspx_page_context))

    It looks like your J2EE libraries are being mismatched. You are most likely developing against J2EE 1.3 libraries, and once you deploy the project to Tomcat the J2EE 1.4 libraries that Tomcat uses are being used to compile the page and failing.

    OR, you have accidentally included the J2EE library files in your project itself, so they are getting deployed to your WEB-INF/lib directory (and they shouldn’t be).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: jsp compile error JasperException

You must be logged in to post in the forum log in