下文介紹有關(guān)使用FineReport Java報表軟件打ear包及部署的有關(guān)知識
ear包:企業(yè)級應(yīng)用 通常是EJB打成ear包
如何打ear包
打ear包準(zhǔn)備條件 先把工程打好一個war包 再新建一個 META-INF文件夾 里面再新建一個application.xml文件
內(nèi)容舉例如下:
<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包的名字
準(zhǔn)備好war包還有METE-INF文件夾后 就可以開發(fā)打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
當(dāng)你看到報表頁面 表示配置成功