Users - JRDataSource NoClassDefFoundError

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Users - JRDataSource NoClassDefFoundError

Blessing, Jeffrey J
Request to mailing list Users rejected
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
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

Hans Bakker
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

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

Blessing, Jeffrey J
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
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

Daniel Kunkel
On Sat, 2006-02-04 at 20:40 -0600, Blessing, Jeffrey J wrote:
> Why was JasperReports removed from the repository in the first place?
> Was it licensing?
> -Jeff


Yes...  in New Revision: 6608

David removed jasperreports jars because it is LGPL, and OFBiz has been
approved to enter the incubator as an Apache project!



 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

davidnwelton
> David removed jasperreports jars because it is LGPL, and OFBiz has been
> approved to enter the incubator as an Apache project!

To be precise about terminology, OFBiz has been approved to enter the
Apache Software Foundation's Incubator.  It's not yet "an Apache
project", but I think it will be if things keep going like they are.
It becomes an official project when it leaves the Incubator.

--
David N. Welton
 - http://www.dedasys.com/davidw/

Linux, Open Source Consulting
 - http://www.dedasys.com/
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

Andrew Sykes
David,

What would constitute an incubation period and are there any criteria to
be met during this period?


On Mon, 2006-02-06 at 14:53 +0100, David Welton wrote:

> > David removed jasperreports jars because it is LGPL, and OFBiz has been
> > approved to enter the incubator as an Apache project!
>
> To be precise about terminology, OFBiz has been approved to enter the
> Apache Software Foundation's Incubator.  It's not yet "an Apache
> project", but I think it will be if things keep going like they are.
> It becomes an official project when it leaves the Incubator.
>
> --
> David N. Welton
>  - http://www.dedasys.com/davidw/
>
> Linux, Open Source Consulting
>  - http://www.dedasys.com/
>  
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

davidnwelton
On 2/6/06, Andrew Sykes <[hidden email]> wrote:
> David,
>
> What would constitute an incubation period and are there any criteria to
> be met during this period?

Yes, there are, and OFBiz already meets many of them.  Look a bit more
than halfway down this page:

http://incubator.apache.org/incubation/Incubation_Policy.html

--
David N. Welton
 - http://www.dedasys.com/davidw/

Linux, Open Source Consulting
 - http://www.dedasys.com/
 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

Jacopo Cappellato
In reply to this post by Andrew Sykes
Andrew (and others interested),

you'll find these and many other interesting information here:

http://incubator.apache.org

Very soon (next few days?), OFBiz will be added to the list of
incubating projects (http://incubator.apache.org/projects/index.html).

Jacopo

Andrew Sykes wrote:

> David,
>
> What would constitute an incubation period and are there any criteria to
> be met during this period?
>
>
> On Mon, 2006-02-06 at 14:53 +0100, David Welton wrote:
>>> David removed jasperreports jars because it is LGPL, and OFBiz has been
>>> approved to enter the incubator as an Apache project!
>> To be precise about terminology, OFBiz has been approved to enter the
>> Apache Software Foundation's Incubator.  It's not yet "an Apache
>> project", but I think it will be if things keep going like they are.
>> It becomes an official project when it leaves the Incubator.
>>
>> --
>> David N. Welton
>>  - http://www.dedasys.com/davidw/
>>
>> Linux, Open Source Consulting
>>  - http://www.dedasys.com/
>>  
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Users - JRDataSource NoClassDefFoundError

Andrew Sykes
Can we get a bit more information about this as things progress please,
there's been little said about this since David's initial proposition...

Is there somewhere that this stuff is being discussed that I'm missing?
How do you guys decide what you're doing and in what order?
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

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