使用FineReport 報(bào)表軟件如何打ear包及部署
Posted on 2010-05-27 14:24 FineReport——報(bào)表技術(shù)領(lǐng)跑者 閱讀(242) 評(píng)論(0) 編輯 收藏 所屬分類: Java報(bào)表技術(shù)知識(shí)下文介紹有關(guān)使用FineReport Java報(bào)表軟件打ear包及部署的有關(guān)知識(shí)
ear包:企業(yè)級(jí)應(yīng)用 通常是EJB打成ear包
如何打ear包
打ear包準(zhǔn)備條件 先把工程打好一個(gè)war包 再新建一個(gè) META-INF文件夾 里面再新建一個(gè)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為工程項(xiàng)目名稱
<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
這樣 一個(gè)ear包就打好了
在jboss下配置ear
將ear包到jboss下的server\default\deploy文件夾
然后啟動(dòng)jboss
輸入地址:
http://localhost:8080/WebReport/ReportServer?reportlet=/com/doc/cross.cpt
當(dāng)你看到報(bào)表頁面 表示配置成功