my dog learned polymorphism*
The moose likes Servlets and the fly likes Eror 500- Server are not find the jar file in the program of upload the file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Eror 500- Server are not find the jar file in the program of upload the file" Watch "Eror 500- Server are not find the jar file in the program of upload the file" New topic
Author

Eror 500- Server are not find the jar file in the program of upload the file

vijay kumar dahiya
Ranch Hand

Joined: Oct 19, 2008
Posts: 33
Hello To Every One,
I make a program to upload a file.I include the commons-fileupload-1.2.1.jar file in lib folder.
I set the classpath=%classpath%;C:\Vijay\Upload\WEB-INF\lib\commons-fileupload-1.2.1.jar;
Error 500--Internal Server Error:
Please Help me.


Vijay
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
This error usually occurs when you compiled your classdes with a different verson of the JDK than your container is using. For example, may be your classes were compiled via 1.5 and your container is using a different version.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
vijay kumar dahiya
Ranch Hand

Joined: Oct 19, 2008
Posts: 33
Dear Sir,
Thanks for your Assistance,that concern has resolved.
But now different Error 500 I am face.


My FIle:
UploadFile.java:

Please Help.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

From: http://commons.apache.org/fileupload/using.html

> FileUpload depends on Commons IO, so make sure you have the version
> mentioned on the dependencies page in your classpath before continuing.

And you can tell, that's what's missing, from the stacktrace:

java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream
vijay kumar dahiya
Ranch Hand

Joined: Oct 19, 2008
Posts: 33
Dear Sir,
Issue now resolved.
Thanks for your assistance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eror 500- Server are not find the jar file in the program of upload the file