准备
部署方式
- 独立部署
- 集成部署
工作中项目和报表是一体的,且用tomcat容器,因此参考 Tomcat部署即可。其他可参考 官方文档。
测试
新建cpt文件测试:比如yhdang.cpt,参数为hth,那么访问的链接为:根目录/ReportServer?reportlet=yhdang.cpt&hth=573
问题
按照帮助文档集成后,启动tomcat时可能遇到org.apache.tomcat.util.bcel.classfile.ClassFormatException: It is not a Java .class file异常,参考百度知道来解决。而我出错的是db2jcc.jar,相应做如下改动:
# Additional JARs (over and above the default JARs listed above) to skip when
# scanning for Servlet 3.0 pluggability features. These features include web
# fragments, annotations, SCIs and classes that match @HandlesTypes. The list
# must be a comma separated list of JAR file names.
org.apache.catalina.startup.ContextConfig.jarsToSkip=db2jcc.jar