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

rmeadows

Members
  • Posts

    46
  • 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 rmeadows

  1. I would say it could be chrome80 related..but the specific error in your last message is CORS Related. You will need to some CORS configuration. Depending on what JRS version this can differ as newer version have some configuration in the JRS app for it...and older versions rely on the tomcat level cors servlet filter. There is also a recent Dr. Japser on this item here: Of course you can bypass anything CORS related by having them on the same domain per your testing. Thanks.
  2. Try content-type of application/pdf or application/octet-stream Thanks.
  3. When opening an adhoc view in the editor in JasperReports Server you will notice that the input controls all load their values initially as well. This can impede performance and loading of certain views for editing that have large LOV or longer running queries. This behavior can be modified with a configuration setting in 7.5 and newer versions of JRS. Modify the following setting to false in applicationContext-semanticLayer.xml under the WEB-INF folder of the jasperserver-pro web application under tomcat or your application server. <property name="prefetchFilterValues" value="true"/>This will skip the initial loading of all filters when opening a view in the adhoc editor and values will only be pulled on demand when a user selects a filter to change. Please note known issue JS-55934 (Prefetch filter values set to false were not working for "is between" date filters) was fixed in 7.9.
  4. this can be done in CSS. Please see the theme section here for information on customizing themes and CSS: Chapter 6 on Themes https://docs.tibco.com/pub/js-jrs/7.9.0/doc/pdf/TIB_js-jrs_7.9_Admin-Guide.pdf
  5. Depending on the operating system and due to licensing msft fonts may not be available to the JVM and you will need to install them. That can lead to this issue as Arial is a msft font particularly with Linux. You may also need to create a jar with the font extension. see steps here: https://community.jaspersoft.com/questions/1170991/pdf-does-not-highlight-bold-text
  6. https://kodejava.org/how-do-i-read-blobs-data-from-database/ has to be read in as binary and then processed. Thanks.
  7. these are all that are required: 1) [jasperserver]/apache-tomcat/webapps/jasperserver/WEB-INF/web.xml 2) [jasperserver]/apache-tomcat/webapps/jasperserver/META-INF/context.xml 4) Added ojdbc6.jar in [jasperserver]/apache-tomcat/lib Not sure what modification you made to the tomcat config directly but nothing is required there.. What mods did you make to the 2 files above? Exception here says jndi lookup is expecting oracle class but getting dbcp pool objec type. Thanks
  8. https://github.com/TIBCOSoftware/js-docker you will have to configure it for your JRS version for 7.8. Uses the war file installer you provide. Thanks.
  9. Dependency sites have switched to HTTPS as a standard. You will need to update your repository links with https rather than http. Thanks.
  10. If you are on a newer version you might need to check your chrome installation and configruation in JRS. If it is an older version it would be PhantomJS. Please check the Install and Administrators guide for your JRS version. These browsers are used to take images of the charts in report when exporting. Thanks.
  11. check your proxy config. Here is an example for jasper using httpd: https://gist.github.com/abdulhadad/6cc9434aa41ecea1e83cbc4610f57c6d
  12. You have a permissions issue on the installation directory for the user you are running wildfly and jasper as. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: java.io.IOException: Permission denied Caused by: net.sf.ehcache.CacheException: java.io.IOException: Permission denied Caused by: java.io.IOException: Permission denied"}}" It cannot create files for the caching system and probably other items. Check your installation directory permissions and make sure your user account has permissions on the dir structure. Thanks.
  13. You should be able to install tomcat and just copy over your jasperserver war file. Yo uwill of course need to configure any tomcat level configuration you may have like SSL, etc. The war file has the jndi connection information built into it and is built against a particualar database dialect during install. Thanks.
  14. sso will create roles that are flagged as externally defined. To map them into an internal role that you create in jasper you need to use the organization role map mapping functionality in the external authentication framework. Please go to docs.tibco.com and look for the external authentcation cookbook for information on the framework and how it operates as well as customizing. Thanks.
  15. Check the return type of the variable/parameter you are defining the expression on...you may be returning a string here but the variable or parameter type is Date. The return type needs to match the variable/parameter type to cast correctly. Thanks.
  16. You need to map the main report parameter to each of your subdataset parameters. However, this is done under the Parameters property of the component that is using the subdataset (ie: subreport, chart, table, etc) You want the following from the properties window to map parameters (see attachments and Edit parameters button and dialog)
  17. You need to instantiate the datasources using an expression. Please see the following link pertaining to your topic https://community.jaspersoft.com/wiki/how-use-multiple-data-sources-jaspersoft-studio-or-jasperreports-server
  18. You cannot set a password on externally defined users that login through some form of external authentication (token based preauth, CAS, LDAP, etc.. JasperReports Servcer treates the external authority as such and the external system verifies user credentials. It treats external users and internal users as different users and marks them as such. You also cannot login the UI using any externally defined users (you can see if a user is externally defined by editing the user and looking for an externallydefined property). Thanks.
  19. Profile attributes (I assume that is what you mean by attributes) are available already in input controls and queries. If you have a profile attribute named mypa then you can reference it as a built-in parameter in queries as $P{LoggedInUserAttribute_ mypa}. Profile attributes can be set and retrieved at the server, tenant, and user level. Please see chapter 5.5.2 Built-in Parameters for Query-based Input Controls in your JasperReports-Server-Admin-Guide.pdf under the /docs folder of your 7.5 JasperReports Server installation for more in depth usage. Also see chapter 2.4 Managing Attributes for more in depth usage of profile attributtes. Thanks.
  20. Code and ImplementationsOAuth 2.0 implementations using Apache Oltu are available at the following repo: https://github.com/UCLALibrary/jasperserver-oauth-saml Links below refer to JRS 6.4, if you need it for an older version, go to the root of the repo and find the version you need. Please note, the 7.5 folder in that same repo only updates the SAML customization. The current implementation uses the Authorization Grant Code Flow. OAuth 2.0 PrimerA primer on the OAuth 2.0 specification and Authorization Grant Code Flow is recommended. Please see the following links for more information: https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2 http://tutorials.jenkov.com/oauth2/index.html https://en.wikipedia.org/wiki/OAuth#OAuth_2.0 OAuth External Authentication SetupDownload the pre-compiled binaries located here https://github.com/UCLALibrary/jasperserver-oauth-saml/tree/master/6.4/oauth/binaries https://github.com/UCLALibrary/jasperserver-oauth-saml/tree/master/6.4/oauth/binaries/apacheoltu Copy them to webapps/jasperserver-pro/WEB-INF/lib Download the applicationContext file for the SSO setup at the following location: https://github.com/UCLALibrary/jasperserver-oauth-saml/tree/master/6.4/oauth/WEB-INF Copy the applicationContext file to webapps/jasperserver-pro/WEB-INF Configure the applicationContext file as follows: Once you have an Oauth 2.0 authorization server setup you will register Jasperserver as a client and have the following information: authorization location (ex: http://myoauthserver:8080/oauth2/authorize)client_id (name with which you register jasperserver as a client, ex: jasperserver61)client_secret (secret you specify or that gets generated when your register jasperserver as a client with your authorization server)token location (endpoint exposed by authorization server for exchanging grant codes for access or refresh tokens ex: http://myoauthserver:8080/oauth2/token)redirect url (location that authorization server will redirect back to with a grant code and this will be your jasperserver url plus /oauth on the end ex: http://localhost:8080/jasperserver-pro/oauth)scope (optional scope if you defined a scope for client access)You will need to take these values and configure the following bean in the applicationContext file with them: <bean id="proxyPreAuthenticatedProcessingFilter" class="com.jaspersoft.jasperserver.ps.OAuth.OAuthPreAuthenticationFilter"><property name="externalDataSynchronizer" ref="externalDataSynchronizer"/> <property name="authenticationManager" ref="oAuthAuthenticationManager"/> <property name="authenticationFailureUrl"> <value>/oauth</value> </property> <property name="defaultTargetUrl"> <value>/loginsuccess.html</value> </property> <property name="filterProcessesUrl"> <value>/oauth</value> </property> <property name="authorization_location" > <value>http://localhost:8080/oauth2/authorize</value> </property> <property name="client_id" > <value>js61</value> </property> <property name="redirecturl" > <value>http://localhost:8061/jasperserver-pro/oauth</value> </property> <property name="token_location" > <value>http://localhost:8080/oauth2/token</value> </property> <property name="clientsecret" > <value>9700fc55-85fc-4682-807d-a881054fa665</value> </property> <property name="scopes"> <value>uri:JaspersoftReportingServer</value> </property> </bean> [/code]Once you have setup a Resource server that returns user detail information (see section below on response type for this endpoint) and registering it with the authorization server you will have the following: user detail location (url to your resource server endpoint for user detail information ex: http://myresourceserver:8080/v1/tokeninfo)user detail key (entered or generated when registering the user detail service as a resource server with the authorization server)user detail secret (entered or generated when registering the user detail service as a resource server with the authorization server)You will need to take these values and configure the following bean in the applicationContext file with them: <bean id="OAuthAccessTokenValidator" class="com.jaspersoft.jasperserver.ps.OAuth.OAuthAccessTokenValidator"> <property name="userdetails_location"> <value>http://localhost:8080/v1/tokeninfo</value> </property> <property name="userdetails_key"> <value>27c88aca-11dc-4022-9753-53f96a1fefc6</value> </property> <property name="userdetails_secret"> <value>0ebdb578-d571-43f0-91f7-ce0e656a35f0</value> </property> </bean>[/code] User Detail Resource Server ServiceThe current and compiled code expects a JSON response from your user detail information service endpoint on your Resource Server with the following fields: Mandatory:name (username)Optional:organization (id and name of the user's organization--if not present defaults to jasperserver default organization)roles (comma separated string of role names)Possible CustomizationIf you require a different response type or user detail information parsing from your user detail information service you will need to potentially modify/customize the following classes: OAuthUserDetailsServiceImplOAuthUserDetailsServiceOAuthAuthenticationProviderYou will then need to add your compiled libraries to WEB-INF/lib and inject your new classes into the bean definitions in the applicationContext file.
×
×
  • Create New...