Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are those libraries packaged in your WAR?
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic