- This topic has 1 reply, 2 voices, and was last updated 20 years ago by Riyad Kalla.
-
AuthorPosts
-
JoaoMemberI 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”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>………
HEADER OF MY WEBPAGE DECLARATION
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-html” prefix=”html” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-bean” prefix=”bean” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-logic” prefix=”logic” %>
<%@ taglib uri=”http://jakarta.apache.org/struts/tags-tiles” 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”>
<struts-config>may be the problem is too obvious that I cant see it. Well, I dont know
Thanks in advance,
Joao,
Riyad KallaMemberJoao,
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. -
AuthorPosts