0

我的开发环境和需求:Eclipse3.6、Equinox框架、Apache cxf-dosgi-ri-singlebundle-distribution-1.2.jar

想试试demo分布式程序,但是导入的cxf jar好像不能正常工作。首先,我下载的 cxf-dosgi 是一个 zip 文件,我只是将其扩展名重命名为 jar。我将它导入到 Eclipse 工作台中,没有提示错误。但是当我尝试使用 osgi、osgi.service、javax.servlet 运行它时,它会以红色显示大量控制台消息,这让我感到恐慌。

实际上当我添加服务,impl,客户端包时,系统无法工作,我认为启动cxf-dosgi包时一定有问题。

谁能帮我?

osgi> Setting HttpService port to: 8080
felix.fileinstall.poll  (ms)   2000
felix.fileinstall.dir            D:\Program Files\Eclipse3.6\.\load
felix.fileinstall.debug          -1
felix.fileinstall.bundles.new.start          true
log4j:WARN No appenders could be found for logger (org.mortbay.jetty).
log4j:WARN Please initialize the log4j system properly.
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.Activator start
信息: TopologyManager: start()
2011-5-10 20:19:48 org.apache.cxf.dosgi.discovery.zookeeper.Activator updated
信息: Received configuration update for Zookeeper Discovery: null
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: []
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 addingService
信息: TopologyManager: new EndpointListener that wants to be informed about wants going on ... 
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.log.LogService)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.apache.felix.cm.PersistenceManager)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ManagedService)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ManagedServiceFactory)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.cm.ConfigurationAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.remoteserviceadmin.EndpointListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: null
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.remoteserviceadmin.RemoteServiceAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [org.osgi.service.packageadmin.PackageAdmin]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.url.URLStreamHandlerService)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [org.osgi.service.url.URLStreamHandlerService]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.osgi.service.packageadmin.PackageAdmin)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [org.osgi.service.packageadmin.PackageAdmin]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=java.net.ContentHandler)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping import request for excluded classs [java.net.ContentHandler]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.framework.console.CommandProvider)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ... 
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.framework.console.ConsoleSession)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ... 
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ... 
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ... 
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl extendScope
信息: EndpointListener: extending scope by (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:19:48 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ... 
2011-5-10 20:19:49 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: *** Filter: (objectClass=org.springframework.osgi.context.event.OsgiBundleApplicationContextListener)
2011-5-10 20:19:49 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added
信息: ListenerHookImpl: skipping request from myself
Loading Intent map from [classpath:/OSGI-INF/cxf/intents/intent-map.xml]
2011-5-10 20:20:05 org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
信息: Injected intents: {addressing=org.apache.cxf.ws.policy.WSPolicyFeature@cbf9bd, logging=org.apache.cxf.feature.LoggingFeature@17918f0, SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@1546dbc, SOAP.1_1=org.apache.cxf.binding.soap.SoapBindingConfiguration@1546dbc, SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@1f08ed8, HTTP=PROVIDED}
application context: org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext@384065: display name [OsgiBundleXmlApplicationContext(bundle=cxf-dosgi-ri-singlebundle-distribution, config=classpath:/OSGI-INF/cxf/intents/intent-map.xml)]; startup date [Tue May 10 20:19:58 CST 2011]; root of context hierarchy
retrieved intent map: IntentMap: {addressing=org.apache.cxf.ws.policy.WSPolicyFeature@cbf9bd, logging=org.apache.cxf.feature.LoggingFeature@17918f0, SOAP=org.apache.cxf.binding.soap.SoapBindingConfiguration@1546dbc, SOAP.1_1=org.apache.cxf.binding.soap.SoapBindingConfiguration@1546dbc, SOAP.1_2=org.apache.cxf.binding.soap.SoapBindingConfiguration@1f08ed8, HTTP=PROVIDED}
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList$1 addingService
信息: Adding RemoteServiceAdmin to list of admins 
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.RemoteServiceAdminList$1 addingService
信息: enlisted RemoteEventAdmins: 0
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.TopologyManager triggerExportImportForRemoteSericeAdmin
信息: TopologyManager: triggerExportImportForRemoteSericeAdmin()
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl removed
信息: ListenerHookImpl: removed: [org.osgi.util.tracker.ServiceTracker$Tracked@10849bc(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)]
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.ListenerHookImpl removed
信息: (objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl reduceScope
信息: EndpointListener: reducing scope by (&(objectClass=org.eclipse.osgi.service.runnable.StartupMonitor)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl updateRegistration
信息: EndpointListenerImpl: filters: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.EndpointListenerImpl getRegistrationProperties
信息: EndpointListener: current filter: [(&(objectClass=org.eclipse.osgi.framework.console.CommandProvider)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.framework.console.ConsoleSession)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.service.debug.DebugOptionsListener)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331))), (&(objectClass=org.eclipse.osgi.signedcontent.SignedContentFactory)(!(endpoint.framework.uuid=69a8c12f-1cad-4479-977b-591dc124d331)))]
2011-5-10 20:20:05 org.apache.cxf.dosgi.topologymanager.TopologyManager$1 modifiedService
信息: TopologyManager: EndpointListener changed ... 
4

1 回答 1

0

CXF dOSGi 单一包分发被打包为一个 jar,因此下载它肯定有问题,尽管从您的日志中它似乎正在部署。

试试这个链接 cxf-dosgi-ri-singlebundle-distribution-1.2.jar

作为 CXF 的替代品,请尝试 ECF(Eclipse 通信框架)。

于 2011-08-09T08:35:41.447 回答