Bug 359678 - Birt viewer 3.7.1 on JBoss 6.1.0 (jdk1.6.0_21) throws exception on startup: java.lang.ClassFormatError: Illegal class name "org/osgi/service/log/package-info" in class file org/osgi/service/log/package-info
Summary: Birt viewer 3.7.1 on JBoss 6.1.0 (jdk1.6.0_21) throws exception on startup: j...
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportViewer CLA
QA Contact: weiming tang CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-03 04:06 EDT by Uffe CLA
Modified: 2012-04-25 06:04 EDT (History)
5 users (show)

See Also:


Attachments
Stack trace (11.15 KB, text/plain)
2011-10-03 04:08 EDT, Uffe CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Uffe CLA 2011-10-03 04:06:13 EDT
Build Identifier: Birt viewer 3.7.1 

I have installed the following:

- jdk1.6.0_21
- JBoss 6.1.0
- Birt web viewer 3.7.1 (from 3.7.1 runtime). I copied the WebViewerExample folder from Birt 3.7.1 runtime to server/default/deploy and rename the folder to birt.war

When starting up JBoss the following exception is thrown, however the system seems to work anyway:

09:48:24,160 WARN [ClassLoaderManager] Unexpected error during load of:org.osgi.service.log.package-info: java.lang.ClassFormatError: Illegal class n
ame "org/osgi/service/log/package-info" in class file org/osgi/service/log/package-info

I have attached to full stack trace

Reproducible: Always

Steps to Reproduce:
1. Install jdk1.6.0_21
2. Install JBoss 6.1.0
3. Copy the WebViewerExample folder from Birt 3.7.1 runtime to server/default/deploy and rename the folder to birt.war
Comment 1 Uffe CLA 2011-10-03 04:08:42 EDT
Created attachment 204435 [details]
Stack trace
Comment 2 Xiaoying Gu CLA 2011-10-27 05:20:17 EDT
(In reply to comment #0)
> Build Identifier: Birt viewer 3.7.1 
> 
> I have installed the following:
> 
> - jdk1.6.0_21
> - JBoss 6.1.0
> - Birt web viewer 3.7.1 (from 3.7.1 runtime). I copied the WebViewerExample
> folder from Birt 3.7.1 runtime to server/default/deploy and rename the folder
> to birt.war
> 
> When starting up JBoss the following exception is thrown, however the system
> seems to work anyway:
> 
> 09:48:24,160 WARN [ClassLoaderManager] Unexpected error during load
> of:org.osgi.service.log.package-info: java.lang.ClassFormatError: Illegal class
> n
> ame "org/osgi/service/log/package-info" in class file
> org/osgi/service/log/package-info
> 
> I have attached to full stack trace
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Install jdk1.6.0_21
> 2. Install JBoss 6.1.0
> 3. Copy the WebViewerExample folder from Birt 3.7.1 runtime to
> server/default/deploy and rename the folder to birt.war

Is your Jboss server work well? The exception does not show the problem of birt.
It's may be the problem of deploying Jboss.
Please see http://www.wowtutorial.org/tutorial/38.html
Comment 3 Uffe CLA 2011-11-02 07:11:08 EDT
Hi Xiaoying Gu

Not sure what you mean. How can it not be a problem of birt? Isn't birt built on OSGI?

My JBoss is fine. I installed it from scratch and done as described.

Br, Uffe
Comment 4 Mauricio Fenoglio CLA 2012-03-14 13:32:36 EDT
(In reply to comment #2)

I cant understand your reply... The title said on JBoss 6.1.0  and you attach a link with a guide with conf of Jboss 4 !!! 

I have the same problem, and the jboss is well configured, can you give some helps?


> (In reply to comment #0)
> > Build Identifier: Birt viewer 3.7.1 
> > 
> > I have installed the following:
> > 
> > - jdk1.6.0_21
> > - JBoss 6.1.0
> > - Birt web viewer 3.7.1 (from 3.7.1 runtime). I copied the WebViewerExample
> > folder from Birt 3.7.1 runtime to server/default/deploy and rename the folder
> > to birt.war
> > 
> > When starting up JBoss the following exception is thrown, however the system
> > seems to work anyway:
> > 
> > 09:48:24,160 WARN [ClassLoaderManager] Unexpected error during load
> > of:org.osgi.service.log.package-info: java.lang.ClassFormatError: Illegal class
> > n
> > ame "org/osgi/service/log/package-info" in class file
> > org/osgi/service/log/package-info
> > 
> > I have attached to full stack trace
> > 
> > Reproducible: Always
> > 
> > Steps to Reproduce:
> > 1. Install jdk1.6.0_21
> > 2. Install JBoss 6.1.0
> > 3. Copy the WebViewerExample folder from Birt 3.7.1 runtime to
> > server/default/deploy and rename the folder to birt.war
> 
> Is your Jboss server work well? The exception does not show the problem of
> birt.
> It's may be the problem of deploying Jboss.
> Please see http://www.wowtutorial.org/tutorial/38.html
Comment 5 Jason Weathersby CLA 2012-04-20 14:03:20 EDT
Can you try the 3.7.2 runtime?  It worked for me.  If you have to use 3.7.1 you may want to try and just remove the package-info.class from the WEB-INF\lib\org.eclipse.osgi_3.7.2.v20120110-1415.jar it is in this folder \org\osgi\service\log\ 
3.7.2 also now has a 3.7.2 osgi runtime as well as the POJO runtime you could try.
Comment 6 Jason Weathersby CLA 2012-04-20 14:04:46 EDT
I noticed another project had a similar error as well:
http://sourceforge.net/tracker/?func=detail&aid=3443373&group_id=69637&atid=525264

That suggests using the nowarn option.
Comment 7 Greg Henriksen CLA 2012-04-25 06:04:39 EDT
I had a similar problem and was tracking it via http://www.eclipse.org/forums/index.php/mv/msg/315860/828275/#msg_828275 but I am posting here to enable bug resolution.

A further update in my testing. (To clarify I am running jboss 6.1.0 Final, birt 3.7.2, JAVA jdk1.6.0_27 and Win 7 )

I followed one of the suggestions and removed package-info.class from org.eclipse.osgi_3.7.2.v20120110-1415.jar but I still had the failures noted above. I also restored jcl-over-slf4j.jar in jboss but I then was unable to run the sample report and had the failure reported in my first post above.

I also tested coping/moving the 'WebViewerExample' folder (renamed to birt.war) from the normal JBoss (\server\default\deploy) POJO install to the JBoss \common\deploy and I was able to get the example report to run.

I then tried the OSGI runtime (from birt-runtime-osgi-3_7_2.zip) and I was able to get the sample report to run and display. The jboss logs are not showing any errors when reports are executed via the birt viewer.

I have reverted to the POJO install in Tomcat 7 and I am not having any issues.