File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Error: Unable to load class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Error: Unable to load class " Watch "Error: Unable to load class " New topic

Error: Unable to load class

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944

I am trying to use bean (compiled OK) in JSP and get this message:
org.apache.jasper.JasperException: Unable to load class Fruit
at org.apache.jasper.compiler.BeanRepository.getBeanType(
at org.apache.jasper.compiler.GetPropertyGenerator.generate(
at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(
at org.apache.jasper.compiler.JspParseEventListener.generateAll(
at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(
at org.apache.jasper.compiler.Compiler.compile(
at org.apache.jasper.servlet.JspServlet.doLoadJSP(
at org.apache.jasper.servlet.JasperLoader12.loadJSP(
at org.apache.jasper.servlet.JspServlet.loadJSP(
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
at org.apache.jasper.servlet.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.tomcat.core.ServletWrapper.doService(
at org.apache.tomcat.core.Handler.service(
at org.apache.tomcat.core.ServletWrapper.service(
at org.apache.tomcat.core.ContextManager.internalService(
at org.apache.tomcat.core.ContextManager.service(
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
at org.apache.tomcat.service.TcpWorkerThread.runIt(
at org.apache.tomcat.util.ThreadPool$

Somebody can help?
I agree. Here's the link:
subject: Error: Unable to load class
It's not a secret anymore!