aspose file tools*
The moose likes Other Open Source Projects and the fly likes Error: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Error: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester" Watch "Error: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester" New topic
Author

Error: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester

aydeniz kirmizi
Ranch Hand

Joined: Aug 20, 2009
Posts: 38

Hi everybody..

Can you please help me about my problem. I have searched through the Internet, but could not solve it..

I am trying to use iReport within my NetBeans project. I created my report, and did the database connection.
I can run my report within Netbeans. But when I try to call/run my report from a jsp file it gives this error :



My jsp file code:



Thanks in advance..
aydeniz kirmizi
Ranch Hand

Joined: Aug 20, 2009
Posts: 38
Sorry, I forgot to say that, add my following jar files into libraries.

I right-clicked on the project in netbeans, Said Properties, Libraries--> add jar file..

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Are those libraries packaged in your WAR?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
aydeniz kirmizi
Ranch Hand

Joined: Aug 20, 2009
Posts: 38
Hello;

Thanks for the reply..

I placed all these files in this directory:



And then I add them one by one In the Project Properties->Libraries-->Add jar File

I might be wrong, because apparently, the system does not see them..

Can you please tell me where exactly to place them?

Thanks
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

You need to unzip/open your produced WAR file and make sure that the jar files are in your WEB-INF/lib directory
aydeniz kirmizi
Ranch Hand

Joined: Aug 20, 2009
Posts: 38
Hello;

I solved my problem. The solution for who is having/will have the same problem, is :

The reason for the problem was: NetBeans was seeing my jar files, but not JBoss. So what I did is

I copied all my commons, iText, poi jar files into C:\jboss-4.2.3.GA\server\default\lib


and then I defined in my ant file:



This solved my problem. But now when I run my report from the project, it works but shows on my web page strange characters, which are



Any idea?

It is getting more excited, I am approaching the solution..


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
 
Similar Threads
regd JOPR console
org.springframework.beans.factory.NoSuchBeanDefinitionException No bean named
having Problem about JSTL
550 Invalid recipient Problem whilst I am sending Email using SMTP
Getting Exception in calling webservice