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

Yuri Savochenko

Members
  • Posts

    30
  • Joined

  • Last visited

Yuri Savochenko's Achievements

  1. Hi, what commands did you perform to deploy? Are you trying to deploy it from sources or you're using TIB_js-jrs-cp_8.0.0_bin.zip?
  2. Are you installing on clear env or you already had JRS installed there? Can you check if the user that is used for installation has access to that files C:UsersAdministrator.jrsks and .jrsksp Did you try to start the installer as an administrator?
  3. Can you please provide exact steps on how did you perform your upgrade? Can you clarify the next points?: what OS type what App Server was used what steps did you take which user was used to perform install/upgrade and under which user your app server starts did you check the latest Upgrade Guide with updated information?
  4. Hi, why can't you set report permissions in repository for each user/user_role? Is that an option?
  5. Hi, can you try something like this: WSUser user = new com.jaspersoft.jasperserver.ws.authority.WSUser(); user.setUsername(name); user.setPassword(name); user.setTenantId(tenantId); user.setEnabled(enabled); user.setFullName("Service User"); You're doing WSRole role = new WSRole(); role.setRoleName("ROLE_USER"); role.setTenantId(null); user.setRoles(new WSRole[] {role}); but ROLE_USER is assigned automatically to every user. What version of JRS you're using? Maybe it would be easier to use REST webservices?http://community.jaspersoft.com/documentation/jasperreports-server-web-service-guide (chapter 4.2.1)
  6. Did you change anything in applicationcontext-securyty.xml? Or all chnages were in applicationContext-externalAuth-LDAP-mt.xml? Can you attach your sample ldif?
  7. This is because tomcat is deployed as Windows service, and your java_opts can be overriden by service properties. Try something like this: http://www.12robots.com/index.cfm/2010/10/8/Giving-more-memory-to-the-Tomcat-Service-in-Windows
  8. File applicationcontext-security.xml has a bunch of non-ldap related properties, so you need that file, but all Ldap related properties should go now in applicationContext-externalAuth-LDAP-mt.xml
  9. Your flow can be: 1. create via REST2 new jrxml file in JRS repository. to do that use 2.2.4 PUT request, but inside String resource-descriptor just put your jrxml data 2. create new datasource (if needed) 3. create new jasperreport that uses your previously uploaded jrxml. check especially 2.2.1, there you can find sample resource descriptor for jasperreport or datasource, which you can take as the reference for creating new reports via webservices (2.2.4) (just put your properties/datasource repo path/jrxml repo path/) 4. after jasperreport was created, then you can run it as said in 3.1.1 (JRS will automatically compile jasperreport) Also if you consistently run few reports, maybe it would be easier to define them in JRS using WebGUI or uploading the report from iReport into JRS repositor, otherwise you will have to use REST services to create jrxml/create datasource/create report/run report
  10. Please, check the webservices guide at: http://community.jaspersoft.com/documentation/jasperreports-server-web-service-guide chapter 3 is what you're looking for
  11. What version of JRS are you using and what webservices? Via "REST 2" webservices we can upload jrxml files and run those reports via webservices, for that purpose you will not use GUI, you just need started JRS. The responce for REST 2 request you can get different formats (like html, doc, pdf...). For previous versions you can ue SOAP requests to get html export of your jrxml report
  12. Hi, for standart cases in JRS you will have to use only jrxml files, it should be enough to run the reports from JRS (also by webservices)
  13. Hi, Sathya, do such steps: 1. find such file <js-install-folder>/samples/externalAuth-sample-config/sample-applicationContext-externalAuth-LDAP-mt.xml 2. Stop your server. 3. Copy it into <tomcat>/webapps/jasperserver/WEB-INF/ and rename to applicationContext-externalAuth-LDAP-mt.xml 4. Edit that file with your settings and start your server For more info check chapter 3 at Auth Cookbook http://community.jaspersoft.com/documentation/jasperreports-server-authentication-cookbook-0 Thanks, Yuriy
  14. Hi, here are the proper steps to resolve this issue: 1. Get your xls file (data should be stored in columns, smth like JR table report) and rename it to xls_data.xml 2. Upload it to the server with the name xls_data into /reports folder 3. Create xls_data_provider.xml, like: <?xml version="1.0" encoding="UTF-8"?><xlsDataAdapter class="net.sf.jasperreports.data.xls.XlsDataAdapterImpl"> <name>ExcelData</name> <fileName>repo:/reports/xls_data</fileName><useFirstRowAsHeader>true</useFirstRowAsHeader><queryExecuterMode>false</queryExecuterMode><datePattern>yyyy-MM-dd HH:mm:ss</datePattern><columnNames>city</columnNames><columnNames>country</columnNames><columnNames>state</columnNames><columnIndexes xmlns:xsi="http: //www.w3.org/2001/XMLSchema-instance" xsi:type="java:java.lang.Integer">0</columnIndexes><columnIndexes xmlns:xsi="http: //www.w3.org/2001/XMLSchema-instance" xsi:type="java:java.lang.Integer">1</columnIndexes><columnIndexes xmlns:xsi="http: //www.w3.org/2001/XMLSchema-instance" xsi:type="java:java.lang.Integer">2</columnIndexes></xlsDataAdapter> Note that all your xml-tags should be in CamelCase as it is defined in net.sf.jasperreports.data.xls.XlsDataAdapterImpl. Also note that your xls data file should contain the first row with column names and those names should be the same as defined in <columnNames> tags 4. Upload your xls_data_provider.xml as xls_data_provider into the /reports folder5. Create report in iReport or JSS using XLS file (the original one). After all fields were added view report as xml and add few more lines: <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="report" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ec8d891c-4188-4de7-b77f-71d1440b831f"><property name="net.sf.jasperreports.data.adapter" value="repo:/reports/xls_data_provider "/><queryString language="xls"><![CDATA[]]></queryString><field name="city" class="java.lang.String"/><field name="country" class="java.lang.String"/>6. In JRS goto Add new report and use previously created jrxml, don't select any datasource in wizard It's done, now you should be able to run report.
×
×
  • Create New...