Running the report viewer and another BIRT api client in the same JBoss [message #363456] |
Tue, 24 June 2008 14:47 |
Eclipse User |
|
|
|
Originally posted by: spolak.hp.com
I'm using BIRT 2.1.1 with JBoss 4.0.3SP1 on java 1.6.0_06-b02.
I have an application deployed in JBoss that uses the web viewer to run
reports. It works great!
Recently I tried to add another application to my JBoss server which
would use the Report Engine API to run reports. Instead of adding BIRT
to the war for this new application, I thought I could start up a second
instance of the platform and report engine from the same path as the
Viewer was using. It also appeared to work, until I tried to open a
report with a chart in it. At that point, I think the OSGI platform is
having trouble loading the chart plugin but I can't figure out why.
I get two different exceptions. One shows up the first time after
deploying my API client that I try to open a report with a chart, and
the second exception shows up every subsequent attempt.
The exception that appears on the first attempt:
Caused by: java.lang.ClassNotFoundException: Unexpected error during
load of: org.eclipse.emf.ecore.impl.EPackageImpl$1,
msg=org/eclipse/emf/ecore/util/EObjectContainmentWithInverse EList
$Resolving
at
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(Rep ositoryClassLoader.java:512)
at
org.jboss.mx.loading.RepositoryClassLoader.loadClass(Reposit oryClassLoader.java:377)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
The exception when calling openReportDesign on a report design
containing a chart after the first attempt:
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.eclipse.birt.chart.model.ModelPackage
at
org.eclipse.birt.chart.model.util.ModelResourceFactoryImpl.<init >(ModelResourceFactoryImpl.java:43)
at
org.eclipse.birt.chart.model.impl.SerializerImpl.fromXml(Ser ializerImpl.java:363)
at
org.eclipse.birt.chart.reportitem.ChartReportItemImpl.deseri alize(ChartReportItemImpl.java:233)
Has anyone seen a similar problem or even tried to run a BIRT API
client in the same application container as the viewer servlet?
Thanks,
Sam
|
|
|
Re: Running the report viewer and another BIRT api client in the same JBoss [message #363485 is a reply to message #363456] |
Wed, 25 June 2008 15:52 |
Eclipse User |
|
|
|
Originally posted by: spolak.hp.com
It turns out that this does work if you do it properly. There was
another copy of the org.eclipse.emf jars in a location on the
container's classpath that was interfering with the class loading. I
moved those jars off the classpath and now I can run my reports just
fine.
Let this be a lesson to anyone who sees a similar error- make sure you
don't have duplicate copies of jar files on your classpath.
On Tue, 2008-06-24 at 10:47 -0400, Sam Polak wrote:
> I'm using BIRT 2.1.1 with JBoss 4.0.3SP1 on java 1.6.0_06-b02.
>
> I have an application deployed in JBoss that uses the web viewer to run
> reports. It works great!
>
> Recently I tried to add another application to my JBoss server which
> would use the Report Engine API to run reports. Instead of adding BIRT
> to the war for this new application, I thought I could start up a second
> instance of the platform and report engine from the same path as the
> Viewer was using. It also appeared to work, until I tried to open a
> report with a chart in it. At that point, I think the OSGI platform is
> having trouble loading the chart plugin but I can't figure out why.
>
> I get two different exceptions. One shows up the first time after
> deploying my API client that I try to open a report with a chart, and
> the second exception shows up every subsequent attempt.
>
> The exception that appears on the first attempt:
>
> Caused by: java.lang.ClassNotFoundException: Unexpected error during
> load of: org.eclipse.emf.ecore.impl.EPackageImpl$1,
> msg=org/eclipse/emf/ecore/util/EObjectContainmentWithInverse EList
> $Resolving
> at
> org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(Rep ositoryClassLoader.java:512)
> at
> org.jboss.mx.loading.RepositoryClassLoader.loadClass(Reposit oryClassLoader.java:377)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>
>
> The exception when calling openReportDesign on a report design
> containing a chart after the first attempt:
>
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> org.eclipse.birt.chart.model.ModelPackage
> at
> org.eclipse.birt.chart.model.util.ModelResourceFactoryImpl.<init >(ModelResourceFactoryImpl.java:43)
> at
> org.eclipse.birt.chart.model.impl.SerializerImpl.fromXml(Ser ializerImpl.java:363)
> at
> org.eclipse.birt.chart.reportitem.ChartReportItemImpl.deseri alize(ChartReportItemImpl.java:233)
>
> Has anyone seen a similar problem or even tried to run a BIRT API
> client in the same application container as the viewer servlet?
>
> Thanks,
> Sam
>
|
|
|
Powered by
FUDForum. Page generated in 0.03363 seconds