Buscar en el Blog

Mostrando las entradas con la etiqueta JPivot. Mostrar todas las entradas
Mostrando las entradas con la etiqueta JPivot. Mostrar todas las entradas

miércoles, 28 de noviembre de 2012

Cómo corregir la exportación a Excel en JPivot de BISERVER 4.5.0

En ésta publicación explico el procedimiento para corregir el error que se da en JPivot de Pentaho BI Server 4.5 cuando se quiere exportar los resultados de un cubo a Excel.

El error que se presenta es el siguiente:
java.lang.NoClassDefFoundError: org/apache/fop/configuration/Configuration
 com.tonbeller.jpivot.print.PrintServlet.init(PrintServlet.java:71)
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
 org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
 org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
 java.lang.Thread.run(Thread.java:662)

Para corregir se tiene que realizar lo siguiente:

1. Descargar la librería Apache FOP v0.20.5 del siguiente link: http://archive.apache.org/dist/xmlgraphics/fop/binaries/fop-0.20.5-bin.zip

2. Descomprir el archivo, ir al directorio build y copiar el archivo fop.jar

3. Ir al directorio de instalación de BI SERVER: C:\pentaho\biserver-ce-4.5.0\biserver-ce\tomcat\webapps\pentaho\WEB-INF\lib y copiar en éste directorio la librería fop.jar del paso 2

4. Reiniciar Pentaho BI Server y probar.

NOTA: usar esta corrección con precaución ya que podría influir negativamente en el comportamiento de otros componentes de BI SERVER






jueves, 30 de agosto de 2012

Cómo quitar las alertas para WAQR y JPivot en Pentaho BI Server 4.5 Community Edition

Cuando instalamos biserver-ce v4.5.0, para las herramientas WAQR y JPivot aparecen los siguientes mensajes de advertencia:

En WAQR aparece:

Web Ad Hoc Query and Reporting has been replaced by the new Interactive Reporting client.
It is provided as a convenience but will no longer be enhanced or offically supported by Pentaho.

En JPivot aparece:

JPivot has been replaced by Pentaho Analyzer.
It is provided as a convenience but will no longer be enhanced or offically supported by Pentaho.

En ésta publicación explico el procedimiento para eliminar éstos mensajes. Antes que nada tiene que estar abajo el servidor  biserver-ce.

Para WAQR:

1. Ir al directorio c:\pentaho\biserver-ce-4.5.0\biserver-ce\tomcat\webapps\pentaho\adhoc

2. Editar el archivo waqr.html

3. Comentar el contenido desde la linea 433 hasta 445 como se muestra a continuación:

<!--<td valign="middle" id="waqrDeprecatedAlert" style="padding-right: 5px">
        <table width="580px" style="background-color: #fffdd5; border-style: solid; border-color: #dcb114; border-width= 1px; font: normal .85em Tahoma, 'Trebuchet MS', Arial">
          <tr>
            <td>
              <img src="images/warning.png"/>
            </td>
            <td>
            Web Ad Hoc Query and Reporting has been replaced by the new Interactive Reporting client.<br/>
            It is provided as a convenience but will no longer be enhanced or offically supported by Pentaho.
            </td>
          </tr>
        </table>
      </td>-->

En BI Server v5.x realizar lo siguiente:

1. Ir al directorio \biserver-ce-5.x\pentaho-solutions\system\waqr\resources

2. Editar el archivo waqr.html

3. Comentar el contenido desde la linea 448 hasta 460

Para JPivot:

1. Ir al directorio c:\pentaho\biserver-ce-4.5.0\biserver-ce\tomcat\webapps\pentaho\jsp

2. Editar el archivo Pivot.jsp

3. Comentar el contenido desde la línea 1481 hasta 1493 como se muestra a continuación:

<!--<div id="deprecatedWarning" style="margin: auto; width: 100%">
  <table width="580px" align="center" style="background-color: #fffdd5; border-style: solid; border-color: #dcb114; border-width= 1px; font: normal .85em Tahoma, 'Trebuchet MS', Arial">
    <tr>
      <td>
        <img src="./jpivot/navi/warning.png"/>
      </td>
      <td>
        JPivot has been replaced by Pentaho Analyzer.<br/>
        It is provided as a convenience but will no longer be enhanced or offically supported by Pentaho.
      </td>
    </tr>
  </table>
</div>-->

4. Finalmente, iniciar  biserver-ce y ya no aparecerán los mensajes de advertencia.

En BI Server v5.x realizar lo siguiente:

1. Ir al directorio \biserver-ce-5.x\pentaho-solutions\system\pentaho-jpivot-plugin\jpivot\table

2. Editar el archivo mdxtable.css

3. Al final del archivo colocar lo siguiente:
#deprecatedWarning {
display: none;
}

NOTA: para aplicar éstas configuraciones se tiene que detener biserver-ce e iniciar nuevamente para ver los cambios.