Click to See Complete Forum and Search --> : upload file


pop3
03-16-2007, 04:26 PM
hi

I am getting the following error when i try to upload a file on the production webserver but not on local machine

this is the error i am getting
where
public void doUpload(HttpServletRequest request, String rand,String fname) throws
IOException is the method i am using to upload

root cause

java.lang.NoSuchMethodError: edu.suri.FileUploadBean1.doUpload(Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;Ljava/lang/String;)V
org.apache.jsp.jsp3_jsp._jspService(jsp3_jsp.java:111)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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:802)
sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)

pls help me

thanks

Khalid Ali
03-16-2007, 10:53 PM
This means your web server is loading a method from cache where as it does not exist in reality. try restarting your webserver and it should be ok