• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found

 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.servlet.ServletFileUpload class not find in my pc
while
javax.servlet.Servlet find
i am using fileupload 1.2.1.jar file

what should i do?
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there is no such class javax.servlet.ServletFileUpload in servlet API.

However any classes you are not able to find from javax.servlet package is due to same problem you have in the post
package apache.commons not exists
 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually it is written by mistaken
the problem is that
javax.servlet.servletinputstream class not found
error is
noclassdefifoundexcepttion
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no class "javax.servlet.servletinputstream", either.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try to be concise when reporting errors. Copying them can save wasted time
Did you mean that the class javax.servlet.ServletInputStream (note capitalisation) throws a NoClassDefFoundError (note capitalisation)?
 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
means
i saw in servlet-api package there is this class
 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

David O'Meara
yes this class throw this exception
how can i remove it?
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amrita,
I have communicated in my previous post what your problem might be. Your tomcat installation looks to be messed up (based on what your have posted in your other post). As suggested in other forum try reinstalling tomcat and both of your problems will be sorted out.

Also NoClassDefFoundError is an Error as the name suggests, not an Exception
 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can it be messed?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have the class on your classpath when you run your application.

I'll repeat: at this point it would be quickest to reinstall Tomcat; since you haven't answered the library location questions you've been asked, it's impossible to know what you're done to break it.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
amrita singhal wrote:how can it be messed?

Because you're trying random things to get it to work.
 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my app WEB-INF/lib contains the following jar files
1. jstl
2. standard
3. cataline-root
4. commons-fileupload-1.2.1
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aaaand in your Tomcat lib directory? Would it really be too much trouble to just reinstall Tomcat?
 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
means

what should i do now?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
REINSTALL TOMCAT.
 
deep raj
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no effect after reinstall
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why is catalina-root in your lib directory?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic