java.lang.NoSuchMethodError: com.oreilly.servlet.MultipartRequest.(Ljavax/servlet/http/HttpServletRequest;Ljava/lang/String;ILcom/oreilly/servlet/multipart/FileRenamePolicy V
Any idea what this means?
Any time I've had this problem is was from compiling in one location, and deploying into another.
If the class files in your compiler classpath are up to date, but your runtime isn't, this could happen. Also check the ordering of the elements in the classpath. The classloader may choose any version it happens to run across(How the Java Launcher Finds Classes)
I think that any other types of unresolved method or field calls would result in a more specific exception, like an InvocationTargetException for a bad reflective call or a standard compile error if your binaries were out of date.
Thanks again for your help!!
7.5.1 Single-Type-Import Declaration
The compiler keeps track of types by their binary names (�13.1).
13.1 The Form of a Binary
The class or interface must be named by its binary name, which must meet the following constraints:
The binary name of a top-level type is its canonical name (�6.7).
Assuming the method is static, a static method call might result in your message if the method cannot be resolved.
The other possibility (and on reflection, the more likely) is that a different version of the COS package is on the classpath ahead of the one you compiled against. This would also cause this type of issue.
All I need to do is allow the client to upload files. (And yes I double-checked on file permissions as well) Help, help, help!!
I am eternally grateful for any assistance you can lend to a servlet newbie.