?
Solved

java.lang.NoClassDefFoundError

Posted on 2007-10-15
3
Medium Priority
?
887 Views
Last Modified: 2013-12-17
Anyone can help me solve this ?

Error 500--Internal Server Error
java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2384)
      at java.lang.Class.getConstructor0(Class.java:2698)
      at java.lang.Class.newInstance0(Class.java:325)
      at java.lang.Class.newInstance(Class.java:307)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:68)
      at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
      at weblogic.servlet.internal.StubLifecycleHelper.(StubLifecycleHelper.java:48)
      at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:504)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:235)
      at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
      at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
      at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
 
0
Comment
Question by:giulio1979
2 Comments
 
LVL 9

Accepted Solution

by:
matthew016 earned 1000 total points
ID: 20079283
Hello,

It says that this Java class is not found on runtime.

So I would say it is :
* a missing jar (the fileupload library from apache)
* a wrong version of the jar

Check out also :

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg89959.html

http://www.google.com/search?hl=en&q=java.lang.NoClassDefFoundError%3A+org%2Fapache%2Fcommons%2Ffileupload%2FFileUploadBase%24SizeLimitExceededException&meta=
0
 

Assisted Solution

by:karandeepmalik
karandeepmalik earned 1000 total points
ID: 22312218
You can visit the following links and you will get to know the cause of error :-


Know more about the exception :-
http://commons.apache.org/fileupload/apidocs/org/apache/commons/fileupload/FileUploadBase.SizeLimitExceededException.html

This exception usually occurs when you want to upload the file whose size is greater than what configuration defines .you may need to change your configuration settings.

Refer:-
http://www.nabble.com/How-to-notify-user-about-FileUploadBase$SizeLimitExceededException-td15396013.html
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
Web hosting control panels were first developed to make it faster and easier for most users to set up and operate websites. The graphical user interface (GUI) allows users to perform tasks by pointing and clicking rather than typing highly specific…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question