|
Re: Problem integrating BIRT 3.7 with jsf using jsf4birt library [message #774833 is a reply to message #774775] |
Wed, 04 January 2012 18:05 |
|
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 #775767 is a reply to message #775740] |
Fri, 06 January 2012 16:40 |
|
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 #776962 is a reply to message #775989] |
Mon, 09 January 2012 15:37 |
|
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
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05563 seconds