| Summary: | 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 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Uffe <ufferoenne> | ||||
| Component: | BIRT | Assignee: | Birt-ReportViewer <Birt-ReportViewer-inbox> | ||||
| Status: | NEW --- | QA Contact: | weiming tang <weiming.tang> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bluesoldier, fenoloco, jasonweathersby, nospam.greghe, weiming.tang | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Uffe
Created attachment 204435 [details]
Stack trace
(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 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 (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 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. 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. 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. |