Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: LibLoaderInfo not found when running jfreereport on web

  1. #1
    Join Date
    May 2006
    Posts
    23

    Default LibLoaderInfo not found when running jfreereport on web

    Hi guys!

    My first post here. I just recently got into jfreechart and am trying to crack open jfreereport as well. I'm putting the whole thing on our JSP website and while jfreechart seems to work like a charm, I'm having problems with jfreereport.

    I downloaded the example war file from this site, opened it in JDeveloper and deployed it to an OC4J instance. But when I try clicking on any of the links (PDF servlet, HTML servlet...) I get an internal server error:

    java.lang.NoClassDefFoundError: org/jfree/resourceloader/LibLoaderInfo
    at org.jfree.fonts.LibFontInfo.<init>(LibFontInfo.java:90)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java)
    at java.lang.Class.newInstance0(Class.java:308)
    at java.lang.Class.newInstance(Class.java)
    at org.jfree.base.BasicProjectInfo$OptionalLibraryHolder.LoadLibrary(BasicProjectInfo.java:106)
    at org.jfree.base.BasicProjectInfo$OptionalLibraryHolder.
    etLibrary(BasicProjectInfo.java:87)
    at org.jfree.base.BasicProjectInfo.getOptionalLibraries(BasicProjectInfo.java:252)
    at org.jfree.base.BootableProjectInfo.getDependencies(BootableProjectInfo.java:119)
    at org.jfree.base.AbstractBoot.start(AbstractBoot.java:167)
    at org.jfree.report.ext.servletdemo.JFreeReportServlet.init(JFreeReportServlet.java:67)
    at javax.servlet.GenericServlet.init(GenericServlet.java:259)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpApplication.loadServlet(HttpApplication.java:2141)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpApplication.findServlet(HttpApplication.java:4582)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2608)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)

    I can't seem to find this class anywhere, nor does it turn up in any search on this side or on Google.

    Any ideas?

    Thanks,
    G

  2. #2
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    Hi,

    oh, it seems the WAR file does not have that jar included. Evil! Ok, for a quick fix, grab the ordinary JFreeReport-package and copy the libloader jar from there (inside the lib directory).

    Alternativly, you can download it either from jfree.org (http://www.jfree.org/jfreereport/libloader/) or from our sourceforge project page. Google might be a little bit slow when it comes to indexing our systems, but now we are 1st rank if you search for 'libloader'.

    (The next release will have that fixed and all the jars will be included in the war-file.)

    Regards,
    Thomas

  3. #3
    Join Date
    May 2006
    Posts
    23

    Default

    The jfreereport package I downloaded didn't contain the libloader, so I downloaded it from jfree using your link. And now everything works like a charm! Except maybe that I got an Excel error when I invoked the excel servlet: "File error. Some number formats may have been lost". But it opened the file anyway. I'm using Excel 2002, sp2.

    Thanks a lot for a very quick response! So nice to know that this forum is so active.

    G

  4. #4
    Join Date
    Mar 2003
    Posts
    8,085

    Default

    This can be caused by an invalid number format string. Excel's syntax for number/date formats is slightly different from the one used by Java. As there is no sane documentation on that topic, I leave it up to the user to fix it (yes, I'm evil ).

    If at some point in the future Microsoft decides to document their stuff in a sane way, we might be able to translate the Java-formats into valid Excel cell formats.

    You can use the 'excel-format' attribute to define an Excel-specific number format. The text in there is passed over to excel without any change.

    Regards,
    Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.