facebook

jsp 2.0, struts , tiles problem

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #219781 Reply

    Joao
    Member

    I am getting the error below when I deploy my software into tomcat 5.0.28, after I converted the system from Jbuilder 9 to myeclipse

    I have tried struts 1.1, 1.2, Several copies of tomcat etc. But still could not fix the problem .

    enerated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\wde\org\apache\jsp\pages\logon_jsp.java:118: _jspx_meth_bean_message_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.logon_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
    if (_jspx_meth_bean_message_0(_jspx_th_html_html_0, _jspx_page_context))
    ^

    Generated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\wde\org\apache\jsp\pages\logon_jsp.java:121: _jspx_meth_html_base_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.logon_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))
    ^

    Generated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\wde\org\apache\jsp\pages\logon_jsp.java:128: _jspx_meth_logic_notPresent_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.logon_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
    if (_jspx_meth_logic_notPresent_0(_jspx_th_html_html_0, _jspx_page_context))
    ^

    Generated servlet error:
    C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\wde\org\apache\jsp\pages\logon_jsp.java:142: _jspx_meth_html_img_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.logon_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
    if (_jspx_meth_html_img_0(_jspx_th_html_html_0, _jspx_page_context))

    HEADER OF MY WEB.XML
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <web-app xmlns=”http://java.sun.com/xml/ns/j2ee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”&gt;

    ………

    HEADER OF MY WEBPAGE DECLARATION
    <%@ taglib uri=”http://jakarta.apache.org/struts/tags-html&#8221; prefix=”html” %>
    <%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean&#8221; prefix=”bean” %>
    <%@ taglib uri=”http://jakarta.apache.org/struts/tags-logic&#8221; prefix=”logic” %>
    <%@ taglib uri=”http://jakarta.apache.org/struts/tags-tiles&#8221; prefix=”tiles” %>

    HEADER OF STRUTS-CONFIG

    <?xml version=”1.0″ encoding=”UTF-8″?>
    <!DOCTYPE struts-config PUBLIC “-//Apache Software Foundation//DTD Struts Configuration 1.1//EN” “http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd”&gt;
    <struts-config>

    may be the problem is too obvious that I cant see it. Well, I dont know

    Thanks in advance,
    Joao,

    #219785 Reply

    Riyad Kalla
    Member

    Joao,
    This problem is most likely due to a chance in the Servlet and JSP spec that Tomcat 4.x (JBuilder 9) was using comared to Tomcat 5.0.28 is using. I would suggest that you make sure your project in MyEclipse has the J2EE 1.4 Library Set added in the Build Path OR you can remove it and manually add the servlet-api.jar and jsp-api.jar files from your <Tomcat>\common\lib directory to the build path, then Rebuild your entire project and check out any errors that may popup. Also make sure that you aren’t accidentally deploying a servlet.jar or servlet-api.jar and jsp.jar or jsp-api.jar in your WebRoot/WEB-INF/lib directory that could be conflicting with the application server’s libraries.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: jsp 2.0, struts , tiles problem

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