• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..

 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are those libraries packaged in your WAR?
 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic