I am trying to upload a photo using UploadBean. But I am getting error.
Here is my exception :
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /test/dbupload.jsp(5,0) The value for the useBean class attribute javazoom.upload.UploadBean is invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1220)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1178)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
org.apache.jasper.compiler.Generator.generate(Generator.java:3417)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:231)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
note The full stack trace of the root cause is available in the Apache Geronimo (Embedded Tomcat/@VERSION@) logs.
Apache Geronimo (Embedded Tomcat/@VERSION@)
mohamed sanaullah
Post Yesterday 06:14:58 PM Subject: Problem while uploading an image using UploadBean
Shounak Kundu wrote:
view plaincopy to clipboardprint?
1. <jsp:useBean id="upBean" scope="application" class="javazoom.upload.UploadBean" >
2. //Note: Change the class to UploadBean, as you have already imported the package
<jsp:useBean id="upBean" scope="application" class="javazoom.upload.UploadBean" > //Note: Change the class to UploadBean, as you have already imported the package
As you have already imported using:
view plaincopy to clipboardprint?
Sounds like you simply have CLASSPATH issues, make sure the required libraries are in your CLASSPATH. In Eclipse this is under the Run Configuration area.