This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JSP error in Jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JSP error in Jboss" Watch "JSP error in Jboss" New topic
Author

JSP error in Jboss

Prasanna Kannan
Greenhorn

Joined: Mar 07, 2005
Posts: 21
Hi,

I'm getting the below error, when accessing the following jsp file which works fine in Websphere. Do I need to change anything in this jsp file to make it work in JBoss.

Thanks,
Prasanna



ERROR [org.apache.jasper.compiler.Compiler] Error compiling file: /C:/java/eside/jboss-3.2.5/server/default/work/jboss.web/localhost/ilm-escb2b//org/apache/jsp\index_jsp.java [javac] Compiling 1 source file

C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:123: _jspx_meth_layout_menuItem_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.treeview.TreeViewTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_0(_jspx_th_layout_treeview_0, _jspx_page_context))
^
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:127: _jspx_meth_layout_menuItem_5(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.treeview.TreeViewTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_5(_jspx_th_layout_treeview_0, _jspx_page_context))
^
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:155: _jspx_meth_layout_menuItem_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_1(_jspx_th_layout_menuItem_0, _jspx_page_context))
^
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:159: _jspx_meth_layout_menuItem_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_2(_jspx_th_layout_menuItem_0, _jspx_page_context))
^
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:163: _jspx_meth_layout_menuItem_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_3(_jspx_th_layout_menuItem_0, _jspx_page_context))
^
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:167: _jspx_meth_layout_menuItem_4(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_4(_jspx_th_layout_menuItem_0, _jspx_page_context))
^
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:259: _jspx_meth_layout_menuItem_6(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_6(_jspx_th_layout_menuItem_5, _jspx_page_context))
^
7 errors

2006-04-04 17:23:37,944 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 26 in the jsp file: /index.jsp
Generated servlet error:
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:123: _jspx_meth_layout_menuItem_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.treeview.TreeViewTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_0(_jspx_th_layout_treeview_0, _jspx_page_context))
^


An error occurred at line: 26 in the jsp file: /index.jsp
Generated servlet error:
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:127: _jspx_meth_layout_menuItem_5(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.treeview.TreeViewTag,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_5(_jspx_th_layout_treeview_0, _jspx_page_context))
^


An error occurred at line: 27 in the jsp file: /index.jsp
Generated servlet error:
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:155: _jspx_meth_layout_menuItem_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_1(_jspx_th_layout_menuItem_0, _jspx_page_context))
^


An error occurred at line: 27 in the jsp file: /index.jsp
Generated servlet error:
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:159: _jspx_meth_layout_menuItem_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_2(_jspx_th_layout_menuItem_0, _jspx_page_context))
^


An error occurred at line: 27 in the jsp file: /index.jsp
Generated servlet error:
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:163: _jspx_meth_layout_menuItem_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_3(_jspx_th_layout_menuItem_0, _jspx_page_context))
^


An error occurred at line: 27 in the jsp file: /index.jsp
Generated servlet error:
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:167: _jspx_meth_layout_menuItem_4(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_4(_jspx_th_layout_menuItem_0, _jspx_page_context))
^


An error occurred at line: 33 in the jsp file: /index.jsp
Generated servlet error:
C:\java\eside\jboss-3.2.5\server\default\work\jboss.web\localhost\ilm-escb2b\org\apache\jsp\index_jsp.java:259: _jspx_meth_layout_menuItem_6(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.index_jsp cannot be applied to (fr.improve.struts.taglib.layout.MenuItemTag2,javax.servlet.jsp.PageContext)
if (_jspx_meth_layout_menuItem_6(_jspx_th_layout_menuItem_5, _jspx_page_context))
^
7 errors



at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP error in Jboss