How to Deploy/Publish Jasper Report to Jasper Server
来源:互联网 发布:苹果8plus没网络 编辑:程序博客网 时间:2024/06/02 07:28
My favourite way is to use the Jasper Studio Publish function, with this function's help, the IDE would package everything necessary and do the publish job in background.
LESSON 1: Fall Back to SOAP API
By default, Jasper Studio uses REST API to publish jasper report to jasper server, and we always get error as follows:
org.apache.http.client.HttpResponseException: Bad Requestat com.jaspersoft.studio.server.protocol.restv2.RESTv2ExceptionHandler.handleException(RESTv2ExceptionHandler.java:58)at com.jaspersoft.studio.server.protocol.restv2.ARestV2ConnectionJersey.toObj(ARestV2ConnectionJersey.java:52)at com.jaspersoft.studio.server.protocol.restv2.RestV2ConnectionJersey.addOrModifyResource(RestV2ConnectionJersey.java:352)at com.jaspersoft.studio.server.protocol.ProxyConnection.addOrModifyResource(ProxyConnection.java:283)at com.jaspersoft.studio.server.publish.Publish.publishResources(Publish.java:172)at com.jaspersoft.studio.server.publish.Publish.publish(Publish.java:60)at com.jaspersoft.studio.server.publish.wizard.Publish2ServerWizard$3.run(Publish2ServerWizard.java:273)at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
This is really unpleasant and disappointing, but at last I found the solution, it works for Jasper Report Server 5.6 and Jasper Report Studio 5.6.
In short, the solution is to employ to SOAP API, rather than REST API.
LESSON 2: Create Report Unit
With this setting, the IDE would package everything necessary and do the publish job in background. Otherwise, you will have to upload the various resources and establish proper references manually. This function is just awesome!
Reference
[1] jasperreports-server-user-guide_5.6.pdf
- How to Deploy/Publish Jasper Report to Jasper Server
- Jasper Report Problem: How to share subDataSet
- How to Set isIgnorePagination in Jasper Report
- How to Apply Conditional Style on Jasper Main Report Variable
- How to Export Multiple Sheets from Jasper Report
- Passing parameters to a Jasper report
- Jasper Report Server Deployment Distilled
- Jasper report
- Jasper report
- How to Set Relative Path for Jasper Reports Image
- how to create a stacked chart use jasper
- Jasper Report用户手册
- Jasper Report 教程
- Jasper Report 教程
- Jasper Report 教程
- Jasper Report 教程
- Jasper Report print image
- jasper
- 1到100之间能被7整除的数
- NESASM教程——第三天——NES编程相关
- 『常识』软件体系结构-构架、架构、框架、设计模式 软件体系结构-构架、架构、框架、设计模式
- 生成树计数(Matrix-Tree定理)
- 个人网络学习资源收集
- How to Deploy/Publish Jasper Report to Jasper Server
- ArcMap与ArcCatlog连接空间数据库的问题
- C#方法参数—params
- 此链接24小时之内有效,超过有效期
- Swift教程_基础技术(0003)_initWithConcurrencyType的三个参数
- 最小生成树计数(Kruskal+Matrix-Tree定理)
- 使用VS插件在VS2012/2013上编辑和调试Quick-cocos2d-x的Lua代码
- Java中Heap(堆)和Stack(栈)
- hdu2037 贪心 活动安排