OSGI错误分析解决

来源:互联网 发布:开淘宝店铺不交保证金 编辑:程序博客网 时间:2024/05/16 10:36

转载出自 http://fs20041242.iteye.com/blog/1202339

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
原创粉丝点击