Posted on 2010-05-27 14:24
FineReport——報表技術領跑者 閱讀(239)
評論(0) 編輯 收藏 所屬分類:
Java報表技術知識
下文介紹有關使用FineReport Java報表軟件打ear包及部署的有關知識
ear包:企業級應用 通常是EJB打成ear包
如何打ear包
打ear包準備條件 先把工程打好一個war包 再新建一個 META-INF文件夾 里面再新建一個application.xml文件
內容舉例如下:
<application>
<module>
<web>
<web-uri>WebReport.war</web-uri>
<context-root>/WebReport</context-root>
</web>
</module>
<java>jboss-seam.jar</java>
</application>
其中<context-root>/WebReport</context-root>中的WebReport為工程項目名稱
<web-uri>WebReport.war</web-uri>中的 WebReport.war為war包的名字
準備好war包還有METE-INF文件夾后 就可以開發打ear包了
方法同打war包 方法如下:jar -cvf WebReport.ear WebReport.war META-INF
這樣 一個ear包就打好了
在jboss下配置ear
將ear包到jboss下的server\default\deploy文件夾
然后啟動jboss
輸入地址:
http://localhost:8080/WebReport/ReportServer?reportlet=/com/doc/cross.cpt
當你看到報表頁面 表示配置成功