IncompatibleClassChangeError when running in JBOSS [message #758143] |
Tue, 22 November 2011 05:17 |
Melvin Mah Messages: 24 Registered: July 2009 |
Junior Member |
|
|
Hi,
I am getting a IncompatibleClassChangeError when I try to render a report after porting the content over from WebLogic 10 to JBOSS 4.22
I am aware that the topic is similar in title to another one http://www.eclipse.org/forums/index.php/m/657930/?srch=Expecting+non-static+method+org.eclipse.birt.report.model.metadata.MetaDataDictionary#msg_657930 but it's a little different as I didn't upgrade the engine. It's still using version 2.5.2
A few things to point out:
1. Since JBOSS doesn't take directories as servlet like Weblogic do, I had to build a war file containing code, libraries and plugins. The resource directories have been separated out into another folder outside. (for easy report file management, replacement etc..)
2. For JBOSS, I have substituted the argument used for the openDesign method in WebReport.java. Originally, for WebLogic, I am able to use sc.getRealPath with ease, instead now I would use like:
birtReportEngine.openReportDesign(birtReportEngine.getResourcePath()+File.separator+reportName)
One of the solutions that was mentioned previously was to set the BIRT_HOME variable. Unfortunately this doesn't work. And right now, I am little stuck.
Any ideas? Thanks.
Melvin
|
|
|
Re: IncompatibleClassChangeError when running in JBOSS [message #758315 is a reply to message #758143] |
Tue, 22 November 2011 17:13 |
|
Melvin
Are both machines using the same jvm version? BTW I think JBoss can use
a directory structure if you name the directory with a .war for example
BirtViewer.war.
Jason
On 11/22/2011 12:17 AM, Melvin Mah wrote:
> Hi,
>
> I am getting a IncompatibleClassChangeError when I try to render a
> report after porting the content over from WebLogic 10 to JBOSS 4.22
>
> I am aware that the topic is similar in title to another one
> http://www.eclipse.org/forums/index.php/m/657930/?srch=Expecting+non-static+method+org.eclipse.birt.report.model.metadata.MetaDataDictionary#msg_657930
> but it's a little different as I didn't upgrade the engine. It's still
> using version 2.5.2
>
> A few things to point out:
>
> 1. Since JBOSS doesn't take directories as servlet like Weblogic do, I
> had to build a war file containing code, libraries and plugins. The
> resource directories have been separated out into another folder
> outside. (for easy report file management, replacement etc..)
>
> 2. For JBOSS, I have substituted the argument used for the openDesign
> method in WebReport.java. Originally, for WebLogic, I am able to use
> sc.getRealPath with ease, instead now I would use like:
> birtReportEngine.openReportDesign(birtReportEngine.getResourcePath()+File.separator+reportName)
>
>
> One of the solutions that was mentioned previously was to set the
> BIRT_HOME variable. Unfortunately this doesn't work. And right now, I am
> little stuck.
>
> Any ideas? Thanks.
>
> Melvin
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.32708 seconds