On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
viewer integration into j2ee application
Assaf
Junior Member
Hi,
I want to use the viewer to display my application reports.
I want to pass a JAVA object to the report scripted data source of the reports (using DB datasources are to complex).
I was told that this can be done by coping a jar of my classes or placing the classes themselfs under the viewer web-inf/classes folder-> the viewer is a seperate app. than
my app.
this posses a problem for me - I fetch data using my app classes that rely also on static info from the app classes-> these cannot be coppied to another viewer app.
So, what I need is to intergrate the viewer as-is into my J2EE application (developed on RAD7 and usually runs under tomcat5.5).
How can I do this ?
p.s.
I tried to copy the source files -
all folders (webcontenet and empty - attachments,scriptlib,logs,documents) , all contents of web-inf into my application web-inf (when file already exists , like , web.xml , or lib folder) I just added the birt specific content into my application web.xml or jars in my lib folder)..
When I tried to access a report using the same app context as my app (using the frameset) servlet I get the following error:
[ViewerServlet]: java.lang.NoSuchMethodError: org.mozilla.javascript.ImporterTopLevel: method initStandardObjects(Lorg/mozilla/javascript/Context;Z)V not found
at org.eclipse.birt.core.script.ScriptContext.<init>(ScriptContext.java:80)
I tried to set the server mode to parent last (birt's js.jar contains a newer class thatthe JRE contains as well)..
This setting didn't work for me ...
Any Idea ?
What would be the easiest way to achieve what I'm looking for ?
Many thanks (and sorry for the long story)
I want to use the viewer to display my application reports.
I want to pass a JAVA object to the report scripted data source of the reports (using DB datasources are to complex).
I was told that this can be done by coping a jar of my classes or placing the classes themselfs under the viewer web-inf/classes folder-> the viewer is a seperate app. than
my app.
this posses a problem for me - I fetch data using my app classes that rely also on static info from the app classes-> these cannot be coppied to another viewer app.
So, what I need is to intergrate the viewer as-is into my J2EE application (developed on RAD7 and usually runs under tomcat5.5).
How can I do this ?
p.s.
I tried to copy the source files -
all folders (webcontenet and empty - attachments,scriptlib,logs,documents) , all contents of web-inf into my application web-inf (when file already exists , like , web.xml , or lib folder) I just added the birt specific content into my application web.xml or jars in my lib folder)..
When I tried to access a report using the same app context as my app (using the frameset) servlet I get the following error:
[ViewerServlet]: java.lang.NoSuchMethodError: org.mozilla.javascript.ImporterTopLevel: method initStandardObjects(Lorg/mozilla/javascript/Context;Z)V not found
at org.eclipse.birt.core.script.ScriptContext.<init>(ScriptContext.java:80)
I tried to set the server mode to parent last (birt's js.jar contains a newer class thatthe JRE contains as well)..
This setting didn't work for me ...
Any Idea ?
What would be the easiest way to achieve what I'm looking for ?
Many thanks (and sorry for the long story)
Comments
-
Hi Assaf,<br />
<br />
I have not tried this myself, but I understand this is possible now with BIRT 2.2. Have a look at this link at <a class='bbc_url' href='http://www.eclipse.org/birt/phoenix/project/notable2.2.php#jump_23'>http://www.eclipse.org/birt/phoenix/project/notable2.2.php#jump_23</a>. As I understand it, this may allow you to pass your Objects to be available to the viewer.
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax