commons-fileupload-1.0.jar file is in two folders
1. F:\SOFT\Tomcat 5.0\common\lib
2. C:\Program Files\Java\jre1.6.0\lib\ext
arriesh chellu
Greenhorn
Joined: Jan 18, 2010
Posts: 7
posted
0
I think since the package exists in both the folders the folder that is first accessed by the compiler is that of the Windows program files or in your given list the second one
so what the compiler does is that it first finds in this package it fails to get the required pacakage
For the solution just remove the package from the program files and see what happens.....
deep raj
Ranch Hand
Joined: Dec 11, 2009
Posts: 186
posted
0
means remove commons- fileupload-1.0.jar file from C:\Program Files\Java\jre1.6.0\lib\ext folder
are you telling this ?
Where did you get that commons-fileupload-1.0.jar file from? Version 1.0 was released in 2003.
My sense is you should try downloading the latest version of Commons Upload from the Apache site.
What libraries are you deploying? What libraries did you remove from the Tomcat lib directories? If you're getting that message in Tomcat you've done something very wrong. Right now it just seems like you're trying things at random.
deep raj
Ranch Hand
Joined: Dec 11, 2009
Posts: 186
posted
0
in my app. web-inf/lib folder
servlet-api.jar and commons-filrupload-1.2.1.jar both files are saved
and i saw servlet-api.jar it contains servletinputstream class
yet the error will show?
i don't understand why?
Then, I am not able to figure out the cause, can you redeploy your whole application, by removing servlet-api.jar from your applications web-inf lib folder and see.. Also, restart the tomcat server before redeploying it..
Amol Nayak
Ranch Hand
Joined: Oct 26, 2006
Posts: 218
posted
0
I would suggest you unpack the zip downloaded again from tomcat site and deploy your application in it. While during all this trial and error some jar file must have got deleted.
David Newton wrote:What libraries are you deploying? What libraries did you remove from the Tomcat lib directories?
You're only deploying two libraries with your application?
In any case, you *must* not deploy any JEE API jars with your application. It'd be quicker to just answer the question(s), but okay. At this point it probably *would* be quicker for you to reinstall Tomcat.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.