Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: How to define custom url

  1. #1

    Default How to define custom url

    I created a sample reports using report designer and published it in server.
    I can able to see it in browser side and also i configured my sample report in cdf-samples. It is working fine.
    The problem is the report url looks like

    http://localhost:8080/pentaho/conten...emplate=mantle

    but it is very hard to give to customers

    How to define my cdf dashboard url means

    http://localhost:8080/pentaho/Dashboard

    please help me.

  2. #2

    Default

    I'm using biserver-ce-3.0.0-STABLE version. I defined dashboard.jsp file in web.xml

    web.xml
    --------
    <servlet>
    <servlet-name>Dashboards</servlet-name>
    <jsp-file>/cdf/jsp/Dashboards.jsp</jsp-file>
    </servlet>

    <servlet-mapping>
    <servlet-name>Dashboards</servlet-name>
    <url-pattern>/Dashboards</url-pattern>
    </servlet-mapping>

    but i'm getting following error

    org.apache.jasper.JasperException: Unable to compile class for JSP:

    An error occurred at line: 140 in the jsp file: /jsp/Dashboards.jsp
    The method getUITemplater(IPentahoSession) is undefined for the type PentahoSystem
    137:
    138:
    139:
    140: IUITemplater templater = PentahoSystem.getUITemplater(userSession);
    141: if (templater != null) {
    142: String sections[] = templater.breakTemplate("template-dashboard" + template + ".html", "", userSession); //$NON-NLS-1$ //$NON-NLS-2$
    143: if (sections != null && sections.length > 0) {


    An error occurred at line: 158 in the jsp file: /jsp/Dashboards.jsp
    The method getSolutionRepository(IPentahoSession) is undefined for the type PentahoSystem
    155: if (path != null) {
    156: ActionResource resource;
    157:
    158: if (PentahoSystem.getSolutionRepository(userSession).resourceExists(solution + "/" + path + "/template.html")) {
    159: resource = new ActionResource("", IActionSequenceResource.SOLUTION_FILE_RESOURCE, "text/xml", solution + "/" + path + "/template.html"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    160: } else {
    161: resource = new ActionResource("", IActionSequenceResource.SOLUTION_FILE_RESOURCE, "text/xml", "system/custom/default-dashboard-template.html"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$


    An error occurred at line: 163 in the jsp file: /jsp/Dashboards.jsp
    The method getSolutionRepository(IPentahoSession) is undefined for the type PentahoSystem
    160: } else {
    161: resource = new ActionResource("", IActionSequenceResource.SOLUTION_FILE_RESOURCE, "text/xml", "system/custom/default-dashboard-template.html"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    162: }
    163: dashboardContent = PentahoSystem.getSolutionRepository(userSession).getResourceAsString(resource);
    164:
    165: intro = intro.replaceAll("\\{load\\}", "onload=\"load()\""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    166: }


    Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
    org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.switchuser.SwitchUserProcessingFilter.doFilter(SwitchUserProcessingFilter.java:341)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.pentaho.platform.web.http.security.SecurityStartupFilter.doFilter(SecurityStartupFilter.java:85)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.pentaho.platform.web.http.security.RequestParameterAuthenticationFilter.doFilter(RequestParameterAuthenticationFilter.java:169)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.pentaho.platform.web.http.security.HttpSessionReuseDetectionFilter.doFilter(HttpSessionReuseDetectionFilter.java:134)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
    org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
    org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
    org.pentaho.platform.web.http.filters.SystemStatusFilter.doFilter(SystemStatusFilter.java:60)
    org.pentaho.platform.web.http.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:113)
    I placed CDF folder in tomcat/pentaho/.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.