US and Worldwide: +1 (866) 660-7555
Results 1 to 6 of 6

Thread: No such method: installDefaultLog()V

  1. #1
    Join Date
    Jan 2006
    Posts
    3

    Default No such method: installDefaultLog()V

    HI,
    I'm trying to use JFreeReport in a web application with Tomcat 5.5.9
    I'm using the same librairies that the example found on jfree.org

    When i try to display a report from my servlet i get the following message:

    Code:
    java.lang.NoSuchMethodError: org.jfree.base.log.DefaultLog.installDefaultLog()V
    	org.jfree.report.JFreeReportBoot.getInstance(JFreeReportBoot.java:234)
    this exception is launch at the second line of my init method:
    Code:
    public void init() throws ServletException
    	  {
    	    super.init();
    	    JFreeReportBoot.getInstance().start();
    	  }
    i'm using jfreereport-0.8.6-6 with jfreereport-ext-0.8.6-5 and jcommon-1.1.0

    If someone can help me , i'll be pleased

    thanks
    Impossible is not valid - try harder lol

  2. #2
    Join Date
    Mar 2003
    Posts
    7,560

    Default

    Hi,

    always use the same JFreeReport version and the same JFreeReport-ext version. Everything else will get you in trouble. And more than that - JFreeReport uses a newer version of JCommon now - so you have to use the one from JFreeReport or the latest build from the CVS.

    Regards,
    Thomas

  3. #3
    Join Date
    Jan 2006
    Posts
    3

    Default

    I tried with same version files, i deployed the jfreereport-ext-0.8.6-6.war ,
    and it works. but when i use these jar in my application, i still get the same error.

    I looked into the jcommon and i found the installDefaultLog(), and it still launch a nosuchmethoderror.

    thanks for future helper!
    Impossible is not valid - try harder lol

  4. #4
    Join Date
    Mar 2003
    Posts
    7,560

    Default

    Hi,

    the most common cause of this are multiple copies of jcommon in the classpath. Maybe you're having an old copy of jcommon sitting in the $JDK/jre/lib/ext directory or something else?

    Regards,
    Thomas

  5. #5
    Join Date
    Jan 2006
    Posts
    3

    Default

    I search my entire diskd and i don't have any other jcommon in my classpath, in fact i tried with all other jcommon.jar remove from my disc and still the same error.

    I have jfreechart totally functionnal in my web application, maybe i can affect my jfreereport.

    Any solutions
    :?:
    Impossible is not valid - try harder lol

  6. #6
    Join Date
    Mar 2003
    Posts
    4,947

    Default

    I use jfreerepot-0.8.7-5 and eclips. To run as -> classpath -> bootstrap includ jcommon-1.0.5.jar. You found this jar in jfreereport-0.8.7-5\lib.

Posting Permissions

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