File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts problem using JBoss 4.0.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts problem using JBoss 4.0.0" Watch "Struts problem using JBoss 4.0.0" New topic
Author

Struts problem using JBoss 4.0.0

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Hello,
I hav an SRUTS application which runs well on Tomcat 5.0.28(development) . But when I try to deploy the application on JBoss 4.0.0 (production) I get the following error :-

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

An error occurred at line: 3 in the jsp file: /jsp/login.jsp

Generated servlet error:
[javac] Compiling 1 source file

D:\jboss-4.0.0DR4\server\default\work\jboss.web\localhost\Lt\org\apache\jsp\jsp\login_jsp.java:145: _jspx_meth_html_form_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.jsp.login_jsp cannot be applied to (org.apache.struts.taglib.html.HtmlTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_form_0(_jspx_th_html_html_0, _jspx_page_context))
^



An error occurred at line: 29 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\jboss-4.0.0DR4\server\default\work\jboss.web\localhost\Lt\org\apache\jsp\jsp\login_jsp.java:233: _jspx_meth_html_text_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.jsp.login_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_text_0(_jspx_th_html_form_0, _jspx_page_context))
^



An error occurred at line: 29 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\jboss-4.0.0DR4\server\default\work\jboss.web\localhost\Lt\org\apache\jsp\jsp\login_jsp.java:240: _jspx_meth_html_password_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.jsp.login_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_password_0(_jspx_th_html_form_0, _jspx_page_context))
^



An error occurred at line: 29 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\jboss-4.0.0DR4\server\default\work\jboss.web\localhost\Lt\org\apache\jsp\jsp\login_jsp.java:247: _jspx_meth_html_submit_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.jsp.login_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_submit_0(_jspx_th_html_form_0, _jspx_page_context))
^



An error occurred at line: 29 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\jboss-4.0.0DR4\server\default\work\jboss.web\localhost\Lt\org\apache\jsp\jsp\login_jsp.java:255: _jspx_meth_html_link_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.jsp.login_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_link_0(_jspx_th_html_form_0, _jspx_page_context))
^



An error occurred at line: 29 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\jboss-4.0.0DR4\server\default\work\jboss.web\localhost\Lt\org\apache\jsp\jsp\login_jsp.java:269: _jspx_meth_html_link_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.jsp.login_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_link_1(_jspx_th_html_form_0, _jspx_page_context))
^



An error occurred at line: 29 in the jsp file: /jsp/login.jsp

Generated servlet error:
D:\jboss-4.0.0DR4\server\default\work\jboss.web\localhost\Lt\org\apache\jsp\jsp\login_jsp.java:278: _jspx_meth_html_errors_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.jsp.login_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_html_errors_0(_jspx_th_html_form_0, _jspx_page_context))
^
7 errors


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:315)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:406)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
============================================================================
I am using Struts1.1 . Could someone guide me as to what needs to be done?
I am running out of time and any help would be really appreciated.
:roll:
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
"Smart Dude",

Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Sorry,
I am new here and I did not know about this. Anyways I have made the changes. I can still get a reply to the topic I posted, I beleive?
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Originally posted by Rajkamal R:
Sorry,
I am new here and I did not know about this. Anyways I have made the changes. I can still get a reply to the topic I posted, I beleive?


Thanks for the effort, but I'm afraid the policy states that you must have a first name and a last name. One more time please.
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Hello,
Am I clean now? I sure hope I am as time is running out. Hope you have heard "To err is human, To forgive is divine............." Anything else?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts problem using JBoss 4.0.0
 
Similar Threads
help! Where shall i put tld files in jboss
JSP error in Jboss
javac error JSTL on jboss
errors while using html:form tag
cewolf problem in jboss