Jump to content
We've recently updated our Privacy Statement, available here ×

jhuber_1

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by jhuber_1

  1. You are right about the change in 6.2.X. I only had to remove the line: <security:protect method="com.jaspersoft.jasperserver.api.metadata.user.service.ProfileAttributeService.putProfileAttribute" access="ROLE_ADMINISTRATOR, ACL_ATTRIBUTE_USER_ADMIN"/> in applicationContext-security.xml The ApplicationContext.xml I was able to leave alone.
  2. Can you create a jsfiddle to demonstrate? I haven't seen this happen and would like to see it so I can see if I can help.
  3. Is CentOS a guest OS? If so I had the same problem with a windows guest. I had to turn off vmware sharing to the guest. I can re-enable it as long as something isn't being started or isntalled that needs Java. I hope this is your problem as well.
  4. I am not sure if this applies to your situation, but I had the same error. Here is wha I was running: Host was OSX 10.10.2 (Yosemite) vmware guest was windows 7 and windows 8.1 (didn't matter) I was installing JSS to the windows guest. I received the same keystore error. Turned off sharing from guest to host (turned it completely off - one checkbox) and error went away. I tried everything else before regarding the keystore. Gen a new one etc. Nothing I could do to get it to work. I am not sure if this means that installing on the mac would fail in the same manner, but the windows guests now have everything installed (and running when sharing is off)
  5. You are right and I do this a lot. One note. When you upload the report to the server you are going to be asked for a location and a datasource. Choose the datasource from the available server datasources on that dialog. Then you are doing exactly what you asked!
  6. IntroductionIn this article, we show how to set up a multi-tab landing page for users based on their roles and organizations, so that when a user logs in, we get something like the screenshot below: To get this example working, we assume that you have installed the sample Foodmart database. If you are not using the sample database, you can easily adapt this solution to your own test environment. This procedure works for JasperReports Server v5.5+. Customization ProcedureMake backupsThe first thing is to back up the files we're about to overwrite. In a backups directory, copy these files over from the the web application's root directory: /jasperserver-pro/WEB-INF/jsp/modules/home/home.jsp/jasperserver-pro/WEB-INF/jsp/modules/commonJSTLScripts.jspCreate sample user with sample roleFor this example, you'll need to create a test user with the right role: Login as the superuserGo to "Manage -> Roles"Make sure that "Organization" is selected on the left-hand sideAdd the role, and label it ROLE_TABS; make sure it's this and that it's uppercase - it needs to match what we see in the home.jsp fileGo to "Manage -> Users"Make sure that "Organization" is selected on the left-hand sideAdd a new userAssign the role "ROLE_TABS" to that new userStop the Tomcat serverNow you'll need to stop the Tomcat server do properly replace the JSP files and do some cleanup on the server-side files. You previously backed up some files we're going to overwrite, so now we're ready to put in our custom and customizations. home.jsp (WEB-INFjspmoduleshomehome.jsp)Just about the entire file changes to allow a custom homepage: <%-- ~ Copyright (C) 2005 - 2011 Jaspersoft Corporation. All rights reserved. ~ http://www.jaspersoft.com. ~ Licensed under commercial Jaspersoft Subscription License Agreement --%> <%@ page contentType="text/html" %> <%@ taglib uri="/spring" prefix="spring"%> <%@ taglib uri="http://www.springframework.org/security/tags" prefix="authz"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%-- Default Home page --%> <c:set var="homePageRequested">homeForNonDemo.jsp</c:set> <authz:authorize ifAllGranted="ROLE_DEMO"> <%-- We have special home page for demo user only on PostgreSQL db. For other DB's it have same home page as other users. --%> <c:if test="${demoHomeResourceExists}"> <c:set var="homePageRequested">homeForDemo.jsp</c:set> </c:if> </authz:authorize> <authz:authorize ifAllGranted="ROLE_DASHBOARD"> <c:set var="homePageRequested">homeForDashboard.jsp</c:set> </authz:authorize> <authz:authorize ifAllGranted="ROLE_HPC_ADMIN"> <c:set var="homePageRequested">homeForHpcAdmin.jsp</c:set> </authz:authorize> <authz:authorize ifAllGranted="ROLE_TABS"> <c:set var="homePageRequested">homeForTabs.jsp</c:set> </authz:authorize> <jsp:include page="${homePageRequested}"/> homeForTabs.jsp - NEW FILE (WEB-INFjspmoduleshomehomeForTabs.jsp).<%-- ~ Copyright (C) 2005 - 2011 Jaspersoft Corporation. All rights reserved. ~ http://www.jaspersoft.com. ~ ~ Unless you have purchased a commercial license agreement from Jaspersoft, ~ the following license terms apply: ~ ~ This program is free software: you can redistribute it and/or modify ~ it under the terms of the GNU Affero General Public License as ~ published by the Free Software Foundation, either version 3 of the ~ License, or (at your option) any later version. ~ ~ This program is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ~ GNU Affero General Public License for more details. ~ ~ You should have received a copy of the GNU Affero General Public License ~ along with this program. If not, see <http://www.gnu.org/licenses/>. --%> <script> function myFunct(var1) { var ifrm = document.getElementById('ifrm'); if (var1 == "opt1") { ifrm.setAttribute('src', 'flow.html?_flowId=dashboardRuntimeFlow&dashboardResource%2Fpublic%2FSamples%2FDashboards%2FSupermart_Dashboard&viewAsDashboardFrame=true'); } else if (var1 == "opt2") { ifrm.setAttribute('src', 'flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri%2Fpublic%2FSamples%2FReports&reportUnit=%2Fpublic%2FSamples%2FReports%2FProfitDetailReport&viewAsDashboardFrame=true'); } else if (var1 == "opt3") { ifrm.setAttribute('src', 'flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Fpublic%2FSamples%2FReports&reportUnit=%2Fpublic%2FSamples%2FReports%2F07g.RevenueDetailReport&viewAsDashboardFrame=true'); } } jQuery( document ).ready(function() { jQuery("[id^=opt]").click(function(ev){myFunct(jQuery(ev.currentTarget).attr("id"))}); }); </script> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="t" %> <%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %> <t:insertTemplate template="/WEB-INF/jsp/templates/page.jsp"> <t:putAttribute name="pageTitle" value="Hello">Hello</t:putAttribute> <t:putAttribute name="bodyID">home_user</t:putAttribute> <t:putAttribute name="moduleName" value="commons.main"/> <t:putAttribute name="bodyClass" value="oneColumn"/> <t:putAttribute name="bodyContent"> <t:insertTemplate template="/WEB-INF/jsp/templates/container.jsp"> <t:putAttribute name="containerClass" value="column decorated primary tabbed showingToolBar"/> <t:putAttribute name="containerTitle">Your title here</t:putAttribute> <t:putAttribute name="headerContent"> <div class="tabs"> <t:insertTemplate template="/WEB-INF/jsp/templates/control_tabSet.jsp"> <t:putAttribute name="type" value="buttons"/> <t:putAttribute name="containerClass" value="horizontal"/> <t:putListAttribute name="tabset"> <t:addListAttribute> <t:addAttribute>opt1</t:addAttribute> <t:addAttribute>Dashboard 1</t:addAttribute> <t:addAttribute>selected</t:addAttribute> </t:addListAttribute> <t:addListAttribute> <t:addAttribute>opt2</t:addAttribute> <t:addAttribute>Dashboard 2</t:addAttribute> </t:addListAttribute> <t:addListAttribute> <t:addAttribute>opt3</t:addAttribute> <t:addAttribute>Dashboard 3</t:addAttribute> </t:addListAttribute> </t:putListAttribute> </t:insertTemplate> </div> </t:putAttribute> <t:putAttribute name="bodyContent"> <iframe id="ifrm" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" height="99%" scrolling="auto" width="100%" src="flow.html?_flowId=dashboardRuntimeFlow&dashboardResource=%2Fpublic%2FSamples%2FDashboards%2FSupermart_Dashboard&viewAsDashboardFrame=true"></iframe> </t:putAttribute> </t:insertTemplate> </t:putAttribute> </t:insertTemplate> commonJSTLScripts.jsp (WEB-INFjspmodulescommonJSTLScripts.jsp)You will see some JavaScript at the top of the file. Add the single myFunct("step1") call: <%-- ~ Copyright (C) 2005 - 2011 Jaspersoft Corporation. All rights reserved. ~ http://www.jaspersoft.com. ~ ~ Unless you have purchased a commercial license agreement from Jaspersoft, ~ the following license terms apply: ~ ~ This program is free software: you can redistribute it and/or modify ~ it under the terms of the GNU Affero General Public License as ~ published by the Free Software Foundation, either version 3 of the ~ License, or (at your option) any later version. ~ ~ This program is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ~ GNU Affero General Public License for more details. ~ ~ You should have received a copy of the GNU Affero General Public License ~ along with this program. If not, see <http://www.gnu.org/licenses/>. --%> <%-- JavaScript which is common to all pages and requires JSTL access --%> <script type="text/javascript"> //common URL context var urlContext = "${pageContext.request.contextPath}"; <%--default search text --%> var defaultSearchText = "<spring:message code='SEARCH_BOX_DEFAULT_TEXT'/>"; var serverIsNotResponding = "<spring:message code='confirm.slow.server'/>"; var commonReportGeneratorsMetadata = ${not empty reportGenerators ? reportGenerators : '[]'}; myFunct("step1") ; </script> <%--section for navigation's json action model data - needs its own script tag with id --%> <script type="text/json" id="navigationActionModel"> <%=((NavigationActionModelSupport)application.getAttribute("concreteNavigationActionModelSupport")).getClientActionModelDocument("navigation", request)%> </script> Clear Cached JSPs (working directory)Delete this subdirectory: /apache-tomcat/work/Catalina/localhost/jasperserver-pro. Restart the serverYou are now ready to restart the server! If you've followed the instructions up to now, you should be able to restart the server and login as the test user you created earlier. When you login, you should also find that you've landed in the multi-tab landing page.
  7. jhuber_1

    Test - kiran

    Changed Assigned User from @User_306070 to @anonymous Confirmed. I cannot get it to error unless I create the project and then do not delete the files on disk and then recreate the project. Interesting since my project name is rather unique I would not have done this previously, but this is the only recreation method as I try it now.
×
×
  • Create New...