| Summary: | Exception when adding a chart in a webproject using BIRT | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Missing name Mising name <loebe0> | ||||
| Component: | BIRT | Assignee: | Heng Li <liheeng> | ||||
| Status: | CLOSED FIXED | QA Contact: | Xiaoying Gu <bluesoldier> | ||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | bluesoldier, cooll, jouyang, Lionel.wyl, qwe, raghunadh.madamanchi | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.7.0 M7 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Missing name Mising name
Created attachment 184225 [details]
screenshot of exception
The js.jar in lib folder cause class loading conflict, deleting the jar can fix this problem. Normally there are 2 working mode of BIRT: OSGi in web and web in OSGI. BIRT runtime in web application works as OSGi in web mode. Designer works as web in OSGi mode. This problem occurs because it tries to work in BOTH mode. The rhino classes loaded from lib folder while BIRT Engine is supposed to depend on rhino plugin because it's in designer. Deleting js.jar can fix this problem. But there might be some other potential problems. To keep on safe side, user can create another project same as the web project except that no BIRT runtime jars are placed in lib folder, and use this project for report edition only. Removing js.jar from tomcat/lib is not possible: the report won't run anymore from the web application: java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable at org.eclipse.birt.core.data.DataTypeUtil.convert(DataTypeUtil.java:91) It was working perfectly with galileo and birt 2.5.2. (In reply to comment #3) > Removing js.jar from tomcat/lib is not possible: the report won't run anymore > from the web application: > java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable > at org.eclipse.birt.core.data.DataTypeUtil.convert(DataTypeUtil.java:91) > It was working perfectly with galileo and birt 2.5.2. I think the work around is not suggesting removing js.jar from WEB-INF/lib/ in the runtime environment. If you attempt to modify the report design under a WEB project directly, the trick may work. For previewing, the js.jar is absolutly reqruired. *** Bug 334740 has been marked as a duplicate of this bug. *** Reopen for more investigation. This regression was caused by inappropriate usage of Engine's APIs, according to Engine's suggestion, chart has fixed this bug by using PROJECT_CLASS_PATH instead of APPCONTEXT_CLASS_PATH to save external class path. (In reply to comment #7) > This regression was caused by inappropriate usage of Engine's APIs, according > to Engine's suggestion, chart has fixed this bug by using PROJECT_CLASS_PATH > instead of APPCONTEXT_CLASS_PATH to save external class path. Can you please let me know, In which version of BIRT, is this Fixed? (In reply to comment #8) > (In reply to comment #7) > > This regression was caused by inappropriate usage of Engine's APIs, according > > to Engine's suggestion, chart has fixed this bug by using PROJECT_CLASS_PATH > > instead of APPCONTEXT_CLASS_PATH to save external class path. > > > Can you please let me know, In which version of BIRT, is this Fixed? Please use the latest release version 3.7 Thanks. |