This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

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

 
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.
 
Ranch Hand
Posts: 1512
  • 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.
 
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.
 
Hang a left on main. Then read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!