OSGI错误分析解决

1、java.lang.LinkageError: loader constraints violated when linking org/apache/axis/types/URI class

类链接错误。该错误及其所有子类指示某个类依赖于另外一些类,在该类编译之后,被依赖的类改变了其类定义而没有重新编译所有的类,进而引发错误的情况。在不同bundle里存在相同的jar(包括不同的版本),留意错误提示里面提到的class,该类在多个bundle内被用到。解决方法:在一个bundle内export对应的类包

2、org.osgi.framework.BundleException: The activator com.kong.ivr.isag.server.proxy.activator.NetworkEnhancedCallServiceProxyActivator for bundle com.kong.ivr.isag.server is invalid java.lang.ClassCastException: com.kong.ivr.isag.server.proxy.activator.NetworkEnhancedCallServiceProxyActivator cannot be cast to org.osgi.framework.BundleActivator

在MANIFEST.MF文件中,没有正确的import org.osgi.framework

3、org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Import-Package: cn.com.chinatelecom.schema.ctcc.common.v2_1; version="0.0.0"

在MANIFEST.MF文件中,依赖类的版本出错,很可能的原因是生成的MANIFEST.MF文件有问题,没有正确的标注所依赖类的版本

4、!MESSAGE Missing imported package org.osgi.service.http_1.2.0.jar

缺少依赖的bundle

5、java.lang.UnsupportedClassVersionError: Bad version number in .class file

版本不匹配

6、AXIS error

Sorry, something seems to have gone wrong... here are the details:

Fault - ; nested exception is:

org.apache.axis.ConfigurationException: java.lang.ClassCastException: org.apache.axis.handlers.http.URLMapper

Axis的wsdd文件没有找到或发布出错

7、AXIS error

Sorry, something seems to have gone wrong... here are the details:

Fault - ; nested exception is:

org.apache.axis.ConfigurationException: Could not find class for the service named: cn.com.chinatelecom.www.wsdl.ctcc.enhanced_call.networkcall.v2_1.service.NetworkEnhancedCallBindingSkeleton

Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is:

java.lang.ClassNotFoundException: cn.com.chinatelecom.www.wsdl.ctcc.enhanced_call.networkcall.v2_1.service.NetworkEnhancedCallBindingSkeleton

生成的bundle中缺少class文件

8、AXIS error

Could not generate WSDL!

There is no SOAP service at this location

请求的service name出错,或者Axis的wsdd文件没有找到或发布出错
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值