Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
vijay kumar dahiya
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
vijay kumar dahiya
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,
Issue now resolved.
Thanks for your assistance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic