Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Problem integrating BIRT 3.7 with jsf using jsf4birt library
Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #774775] Wed, 04 January 2012 10:24 Go to next message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
When I followed the steps mentioned on

exadel.org/jsf4birt-docs

except the step for creation of platform in WEB-INF/ directory.

I am getting following exception. I have wasted a lot of time fixing this but was unable to do so.... Jason please help me with this problem.
Thank you in advance.

This is what displayed on console and below that is the message displayed in browser.

javax.faces.FacesException: javax.faces.FacesException: No configuration was defined for birt engine
at com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:152)
at com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
at com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.faces.FacesException: No configuration was defined for birt engine
at com.exadel.jsfbirt.engine.BirtEngine.loadEngineProps(BirtEngine.java:122)
at com.exadel.jsfbirt.engine.BirtEngine.initBirtConfig(BirtEngine.java:47)
at com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:57)
at com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
... 31 more
20:17:12,462 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: No configuration was defined for birt engine
at com.exadel.jsfbirt.engine.BirtEngine.loadEngineProps(BirtEngine.java:122)
at com.exadel.jsfbirt.engine.BirtEngine.initBirtConfig(BirtEngine.java:47)
at com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:57)
at com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
at com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
at com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:662)



and in browser the following message



type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: No configuration was defined for birt engine
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

root cause

javax.faces.FacesException: No configuration was defined for birt engine
com.exadel.jsfbirt.engine.BirtEngine.loadEngineProps(BirtEngine.java:122)
com.exadel.jsfbirt.engine.BirtEngine.initBirtConfig(BirtEngine.java:47)
com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:57)
com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

note The full stack trace of the root cause is available in the JBoss Web/2.1.3.GA logs.
JBoss Web/2.1.3.GA
0
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #774833 is a reply to message #774775] Wed, 04 January 2012 13:05 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Rohit,

I have not used jsf4birt but from the stack trace it looks like a
properties file can not be found. Try creating a file named
BirtConfig.properties with contents like

logDirectory=c:/temp
logLevel=SEVERE

Jar the properties file and put it in the classpath.

Jason

On 1/4/2012 10:24 AM, Rohit Mising name wrote:
> When I followed the steps mentioned on
> exadel.org/jsf4birt-docs
>
> except the step for creation of platform in WEB-INF/ directory.
>
> I am getting following exception. I have wasted a lot of time fixing
> this but was unable to do so.... Jason please help me with this problem.
> Thank you in advance.
>
> This is what displayed on console and below that is the message
> displayed in browser.
>
> javax.faces.FacesException: javax.faces.FacesException: No configuration
> was defined for birt engine
> at
> com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:152)
>
> at
> com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
>
> at
> com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
>
> at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
> at
> com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
>
> at
> com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
>
> at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
>
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
> at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>
> at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>
> at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>
> at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>
> at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
>
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: javax.faces.FacesException: No configuration was defined for
> birt engine
> at
> com.exadel.jsfbirt.engine.BirtEngine.loadEngineProps(BirtEngine.java:122)
> at com.exadel.jsfbirt.engine.BirtEngine.initBirtConfig(BirtEngine.java:47)
> at com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:57)
> at
> com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
>
> ... 31 more
> 20:17:12,462 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces
> Servlet threw exception
> javax.faces.FacesException: No configuration was defined for birt engine
> at
> com.exadel.jsfbirt.engine.BirtEngine.loadEngineProps(BirtEngine.java:122)
> at com.exadel.jsfbirt.engine.BirtEngine.initBirtConfig(BirtEngine.java:47)
> at com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:57)
> at
> com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
>
> at
> com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
>
> at
> com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
>
> at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
> at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
> at
> com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
>
> at
> com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
>
> at
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
>
> at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
> at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
>
> at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
>
> at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
>
> at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>
> at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
>
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:662)
>
>
>
> and in browser the following message
>
>
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: No configuration was defined for birt
> engine
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
>
> root cause
>
> javax.faces.FacesException: No configuration was defined for birt engine
> com.exadel.jsfbirt.engine.BirtEngine.loadEngineProps(BirtEngine.java:122)
> com.exadel.jsfbirt.engine.BirtEngine.initBirtConfig(BirtEngine.java:47)
> com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:57)
> com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
>
> com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
>
> com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
>
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
> javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
> com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
>
> com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
>
> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
>
> com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
>
> note The full stack trace of the root cause is available in the JBoss
> Web/2.1.3.GA logs.
> JBoss Web/2.1.3.GA 0
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #775729 is a reply to message #774833] Fri, 06 January 2012 10:42 Go to previous messageGo to next message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
Jason,

I tried what you suggested but still its not working. So in addition I tried adding

<context-param>
<param-name>org.eclipse.birt.configPath</param-name>
<param-value>WEB-INF/BirtConfig.properties</param-value>
</context-param>

to my web.xml as the code for loading properties uses getInitParameter() as :

ClassLoader cl = Thread.currentThread().getContextClassLoader();

configPath = birtWrapper != null ? birtWrapper.getConfigPath() : null;

if (configPath == null) {
FacesContext context = FacesContext.getCurrentInstance();
configPath = context.getExternalContext().getInitParameter("org.eclipse.birt.configPath");

if (configPath == null) {
throw new FacesException("No configuration was defined for birt engine");
}

and I got following stack trace


javax.servlet.ServletException: Cant startup the OSGI framework
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause

org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI framework
org.eclipse.birt.core.framework.Platform.startup(Platform.java:91)
com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:73)
com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause

org.eclipse.birt.core.exception.CoreException
org.eclipse.birt.core.framework.osgi.OSGILauncher.startup(OSGILauncher.java:90)
org.eclipse.birt.core.framework.Platform.startup(Platform.java:79)
com.exadel.jsfbirt.engine.BirtEngine.getBirtEngine(BirtEngine.java:73)
com.exadel.jsfbirt.engine.BirtRendererUtils.renderBirt(BirtRendererUtils.java:134)
com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.doEncodeBegin(BirtWrapperRenderer.java:162)
com.exadel.jsfbirt.renderkit.html.BirtWrapperRenderer.encodeBegin(BirtWrapperRenderer.java:127)
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:828)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
javax.faces.component.UIComponent.encodeAll(UIComponent.java:1655)
com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:399)
com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:313)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


Also I have deleted all the old libraries. Anyways thank you for replying and I am sorry for late replying.


Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #775740 is a reply to message #774833] Fri, 06 January 2012 11:00 Go to previous messageGo to next message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
Jason,

now I am trying to use birt in a different way and I want your advice on this approach.

I am designing reports using eclipse birt designer and using RE API to extract the data( which is bound to table/list by a dataset ) and extracted data will be provided to other UI components ( not specific, it could be any ) for rendering purpose.

I am creating a .rptdocument using IRunTask in a servlet and the extracted result would be fed to UI component.

The only reason for this approach is to get a better UI.

Please advice me on this, thanks in advance
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #775764 is a reply to message #775729] Fri, 06 January 2012 11:39 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

This error:
org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI
framework

Implies that birt home is being set, which you do not want to do for
BIRT 3.7.1. For 3.7.1 all you should have to do is have all the jars
from the reportengine/lib(runtime download) in your classpath.

I know someone got jsf4birt working with 3.7.1 because of this thread:
http://www.birt-exchange.org/org/forum/index.php/topic/23053-birt-3-7-and-jsf4birt/page__s__aed15222db61587aab65251f1f5c7d13

Jason

On 1/6/2012 10:42 AM, Rohit Lambi wrote:
> org.eclipse.birt.core.exception.BirtException: Cant startup the OSGI
> framework
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #775767 is a reply to message #775740] Fri, 06 January 2012 11:40 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

This sounds fine. Are you using the data extraction task to retrieve
the data from the rptdocument?

Jason

On 1/6/2012 11:00 AM, Rohit Lambi wrote:
> Jason,
>
> now I am trying to use birt in a different way and I want your advice on
> this approach.
>
> I am designing reports using eclipse birt designer and using RE API to
> extract the data( which is bound to table/list by a dataset ) and
> extracted data will be provided to other UI components ( not specific,
> it could be any ) for rendering purpose.
>
> I am creating a .rptdocument using IRunTask in a servlet and the
> extracted result would be fed to UI component.
>
> The only reason for this approach is to get a better UI.
>
> Please advice me on this, thanks in advance
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #775806 is a reply to message #775767] Fri, 06 January 2012 12:50 Go to previous messageGo to next message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
Yes I am using data extraction task to retrieve data from the rptdocument.

And are there any performance issues ?

And about the jsf4birt library, the last question to which you responded on this link

http://www.birt-exchange.org/org/forum/index.php/topic/23053-birt-3-7-and-jsf4birt/page__s__aed15222db61587aab65251f1f5c7d13

was my question about jsf4birt Smile and I tried those steps too but it didn't helped.
I wonder how that guy made it worked.

Thank you for replying so quick.
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #775829 is a reply to message #775806] Fri, 06 January 2012 13:35 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Can you try to send him a message from birt exchange?
I do not know of any performance issues with data extraction. Just name
your elements (tables, charts) to make it easier to specify component in
the extraction task.

Jason

On 1/6/2012 12:50 PM, Rohit Lambi wrote:
> Yes I am using data extraction task to retrieve data from the rptdocument.
>
> And are there any performance issues ?
>
> And about the jsf4birt library, the last question to which you responded
> on this link
>
> http://www.birt-exchange.org/org/forum/index.php/topic/23053-birt-3-7-and-jsf4birt/page__s__aed15222db61587aab65251f1f5c7d13
>
>
> was my question about jsf4birt :) and I tried those steps too but it
> didn't helped. I wonder how that guy made it worked.
>
> Thank you for replying so quick.
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #775989 is a reply to message #775829] Fri, 06 January 2012 23:52 Go to previous messageGo to next message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
Jason,

I'll be using only tables for data extraction. And is there any way to get data directly from dataset instead of table ?

Yes, I will send him a message from birt exchange.

Thank you
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #776962 is a reply to message #775989] Mon, 09 January 2012 10:37 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Data sets in reports do not run unless they are bound to something, so
using the data extraction API only works on report items.

Jason

On 1/6/2012 11:52 PM, Rohit Lambi wrote:
> Jason,
>
> I'll be using only tables for data extraction. And is there any way to
> get data directly from dataset instead of table ?
>
> Yes, I will send him a message from birt exchange.
> Thank you
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #780262 is a reply to message #776962] Tue, 17 January 2012 08:50 Go to previous messageGo to next message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
here

http://www.eclipse.org/birt/release20specs/BPS32_BPS33_SearchAndExportReportData.pdf

it says that
Data Extraction would be supported at several different levels
1. Report Level
2. Dataset Level
3. Report Item Level
4. Report Item Instance

I want data extraction at dataset level . how to do this ?
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #780400 is a reply to message #780262] Tue, 17 January 2012 13:12 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

This is not supported yet. You can always bind a hidden element to a
data set then use that item to extract the results from the rptdocument.
Another option is to use the data integration api but that will re-run
the query.

Jason

On 1/17/2012 8:50 AM, Rohit Lambi wrote:
> here
> http://www.eclipse.org/birt/release20specs/BPS32_BPS33_SearchAndExportReportData.pdf
>
>
> it says that Data Extraction would be supported at several different levels
> 1. Report Level
> 2. Dataset Level
> 3. Report Item Level
> 4. Report Item Instance
>
> I want data extraction at dataset level . how to do this ?
>
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #780694 is a reply to message #780400] Thu, 19 January 2012 00:24 Go to previous message
Rohit Lambi is currently offline Rohit Lambi
Messages: 16
Registered: December 2011
Junior Member
ok.. Thank you for the reply
Previous Topic:parameter marker
Next Topic:Get report progression from engine API
Goto Forum:
  


Current Time: Sat Aug 30 12:45:50 EDT 2014

Powered by FUDForum. Page generated in 0.03446 seconds