Skip to main content



      Home
Home » Archived » BIRT » BIRT Viewer ClassCastException
BIRT Viewer ClassCastException [message #209716] Sun, 07 January 2007 23:12 Go to next message
Eclipse UserFriend
Originally posted by: octa.putrawan.karsono.icsnetlink.com

Hi all,

I have trouble deploying and running BIRT Viewer v2.1.1 onto my Debian
Sarge + Tomcat 4.1

I managed to install it, but whenever I run a report with chart on it, it
would fail, and says "java.lang.ClassCastException".

I'm wondering if any of you have experienced it before, and how to solve
it.

Or at least, how to get as much debugging/logging code as possible,
because right now, it only says ClassCastException and nothing else. I
tried to look into BIRT logfile, but there's nothing in there.

All helps and tips are appreciated.

Thanks in advanced,

Octa Karsono
Re: BIRT Viewer ClassCastException [message #209761 is a reply to message #209716] Mon, 08 January 2007 07:55 Go to previous message
Eclipse UserFriend
Hi,

What happens is likely to be a classloader conflict between your app server
and BIRT. Indeed the typical classloading mechanism is to load classes from
the app-server first, then from the application. However the lib of your
appserver might be different than the one required by BIRT, and BIRT is using
OSGi classloading which we also load some of the class from the application
lib. Then when trying to cast, the JVM will detect they are not the same
class file and throw this exception.

The way to remedy to this is to set a classloading policy as "parent last"
in your application server. Normally all app servers have this kind of setting
as this is a rather generic issue. This setting means it will first load
the class from the application, then from the app server.

Thanks,

David

> Hi all,
>
> I have trouble deploying and running BIRT Viewer v2.1.1 onto my Debian
> Sarge + Tomcat 4.1
>
> I managed to install it, but whenever I run a report with chart on it,
> it would fail, and says "java.lang.ClassCastException".
>
> I'm wondering if any of you have experienced it before, and how to
> solve it.
>
> Or at least, how to get as much debugging/logging code as possible,
> because right now, it only says ClassCastException and nothing else. I
> tried to look into BIRT logfile, but there's nothing in there.
>
> All helps and tips are appreciated.
>
> Thanks in advanced,
>
> Octa Karsono
>
Previous Topic:Gap in the chart
Next Topic:Localization problem
Goto Forum:
  


Current Time: Sun Jun 01 21:10:02 EDT 2025

Powered by FUDForum. Page generated in 0.08793 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top