【问题标题】:Deploying birt war in karaf在卡拉夫部署Birt War
【发布时间】:2017-07-05 08:31:55
【问题描述】:

我的服务器上有 karaf 4.1.1 和 birt runtime 4.5.0。我在 karaf 部署 birt.war 时遇到问题。我的目的是在 karaf 中使用 birt 报告引擎 api 来生成基于 birt 项目文件的报告。

我安装了 karaf 战争功能。但我无法安装 birt。我尝试输入 karaf shell:

bundle:install -s "C:\birt-runtime-4_5_0\birt.war?Bundle-SymbolicName=birt&Web-ContextPath=/sample"

我得到: org.osgi.framework.BundleException: Unable to cache bundle

有什么建议吗?

【问题讨论】:

    标签: war birt karaf


    【解决方案1】:

    尝试使用 webbundle 前缀安装您的组件。

    只需在正在运行的 Karaf 实例中点击以下命令:

    bundle:install webbundle:file:///C:/birt-runtime-4_5_0/birt.war?Bundle-SymbolicName=birt&Web-ContextPath=/sample
    

    【讨论】:

    • 我有118 | Active | 80 | 0.0.0 | C__karaf_deploy_ReportEngine 更胖了我输入了bundle:bundlelist。但它不会显示在 HTTP 上下文中。
    • 尝试 headers 118 显示一些包的信息并共享输出,以便我可以与您调试:)
    • 谢谢! C__karaf_deploy_ReportEngine (118) ---------------------------------- Bnd-LastModified = 1499249649862 Created-By = 1.8.0_131 (Oracle Corporation) Generated-By-Ops4j-Pax-From = wrap:jardir:C:\karaf\deploy\ReportEngine$Bundle-SymbolicName=C:\karaf\deploy\ReportEngine&Bundle-Version=0.0.0 Manifest-Version = 1.0 Tool = Bnd-2.3.0.201405100607 Bundle-ManifestVersion = 2 Bundle-Name = C__karaf_deploy_ReportEngine Bundle-SymbolicName = C__karaf_deploy_ReportEngine Bundle-Version = 0.0.0 Export-Package = genReport.bat, genReport.sh, lib, samples
    • 看来卡拉夫没有正确地包装战争。您是否使用我在回答中提到的 webbundle 前缀安装它?
    • 是的,我使用了 webbundle 前缀。我将在明天重新安装它并在此处发布问题状态。服务器只能通过工作网络访问。
    猜你喜欢
    • 2018-01-22
    • 1970-01-01
    • 1970-01-01
    • 2012-03-13
    • 1970-01-01
    • 1970-01-01
    • 2017-08-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多