Login  Register

Re: Users - JRDataSource NoClassDefFoundError

Posted by Blessing, Jeffrey J on Feb 05, 2006; 2:40am
URL: http://ofbiz.116.s1.nabble.com/Users-JRDataSource-NoClassDefFoundError-tp137260p137262.html

I found another fix (I didn't try Hans' solution below; thanks anyway Hans).  I decided to start from scratch, so I did "ant clean" from the top-level ofbiz dir.  Then it wouldn't build (it HAD built correctly before using 'ant run').  The run-time error had turned into a compile-time error (progress?!).  The new compile-time errors were related to the fact that the "jasperreports-x.x.x.jar" file had been removed from the repository.  Apparently they were NOT removed when I did my svn updates!  (Is this the correct behavior for subversion?).  Anyway, I went to the site listed in OPTIONAL_LIBRARIES (at SourceForge) and downloaded the jasperreports-1.1.1.jar file and copied it to applications/content/lib and to framework/webapp/lib.  I uncommented the <exclude> tags in the two build.xml files associated with those two locations (applications/content/build.xml and framework/webapp/build.xml), rebuilt the system and it now runs properly.
 
Why was JasperReports removed from the repository in the first place?  Was it licensing?
-Jeff
________________________________

From: [hidden email] on behalf of Hans Bakker
Sent: Sat 2/4/2006 7:43 PM
To: OFBiz Users / Usage Discussion
Subject: Re: [OFBiz] Users - JRDataSource NoClassDefFoundError



If you disable the following lines in the controller.xml for that application,
should fix it::

    <!--handler name="datavision" type="view"
class="org.ofbiz.webapp.view.DataVisionViewHandler"/>
    <handler name="jasperreportspdf" type="view"
class="org.ofbiz.webapp.view.JasperReportsPdfViewHandler"/>
    <handler name="jasperreportsxml" type="view"
class="org.ofbiz.webapp.view.JasperReportsXmlViewHandler"/-->

--
Regards,
Hans Bakker
ANT Websystems Co.,Ltd (http://www.antwebsystems.com)

If you want to verify that this message really originates from
from the above person, download the public key from:
http://www.antwebsystems.com/hbakkerAntwebsystems.asc

On Sunday 05 February 2006 07:41, Blessing, Jeffrey J wrote:

> On a recent update from the svn repository I was surprised to find that
> ofbiz (which had been working fine) now throws a NoClassDefFoundError on
> JRDataSource.  I've read through the OPTIONAL_LIBRARIES file that was added
> to the release and followed its instructions to comment out the <exclude>
> tags in 2 build.xml files (one in framework/webapp and the other in
> applications/content) and STILL it throws the same error!  (the server is
> started with 'ant run' and the webtools app throws the exception).
>
> BTW, why exclude something from the build when there are obviously
> dependencies on it elsewhere in the system?
> ________________________________
>
> From: [hidden email] [mailto:[hidden email]]
> Sent: Thu 2/2/2006 11:56 AM
> To: Blessing, Jeffrey J
> Subject: Request to mailing list Users rejected
>
>
>
> Your request to the Users mailing list
>
>     Posting of your message titled "JRDataSource error (JasperReports)
> prevents ofbiz server from running"
>
> has been rejected by the list moderator.  The moderator gave the
> following reason for rejecting your request:
>
> "Non-members are not allowed to post messages to this list. To
> subscribe and for more information please see: http://lists.ofbiz.org.
> BTW, you might find some helpful information in the new
> OPTIONAL_LIBRARIES file. This is a good question for the lists though.
> It has been brought up a couple of times, but a more direct anwer
> might be helpful to some. -David"
>
> Any questions or comments should be directed to the list administrator
> at:
>
>     [hidden email]


 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

winmail.dat (9K) Download Attachment