4 Replies Latest reply on Aug 4, 2011 6:36 PM by Carlos Celis Osorio

    Problem: embed BIRT Report in Seam page [solved]

    Carlos Celis Osorio Newbie

      Hi there.

       

      I am trying to embed a report designed on BIRT in a web page using the next code:

       

       

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
             
      xmlns:s="http://jboss.com/products/seam/taglib"
             
      xmlns:ui="http://java.sun.com/jsf/facelets"
             
      xmlns:f="http://java.sun.com/jsf/core"
             
      xmlns:h="http://java.sun.com/jsf/html"
             
      xmlns:rich="http://richfaces.org/rich"
             
      xmlns:b="http://jboss.com/products/seam/birt"
             
      template="layout/template.xhtml">
             
      <ui:define name="body">
                     
      <rich:panel>
                             
      <f:facet name="header">Products</f:facet>
                             
      <b:birt designType="embed" designName="/report/prueba.rptdesign"
                                     
      embeddable="true" masterpage="false" />
                     
      </rich:panel>
             
      </ui:define>
      </ui:composition>

       

       

      The problem is cannot visualize the report when page loads.

       

       

      I added the next code in components.xml file:

       

      <web:context-filter regex-url-pattern="/run | /frameset | /embed"/>

       

       

      The error is next:

       

      ERROR  [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/MyFirstProject].[default]] El Servlet.service() para servlet default lanzó una excepción: java.io.FileNotFoundException: El recurso requerido /MyFirstProject/embed no se encuentra disponible

       

       

       

      Somebody can help me? Please.

       

      I am using:

      - JBoss Developer Studio 4.0

      - Seam Framework 2.2

      - JBoss Application Server 6.0

      - BIRT Framework 2.6

      - BIRT WTP Integration 2.6

       

      Thanks!