首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Virgo Osgi Web Bundle - Web-Fragment

Virgo Osgi Web Bundle - Web-Fragment
EN

Stack Overflow用户
提问于 2013-10-10 21:56:37
回答 1查看 618关注 0票数 1

我的问题是web片段捆绑包不工作。

我有两个项目:

其中,我用Virgo Server创建了一个web包,其中包含以下manifest.mf:

代码语言:javascript
复制
Manifest-Version: 1.0
Bnd-LastModified: 1381358185168
Build-Jdk: 1.6.0_37
Built-By: juliocesarreymendez
Bundle-ClassPath: .,WEB-INF/classes,WEB-INF/lib/commons-lang-2.6.jar
Bundle-Description: http://localhost:8090/system/console/bundles
Bundle-ManifestVersion: 2
Bundle-Name: first-maven-virgo-project
Bundle-SymbolicName: first-maven-virgo-project
Bundle-Version: 1.0.0
Created-By: Apache Maven Bundle Plugin
Embed-Dependency: *;scope=compile|runtime;
Embed-Directory: WEB-INF/lib
Embed-Transitive: true
Embedded-Artifacts: WEB-INF/lib/commons-lang-2.6.jar;g="commons-lang";a=
"commons-lang";v="2.6"
Export-Package: com.roshka.virgo.web;uses:="javax.servlet,javax.servlet.
annotation,javax.servlet.http";version="1.0.0"
Import-Package: javax.servlet,javax.servlet.annotation,javax.servlet.htt
p
Tool: Bnd-2.1.0.20130426-122213
Web-ContextPath: /hello

virgo服务器上的项目部署工作查找。我甚至可以在localhost:8080/hello上测试它。

但是,当我使用此manifest.mf创建另一个捆绑项目(网页片段)时:

代码语言:javascript
复制
Manifest-Version: 1.0
Bnd-LastModified: 1381357367000
Build-Jdk: 1.6.0_37
Built-By: juliocesarreymendez
Bundle-ClassPath: .,commons-lang-2.6.jar
Bundle-Description: http://localhost:8090/system/console/bundles
Bundle-ManifestVersion: 2
Bundle-Name: first-bundle-par
Bundle-SymbolicName: first-bundle-par
Bundle-Version: 1.0.0
Created-By: Apache Maven Bundle Plugin
Embed-Dependency: *;scope=compile|runtime;
Embed-Directory: .
Embed-Transitive: true
Embedded-Artifacts: commons-lang-2.6.jar;g="commons-lang";a="commons-lan
g";v="2.6"
Export-Package: com.roshka.servlet2;version="1.0.0";uses:="javax.servlet
,javax.servlet.annotation,javax.servlet.http"
Fragment-Host: first-maven-virgo-project
Import-Package: javax.servlet,javax.servlet.annotation,javax.servlet.htt
p
Tool: Bnd-2.1.0.20130426-122213

部署可以工作,但与/hello上下文路径或first-maven-virgo-project web捆绑包没有绑定。

我的项目出了什么问题?Virgo支持Web片段OSGI吗?

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2013-10-11 20:49:52

确保使用jar扩展而不是war扩展来部署文件。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19297793

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档