Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Newbee: java.lang.NoClassDefFound
Newbee: java.lang.NoClassDefFound [message #159872] Thu, 09 February 2006 16:16 Go to next message
Eclipse UserFriend
Originally posted by: fmw.tibet-und-asien.de

I'm using Suse Linux 9.3, and the Webtools bundle that was available for
download today.
My problem is this: I need an upload field. For that, I downloaded the
commons fileUpload from the Apache Jakarta commons project. As I have
learned, the jar-file belongs into the WEB-INF/lib folder – but how? Do I
have to use the import function? Do I have to change web.xml? Does anybody
know of a manual how to include jar-files within the Webtools framework?
Whatever I tried, I always ended up with an error like that:

java.lang.NoClassDefFoundError:
org/apache/commons/io/output/DeferredFileOutputStream

As I know from googling, this error happens when I put the jar file into a
shared dictionary instead of the one specific for the project. But I
didn't do that (I tried that before, but erased it again).
Re: Newbee: java.lang.NoClassDefFound [message #160035 is a reply to message #159872] Fri, 10 February 2006 02:55 Go to previous messageGo to next message
Max Giesbert is currently offline Max GiesbertFriend
Messages: 38
Registered: July 2009
Member
just drag your jar into the WebContent/WEB-INF/lib folder created by
eclipse. it should then appear under Web App ibraries.

Don't know if this works from within KDE. In GNOME it does.

Cheers

Max

Frank wrote:
> I'm using Suse Linux 9.3, and the Webtools bundle that was available for
> download today. My problem is this: I need an upload field. For that, I
> downloaded the commons fileUpload from the Apache Jakarta commons
> project. As I have learned, the jar-file belongs into the WEB-INF/lib
> folder � but how? Do I have to use the import function? Do I have to
> change web.xml? Does anybody know of a manual how to include jar-files
> within the Webtools framework? Whatever I tried, I always ended up with
> an error like that:
>
> java.lang.NoClassDefFoundError:
> org/apache/commons/io/output/DeferredFileOutputStream
>
> As I know from googling, this error happens when I put the jar file into
> a shared dictionary instead of the one specific for the project. But I
> didn't do that (I tried that before, but erased it again).
>
>
Re: Newbee: java.lang.NoClassDefFound SOLVED [message #160174 is a reply to message #160035] Fri, 10 February 2006 16:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fmw.tibet-und-asien.de

thanks for your help.
The actual problem was actually the following: I downloaded the
FileUploader
from the apache-commons project, and put it correctly into the WEB-INF/lib
folder. But then I simply didn't understand, that the IO-package from
apache commons project is also required. It seems it wasn't mentioned that
one needs it or I didn't find the hint.

Frank
Re: Newbee: java.lang.NoClassDefFound [message #160504 is a reply to message #159872] Mon, 13 February 2006 13:43 Go to previous message
Alexey Kakunin is currently offline Alexey KakuninFriend
Messages: 16
Registered: July 2009
Junior Member
<br><font size=2 face="sans-serif">Just copy commons-fileupload.jar into
your WEB-INF/lib folder.</font>
<br><font size=2 face="sans-serif">May be you will need &quot;Refresh&quot;
(F5) your Dynamic Web-Project after it.</font>
<br><font size=2 face="sans-serif">This jar will be authomatically incluided
into Java Build Path for compilation by Eclipse and it will be deploed
in your web application into server - so, you webapp will be able to use
it there.</font>
<br>
<br><font size=2 face="sans-serif">Hope it will helps.</font>
<br><font size=2 face="sans-serif">Alexey Kakunin</font>
<br><font size=2 face="sans-serif">EmDev Limited</font>
<br><font size=2 face="sans-serif">http://www.emdev.ru</font>
Previous Topic:Type safing an Enumeration
Next Topic:Elementary problem? - can't publish after moving file?
Goto Forum:
  


Current Time: Wed Sep 25 00:02:54 GMT 2024

Powered by FUDForum. Page generated in 0.03903 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top