Results 1 to 3 of 3
  1. #1
    sidagarwal is offline Member
    Join Date
    Dec 2009
    Posts
    1
    Rep Power
    0

    Default ClassNotFoundError when using JavaBean set DataSource in iReport

    Hi,
    I am using iReport version 2.0.0. I am trying to use a JavaBean set datasource in my report. I have created a jar with TestFactory and FormBean classes and have added it to Jasper classpath. I am able to succcessfully create a new data source. Also when I hit on edit query for the report, I can map the corresponding form bean parameters and use them to successfully run the report. This implies that there is no issue with the class path.
    The problem however is when I use the New Report Wizard. When using the new report wizard, if i provide the complete name of my form bean class and click on next, I get the ClassNotFoundError. I am unable to figure out how iReport is able to get the formbean class from edit query wizard and gives exception from Create New Report Wizard.

    Thanks.

  2. #2
    Sidharta is offline Member
    Join Date
    Jan 2010
    Posts
    1
    Rep Power
    0

    Default

    Hi

    I am having the exactly same problem using iReport 3.0.0 . I can create a new DataSource and when I open the Report Query dialog, I can map my bean.

    But, when I try use the Wizard to setup the report, I get a ClassNotFoundError when trying to register the bean.

    I've checked again and again the name of the classe and its presence in the jar. I also tried to create a new Datasource in the first step of Wizard, to check the hypothesis that the Wizard use a different classpath, but it worked normally. Only the bean class cannot be found.

    I don't know what else I could try, any help will be highly appreciated!!

    regards,
    S. Rezende

  3. #3
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0

    Default ClassNotFoundError

    Solution for ClassNotFoundError:
    open iReport
    tools > options
    iReport > choose tab classpath
    add jar (jar file containing your factory class)

Similar Threads

  1. how toi make Java Bean DataSource connection in ireport
    By Prashant.surwade in forum Advanced Java
    Replies: 17
    Last Post: 12-18-2009, 08:53 AM
  2. components in javabean
    By NAIYYAR ALI in forum Advanced Java
    Replies: 0
    Last Post: 10-05-2009, 04:36 PM
  3. Enterprise JavaBean 3.0
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 06-20-2008, 12:42 AM
  4. JavaBean Problem
    By Peter in forum Advanced Java
    Replies: 2
    Last Post: 07-05-2007, 02:37 PM
  5. Datasource
    By samson in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 04-02-2007, 12:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •