AEM 6.0 Web控制台捆绑软件(OSGi捆绑软件)中安装的软件包未正确安装(状态应为“未激活") [英] Package Installed in AEM 6.0 Web Console Bundles (OSGi Bundles) is Not Installing Properly (Status Should be Active not Installed)

查看:100
本文介绍了AEM 6.0 Web控制台捆绑软件(OSGi捆绑软件)中安装的软件包未正确安装(状态应为“未激活")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我解决我在 AEM 6.0的AEM Web控制台软件包中安装/上传 recruitment-client-1.0.0.jar 和状态只是已安装" ,应为有效" ,因此当我尝试单击操作"列下的播放时,状态仍为已安装",并且具有日志文件中出现错误,如下所示.

Please help me on my concern wherein I tried to Install/Upload the recruitment-client-1.0.0.jar in AEM Web Console Bundles of AEM 6.0 and the status is just "Installed" that should be "Active", so when I tried to click play under Actions column, status is still "Installed" and has an error in log file seen below.

*仅供参考,它之前在CQ5服务器实例中起作用.

*FYI that it works before in CQ5 server instance.

org.apache.felix.http.jetty%bundles.pluginTitle:无法启动(org.osgi.framework.BundleException:使用约束冲突.无法解析捆绑包修订com. .wcm.recruitment-client [407.0 ],因为它通过两个依赖关系链从软件包修订版本org.apache.felix.framework [0]和com. .commons.axissosgi.commons.axissosgi [402.1]中暴露给包"javax.xml.namespace".

org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision com..wcm.recruitment-client [407.0] because it is exposed to package 'javax.xml.namespace' from bundle revisions org.apache.felix.framework [0] and com..commons.axissosgi.commons.axissosgi [402.1] via two dependency chains.

链条1:

com.**.wcm.recruitment-client [407.0] 导入:(osgi.wiring.package = javax.xml.namespace) | 导出:osgi.wiring.package = javax.xml.namespace org.apache.felix.framework [0]

com.**.wcm.recruitment-client [407.0] import: (osgi.wiring.package=javax.xml.namespace) | export: osgi.wiring.package=javax.xml.namespace org.apache.felix.framework [0]

链条2:

com. .wcm.recruitment-client [407.0] 导入:(osgi.wiring.package = org.apache.axis) | 导出:osgi.wiring.package = org.apache.axis;使用:= javax.xml.namespace 导出:osgi.wiring.package = javax.xml.namespace com. .commons.axissosgi.commons.axissosgi [402.1]) org.osgi.framework.BundleException:使用约束冲突.无法解析捆绑包修订版com. .wcm.recruitment-client [407.0],因为它暴露于捆绑包修订版org.apache.felix.framework [0]和com中的包'javax.xml.namespace'. .commons.axissosgi.commons.axissosgi [402.1].

com..wcm.recruitment-client [407.0] import: (osgi.wiring.package=org.apache.axis) | export: osgi.wiring.package=org.apache.axis; uses:=javax.xml.namespace export: osgi.wiring.package=javax.xml.namespace com..commons.axissosgi.commons.axissosgi [402.1]) org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision com..wcm.recruitment-client [407.0] because it is exposed to package 'javax.xml.namespace' from bundle revisions org.apache.felix.framework [0] and com..commons.axissosgi.commons.axissosgi [402.1] via two dependency chains.

链条1:

com.**.wcm.recruitment-client [407.0] 导入:(osgi.wiring.package = javax.xml.namespace) | 导出:osgi.wiring.package = javax.xml.namespace org.apache.felix.framework [0]

com.**.wcm.recruitment-client [407.0] import: (osgi.wiring.package=javax.xml.namespace) | export: osgi.wiring.package=javax.xml.namespace org.apache.felix.framework [0]

链条2:

com. .wcm.recruitment-client [407.0] 导入:(osgi.wiring.package = org.apache.axis) | 出口:osgi.wiring.package = org.apache.axis;使用:= javax.xml.namespace 导出:osgi.wiring.package = javax.xml.namespace com. .commons.axissosgi.commons.axissosgi [402.1]

com..wcm.recruitment-client [407.0] import: (osgi.wiring.package=org.apache.axis) | export: osgi.wiring.package=org.apache.axis; uses:=javax.xml.namespace export: osgi.wiring.package=javax.xml.namespace com..commons.axissosgi.commons.axissosgi [402.1]

要补充的是,这就是OSGi捆绑包中的样子.

And to add, this is what it looks like in the OSGi bundle.

    ** recruitment webservice clientcom.**.wcm.recruitment-client
Symbolic Name   com.**.wcm.recruitment-client
Version 1.0.1.SNAPSHOT
Bundle Location inputstream:recruitment-client-1.0.1-SNAPSHOT.jar
Last Modification   Wed Jun 03 19:33:00 CST 2015
Start Level 20
Bundle Classpath    .,recruitment-ws-1.0.0.jar
Exported Packages   com.**.recruitment.client,version=1.0.1.SNAPSHOT
com.**.recruitment.ws,version=1.0.1.SNAPSHOT
Imported Packages   com.**.recruitment.client from com.**.wcm.recruitment-client (469)
com.**.recruitment.ws from com.**.wcm.recruitment-client (469)
com.**.wcm.config from com.**.wcm.**-wcm-cq5-core (446)
javax.xml.namespace from com.**.commons.axissosgi.commons.axissosgi (456)
javax.xml.rpc from com.**.commons.axissosgi.commons.axissosgi (456)
javax.xml.rpc.encoding from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis.client from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis.constants from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis.description from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis.encoding from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis.encoding.ser from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis.soap from com.**.commons.axissosgi.commons.axissosgi (456)
org.apache.axis.utils from com.**.commons.axissosgi.commons.axissosgi (456)
org.osgi.framework,version=[1.6,2) from org.apache.felix.framework (0)
org.slf4j,version=[1.6,2) from slf4j.api (22)
Manifest Headers    Bnd-LastModified: 1433331172696
Build-Jdk: 1.7.0_55
Built-By: 55954
Bundle-Activator: com.**.recruitment.Activator
Bundle-ClassPath: ., recruitment-ws-1.0.0.jar
Bundle-ManifestVersion: 2
Bundle-Name: ** recruitment webservice client
Bundle-SymbolicName: com.**.wcm.recruitment-client
Bundle-Version: 1.0.1.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Embed-Dependency: *; scope=compile|runtime
Embedded-Artifacts: recruitment-ws-1.0.0.jar; g="com.**.wcm"; a="recruitment-ws"; v="1.0.0"
Export-Package: com.**.recruitment.client; uses:="com.**.recruitment.ws"; version="1.0.1.SNAPSHOT", com.**.recruitment.ws; uses:="org.apache.axis.description, org.apache.axis.encoding, org.apache.axis.encoding.ser, javax.xml.namespace, javax.xml.rpc, org.apache.axis.client, org.apache.axis, org.apache.axis.constants, org.apache.axis.utils, org.apache.axis.soap, javax.xml.rpc.encoding"; version="1.0.1.SNAPSHOT"
Import-Package: com.**.recruitment.client, com.**.recruitment.ws, com.**.wcm.config, javax.xml.namespace, javax.xml.rpc, javax.xml.rpc.encoding, org.apache.axis, org.apache.axis.client, org.apache.axis.constants, org.apache.axis.description, org.apache.axis.encoding, org.apache.axis.encoding.ser, org.apache.axis.soap, org.apache.axis.utils, org.osgi.framework; version="[1.6, 2)", org.slf4j; version="[1.6, 2)"
Manifest-Version: 1.0
Service-Component: OSGI-INF/com.**.recruitment.client.impl.RecruitmentServiceImpl.xml
Tool: Bnd-1.50.0

谢谢

推荐答案

似乎javax.xml.namespace已经在另一个捆绑软件中部署.您应将其排除在设置之外.在pom.xml上,将配置添加到maven-bundle-plugin.像这样

It seems that javax.xml.namespace is already in deployed by another bundle. You should exclude that on your setup. On your pom.xml, add a configuration to the maven-bundle-plugin. Something like this

...
<Import-Package>
    !javax.xml.namespace,
    *
</Import-Package>
...

这篇关于AEM 6.0 Web控制台捆绑软件(OSGi捆绑软件)中安装的软件包未正确安装(状态应为“未激活")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆