File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Unable to compile class for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Reply locked New topic
Author

Unable to compile class for JSP

prashan dassanayake
Greenhorn

Joined: Nov 07, 2008
Posts: 23
I'm using jboss server and I can access few pages from the web program while most of pages cannot be accessed.This web program is currently successfully run in another server in usa.So i think there is no errors in codings.But there must be some needed library missing or something else missing as i feel.Please help me to find a solution for errors in program.This is the error i got when trying to access some pages of website.

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

An error occurred at line: 316 in the jsp file: /pages/order/viewOrders.jsp
Generated servlet error:
The method setAttribute(String, Object) in the type HttpSession is not applicable for the arguments (String, boolean)

An error occurred at line: 375 in the jsp file: /pages/order/viewOrders.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to BranchModel

An error occurred at line: 397 in the jsp file: /pages/order/viewOrders.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to FacilityModel


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

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

An error occurred at line: 316 in the jsp file: /pages/order/viewOrders.jsp
Generated servlet error:
The method setAttribute(String, Object) in the type HttpSession is not applicable for the arguments (String, boolean)

An error occurred at line: 375 in the jsp file: /pages/order/viewOrders.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to BranchModel

An error occurred at line: 397 in the jsp file: /pages/order/viewOrders.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to FacilityModel


org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


please tel me what is the library im missing and where should be it included or the error something different from i'm believing.
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Duplicate of:
http://www.coderanch.com/t/414278/JSP/java/Unable-compile-class-JSP


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to compile class for JSP
 
Similar Threads
setAttribute(String, Object) in the type HttpSession is not applicable
Exception thrown org.jboss.util.NestedSQLException
problem in custom tag library
Help me
Unable to compile class for JSP