You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Naira & Kobo <le...@gmail.com> on 2011/08/10 12:59:40 UTC

NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Hi all,

I am trying to migrate a csf service from SMX 4.3 to 4.4 and when I deployed
in the new SMX 4.4.0-fuse-00-43, it throws the following exception:


11:50:48,442 | ContextLoaderListener            | 85 -
org.springframework.osgi.extender - 1.2.1 | Application context refresh
failed (OsgiBundleXmlApplicationContext(bundle=generic-soap-consumer-bridge,
config=osgibundle:/META-INF/spring/*.xml))
java.lang.NoClassDefFoundError: javax.xml.namespace.QName not found from
bundle [generic-soap-consumer-bridge]
	at $Proxy94.<clinit>(Unknown Source)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)[:1.6.0_25-ea]
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_25-ea]
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_25-ea]
	at
java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_25-ea]
	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588)[:1.6.0_25-ea]
	at
org.apache.cxf.tools.util.SOAPBindingUtil.getProxy(SOAPBindingUtil.java:89)
	at
org.apache.cxf.tools.util.SOAPBindingUtil.getSoapBinding(SOAPBindingUtil.java:286)
	at
org.apache.cxf.tools.util.SOAPBindingUtil.getSoapBinding(SOAPBindingUtil.java:278)
	at
org.apache.cxf.binding.soap.SoapBindingFactory.createBindingInfo(SoapBindingFactory.java:627)
	at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildBinding(WSDLServiceBuilder.java:487)
	at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:349)
	at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:198)
	at
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:142)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:382)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:499)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
	at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
	at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
	at org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java:249)
	at
org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:130)
	at
org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:61)
	at
org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:75)
	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:128)
	at
org.apache.camel.impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java:1839)
	at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1765)
	at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1555)
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1447)
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1338)
	at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1316)
	at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
	at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)
	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[85:org.springframework.osgi.extender:1.2.1]
	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25-ea]




See the context.xml file:


<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:osgi="http://camel.apache.org/schema/osgi"
       xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
       xmlns:cxf="http://camel.apache.org/schema/cxf"
       xmlns:jaxrs="http://cxf.apache.org/jaxrs"
        xmlns:isw="http://techquest.interswitchng.com/services" 
        xmlns:beans="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
       http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd
       http://camel.apache.org/schema/osgi
http://camel.apache.org/schema/osgi/camel-osgi.xsd
       http://www.springframework.org/schema/osgi-compendium
http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
       http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
       http://camel.apache.org/schema/cxf
http://camel.apache.org/schema/cxf/camel-cxf.xsd
       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
       http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
       http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
       http://servicemix.apache.org/cxfbc/1.0
http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

	<import resource="classpath:META-INF/cxf/cxf.xml"/>
	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"
/>
	<import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
	<import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml"/> 
	

  <cxf:cxfEndpoint id="ServiceEndpoint"
address="${generic-soap-request-url}"
     		wsdlURL="${karaf.home}/data/conf/wsdl/Services.wsdl"
     		endpointName="s:EnrollmentServicesSoap12Endpoint"
     		serviceName="s:Services"
     	xmlns:s="http://temp.org/" >
     	
		 <cxf:properties>
	       <entry key="dataFormat" value="MESSAGE"/>
     	 </cxf:properties>
     </cxf:cxfEndpoint>
     
     <bean id="deadLetter"
class="org.apache.camel.builder.DeadLetterChannelBuilder">
	    <property name="deadLetterUri" value="direct:errorHandler"/>
	</bean>
	
  <osgi:camelContext xmlns="http://camel.apache.org/schema/spring"
trace="true">   
  	<route>
    	<from uri="cxf:bean:ServiceEndpoint" />
...........


--
View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4685413.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by emeka_kanu <em...@hotmail.com>.
Not sure if this is still a problem for anyone.

However, I solved this by using the following in the pom.

<DynamicImport-Package>
	javax.xml.namespace,
........



--
View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p5725546.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Freeman Fang <fr...@gmail.com>.
On 2011-8-11, at 下午6:04, Naira & Kobo wrote:

> Hi, something else came up.
>
> Have you ever tried running servicemix 4.4 on Windows 7? I am  
> running mine
> on Windows 7 and here are the errors I am getting when starting it up:
>
> 10:59:35,041 | NIOSocketConnectorWrapper        | 159 -
> org.ops4j.pax.web.pax-web-jetty - 1.0.3 | Connection on port 8181  
> cannot be
> open. Reason: Address already in use: bind
> 10:59:36,246 | XmlBeanDefinitionReader          | 68 -
> org.springframework.beans - 3.0.5.RELEASE | Ignored XML validation  
> warning
> java.net.ConnectException: Connection refused: connect
> 	at
> org 
> .apache 
> .xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)[:]
> 	at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown  
> Source)[:]
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown  
> Source)[:]
> 	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown  
> Source)[:]
> 	at
> org 
> .apache 
> .xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
> Source)[:]
> 	at
> org 
> .apache 
> .xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
> Source)[:]
> 	at
> org 
> .apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
> Source)[:]
> 	at  
> org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown  
> Source)[:]
> 	at  
> org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
> Source)[:]
> 	at
> org 
> .apache.xerces.impl.xs.XMLSchemaValidator.getGlobalElementDecl(Unknown
> Source)[:]
> 	at
> org 
> .apache 
> .xerces.impl.xs.SubstitutionGroupHandler.getMatchingElemDecl(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.xs.models.XSDFACM.oneTransition(Unknown
> Source)[:]
> 	at  
> org 
> .apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)[:]
> 	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)[:]
> 	at  
> org 
> .apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)[:]
> 	at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl 
> $FragmentContentDispatcher.dispatch(Unknown
> Source)[:]
> 	at
> org 
> .apache 
> .xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)[:]
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
> Source)[:]
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
> Source)[:]
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
> 	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
> 	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source) 
> [:]
> 	at
> org 
> .springframework 
> .beans 
> .factory 
> .xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java: 
> 75)[68:org.springframework.beans:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .beans 
> .factory 
> .xml 
> .XmlBeanDefinitionReader 
> .doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388) 
> [68:org.springframework.beans:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .beans 
> .factory 
> .xml 
> .XmlBeanDefinitionReader 
> .loadBeanDefinitions(XmlBeanDefinitionReader.java:334) 
> [68:org.springframework.beans:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .beans 
> .factory 
> .xml 
> .XmlBeanDefinitionReader 
> .loadBeanDefinitions(XmlBeanDefinitionReader.java:302) 
> [68:org.springframework.beans:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanDefinitionReader 
> .loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) 
> [68:org.springframework.beans:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanDefinitionReader 
> .loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) 
> [68:org.springframework.beans:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .beans 
> .factory 
> .support 
> .AbstractBeanDefinitionReader 
> .loadBeanDefinitions(AbstractBeanDefinitionReader.java:149) 
> [68:org.springframework.beans:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .OsgiBundleXmlApplicationContext 
> .loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .OsgiBundleXmlApplicationContext 
> .loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .context 
> .support 
> .AbstractRefreshableApplicationContext 
> .refreshBeanFactory(AbstractRefreshableApplicationContext.java:130) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .obtainFreshBeanFactory(AbstractApplicationContext.java:467) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .osgi 
> .context.support.AbstractDelegatedExecutionApplicationContext.access 
> $800(AbstractDelegatedExecutionApplicationContext.java:69) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi.context.support.AbstractDelegatedExecutionApplicationContext 
> $3.run(AbstractDelegatedExecutionApplicationContext.java:269) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .util 
> .internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java: 
> 85)[82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .AbstractDelegatedExecutionApplicationContext 
> .startRefresh(AbstractDelegatedExecutionApplicationContext.java:247) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .extender 
> .internal 
> .dependencies 
> .startup 
> .DependencyWaiterApplicationContextExecutor 
> .stageOne(DependencyWaiterApplicationContextExecutor.java:214) 
> [85:org.springframework.osgi.extender:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .extender 
> .internal 
> .dependencies 
> .startup 
> .DependencyWaiterApplicationContextExecutor 
> .refresh(DependencyWaiterApplicationContextExecutor.java:169) 
> [85:org.springframework.osgi.extender:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .AbstractDelegatedExecutionApplicationContext 
> .refresh(AbstractDelegatedExecutionApplicationContext.java:175) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi.extender.internal.activator.ContextLoaderListener 
> $2.run(ContextLoaderListener.java:716) 
> [85:org.springframework.osgi.extender:1.2.1]
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25-ea]
>
>
> and
> 10:59:46,450 | log                              | 114 -
> org.eclipse.jetty.util - 7.4.1.v20110513 | FAILED
> SelectChannelConnector@testesb.interswitchng.com:9005 FAILED:
> java.net.BindException: Cannot assign requested address: bind
> 10:59:46,450 | log                              | 114 -
> org.eclipse.jetty.util - 7.4.1.v20110513 | FAILED
> org.eclipse.jetty.server.Server@7010e773: java.net.BindException:  
> Cannot
> assign requested address: bind
> 10:59:46,450 | JettyHTTPServerEngine            |  -  -  | Could not  
> start
> Jetty server on port 9,005: Cannot assign requested address: bind
> 10:59:46,830 | log                              | 114 -
> org.eclipse.jetty.util - 7.4.1.v20110513 | 2 threads could not be  
> stopped
> 10:59:46,861 | OsgiSpringCamelContext           | 77 -
> org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Apache Camel
> 2.7.1-fuse-00-43 (CamelContext:246-camel-5) is shutting down
> 10:59:46,863 | DefaultShutdownStrategy          | 77 -
> org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Starting to graceful
> shutdown 0 routes (timeout 300 seconds)
> 10:59:46,888 | DefaultShutdownStrategy          | 77 -
> org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Graceful shutdown  
> of 0
> routes completed in 0 seconds
> 10:59:46,892 | DefaultInflightRepository        | 77 -
> org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Shutting down with no
> inflight exchanges.
> 10:59:46,909 | OsgiSpringCamelContext           | 77 -
> org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Uptime: 4.912 seconds
> 10:59:46,910 | OsgiSpringCamelContext           | 77 -
> org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Apache Camel
> 2.7.1-fuse-00-43 (CamelContext: 246-camel-5) is shutdown in 0.048  
> seconds
> 10:59:46,910 | ContextLoaderListener            | 85 -
> org.springframework.osgi.extender - 1.2.1 | Application context  
> refresh
> failed (OsgiBundleXmlApplicationContext(bundle=generic-soap-consumer- 
> bridge,
> config=osgibundle:/META-INF/spring/*.xml))
> org.apache.camel.RuntimeCamelException:  
> org.apache.cxf.interceptor.Fault:
> Could not start Jetty server on port 9,005: Cannot assign requested  
> address:
> bind
> 	at
> org 
> .apache 
> .camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java: 
> 1139)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .spring 
> .SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103) 
> [87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .spring 
> .CamelContextFactoryBean 
> .onApplicationEvent(CamelContextFactoryBean.java:238) 
> [87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
> 	at
> org 
> .springframework 
> .context 
> .event 
> .SimpleApplicationEventMulticaster 
> .multicastEvent(SimpleApplicationEventMulticaster.java:97) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .publishEvent(AbstractApplicationContext.java:303) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .finishRefresh(AbstractApplicationContext.java:911) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .AbstractOsgiBundleApplicationContext 
> .finishRefresh(AbstractOsgiBundleApplicationContext.java:235) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi.context.support.AbstractDelegatedExecutionApplicationContext 
> $4.run(AbstractDelegatedExecutionApplicationContext.java:358) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .util 
> .internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java: 
> 85)[82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .AbstractDelegatedExecutionApplicationContext 
> .completeRefresh(AbstractDelegatedExecutionApplicationContext.java: 
> 320)[82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .extender 
> .internal 
> .dependencies.startup.DependencyWaiterApplicationContextExecutor 
> $ 
> CompleteRefreshTask 
> .run(DependencyWaiterApplicationContextExecutor.java:132) 
> [85:org.springframework.osgi.extender:1.2.1]
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25-ea]
> Caused by: org.apache.cxf.interceptor.Fault: Could not start Jetty  
> server on
> port 9,005: Cannot assign requested address: bind
> 	at
> org 
> .apache 
> .cxf 
> .transport 
> .http_jetty 
> .JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:402) 
> [123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
> 	at
> org 
> .apache 
> .cxf 
> .transport 
> .http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java: 
> 164)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
> 	at
> org 
> .apache 
> .cxf 
> .transport 
> .AbstractObservable.setMessageObserver(AbstractObservable.java:48) 
> [123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
> 	at
> org 
> .apache 
> .cxf 
> .binding 
> .AbstractBaseBindingFactory 
> .addListener(AbstractBaseBindingFactory.java:97) 
> [123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
> 	at
> org 
> .apache 
> .cxf 
> .binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java: 
> 836)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
> 	at
> org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127) 
> [123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
> 	at
> org.apache.camel.component.cxf.CxfConsumer.doStart(CxfConsumer.java: 
> 258)[122:org.apache.camel.camel-cxf:2.7.1.fuse-00-43]
> 	at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java: 
> 60)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .impl.DefaultCamelContext.startServices(DefaultCamelContext.java: 
> 1620)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .impl 
> .DefaultCamelContext 
> .doStartOrResumeRouteConsumers(DefaultCamelContext.java:1895) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .impl 
> .DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java: 
> 1848)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .impl 
> .DefaultCamelContext 
> .safelyStartRouteServices(DefaultCamelContext.java:1774) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .impl 
> .DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java: 
> 1555)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1447) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java: 
> 1338)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164) 
> [87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
> 	at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1316) 
> [77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java: 
> 203)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
> 	at
> org 
> .apache 
> .camel 
> .spring 
> .SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101) 
> [87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
> 	... 10 more
> Caused by: java.net.BindException: Cannot assign requested address:  
> bind
> 	at sun.nio.ch.Net.bind(Native Method)[:1.6.0_25-ea]
> 	at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java: 
> 126)[:1.6.0_25-ea]
> 	at
> sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)[: 
> 1.6.0_25-ea]
> 	at
> org 
> .eclipse 
> .jetty 
> .server.nio.SelectChannelConnector.open(SelectChannelConnector.java: 
> 172)[109:org.eclipse.jetty.server:7.4.1.v20110513]
> 	at
> org 
> .eclipse 
> .jetty.server.AbstractConnector.doStart(AbstractConnector.java:304) 
> [109:org.eclipse.jetty.server:7.4.1.v20110513]
> 	at
> org 
> .eclipse 
> .jetty 
> .server 
> .nio.SelectChannelConnector.doStart(SelectChannelConnector.java:250) 
> [109:org.eclipse.jetty.server:7.4.1.v20110513]
> 	at
> org 
> .eclipse 
> .jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 58)[114:org.eclipse.jetty.util:7.4.1.v20110513]
> 	at
> org.eclipse.jetty.server.Server.doStart(Server.java:269) 
> [109:org.eclipse.jetty.server:7.4.1.v20110513]
> 	at
> org 
> .eclipse 
> .jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 
> 58)[114:org.eclipse.jetty.util:7.4.1.v20110513]
> 	at
> org 
> .apache 
> .cxf 
> .transport 
> .http_jetty 
> .JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:391) 
> [123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
> 	... 32 more
> 10:59:47,616 | MessageDatabase                  | 49 -
> org.apache.activemq.activemq-core - 5.5.0.fuse-00-43 | KahaDB is  
> version 3
>
>
> Needless to say that both ports are free and no applicationis using  
> them. I
> telnet to the ports and nothing is listening on them. However on the  
> same
> system, activemq port (61616) is listening. I thought it was a port  
> thing so
> I change the port to some thing higher (50000), but the problem  
> remained the
> same.
Hi,

You mean both port 8181 and 9005 are free?
I guess it's something related to you have no permission to start  
listening port on that machine. I'm not familiar with Windows7 but is  
it possible that some firewall or anit-virus software prevent you to  
do it? Or your userID has no such permission on that machine per the  
OS configuration?

Freeman
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4689032.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Naira & Kobo <le...@gmail.com>.
Hi, something else came up.

Have you ever tried running servicemix 4.4 on Windows 7? I am running mine
on Windows 7 and here are the errors I am getting when starting it up:

10:59:35,041 | NIOSocketConnectorWrapper        | 159 -
org.ops4j.pax.web.pax-web-jetty - 1.0.3 | Connection on port 8181 cannot be
open. Reason: Address already in use: bind
10:59:36,246 | XmlBeanDefinitionReader          | 68 -
org.springframework.beans - 3.0.5.RELEASE | Ignored XML validation warning
java.net.ConnectException: Connection refused: connect
	at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)[:]
	at org.apache.xerces.util.ErrorHandlerWrapper.warning(Unknown Source)[:]
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
	at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)[:]
	at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaWarning(Unknown
Source)[:]
	at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument1(Unknown
Source)[:]
	at
org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown
Source)[:]
	at
org.apache.xerces.impl.xs.XMLSchemaValidator.getGlobalElementDecl(Unknown
Source)[:]
	at
org.apache.xerces.impl.xs.SubstitutionGroupHandler.getMatchingElemDecl(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.models.XSDFACM.oneTransition(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
Source)[:]
	at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
Source)[:]
	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)[:]
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)[:]
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)[:]
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)[:]
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)[:]
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)[:]
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)[:]
	at
org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)[68:org.springframework.beans:3.0.5.RELEASE]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)[68:org.springframework.beans:3.0.5.RELEASE]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[68:org.springframework.beans:3.0.5.RELEASE]
	at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[68:org.springframework.beans:3.0.5.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[68:org.springframework.beans:3.0.5.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[68:org.springframework.beans:3.0.5.RELEASE]
	at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[68:org.springframework.beans:3.0.5.RELEASE]
	at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:164)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext.loadBeanDefinitions(OsgiBundleXmlApplicationContext.java:136)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$800(AbstractDelegatedExecutionApplicationContext.java:69)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$3.run(AbstractDelegatedExecutionApplicationContext.java:269)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.startRefresh(AbstractDelegatedExecutionApplicationContext.java:247)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:214)[85:org.springframework.osgi.extender:1.2.1]
	at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)[85:org.springframework.osgi.extender:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)[85:org.springframework.osgi.extender:1.2.1]
	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25-ea]


 and
10:59:46,450 | log                              | 114 -
org.eclipse.jetty.util - 7.4.1.v20110513 | FAILED
SelectChannelConnector@testesb.interswitchng.com:9005 FAILED:
java.net.BindException: Cannot assign requested address: bind
10:59:46,450 | log                              | 114 -
org.eclipse.jetty.util - 7.4.1.v20110513 | FAILED
org.eclipse.jetty.server.Server@7010e773: java.net.BindException: Cannot
assign requested address: bind
10:59:46,450 | JettyHTTPServerEngine            |  -  -  | Could not start
Jetty server on port 9,005: Cannot assign requested address: bind
10:59:46,830 | log                              | 114 -
org.eclipse.jetty.util - 7.4.1.v20110513 | 2 threads could not be stopped
10:59:46,861 | OsgiSpringCamelContext           | 77 -
org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Apache Camel
2.7.1-fuse-00-43 (CamelContext:246-camel-5) is shutting down
10:59:46,863 | DefaultShutdownStrategy          | 77 -
org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Starting to graceful
shutdown 0 routes (timeout 300 seconds)
10:59:46,888 | DefaultShutdownStrategy          | 77 -
org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Graceful shutdown of 0
routes completed in 0 seconds
10:59:46,892 | DefaultInflightRepository        | 77 -
org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Shutting down with no
inflight exchanges.
10:59:46,909 | OsgiSpringCamelContext           | 77 -
org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Uptime: 4.912 seconds
10:59:46,910 | OsgiSpringCamelContext           | 77 -
org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Apache Camel
2.7.1-fuse-00-43 (CamelContext: 246-camel-5) is shutdown in 0.048 seconds
10:59:46,910 | ContextLoaderListener            | 85 -
org.springframework.osgi.extender - 1.2.1 | Application context refresh
failed (OsgiBundleXmlApplicationContext(bundle=generic-soap-consumer-bridge,
config=osgibundle:/META-INF/spring/*.xml))
org.apache.camel.RuntimeCamelException: org.apache.cxf.interceptor.Fault:
Could not start Jetty server on port 9,005: Cannot assign requested address:
bind
	at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
	at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
	at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[70:org.springframework.context:3.0.5.RELEASE]
	at
org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[82:org.springframework.osgi.core:1.2.1]
	at
org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[85:org.springframework.osgi.extender:1.2.1]
	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25-ea]
Caused by: org.apache.cxf.interceptor.Fault: Could not start Jetty server on
port 9,005: Cannot assign requested address: bind
	at
org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:402)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:164)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
	at
org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
	at
org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:97)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
	at
org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:836)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
	at
org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:127)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
	at
org.apache.camel.component.cxf.CxfConsumer.doStart(CxfConsumer.java:258)[122:org.apache.camel.camel-cxf:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:60)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:1620)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRouteConsumers(DefaultCamelContext.java:1895)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.doStartRouteConsumers(DefaultCamelContext.java:1848)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.safelyStartRouteServices(DefaultCamelContext.java:1774)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1555)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1447)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1338)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1316)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]
	at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
	at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]
	... 10 more
Caused by: java.net.BindException: Cannot assign requested address: bind
	at sun.nio.ch.Net.bind(Native Method)[:1.6.0_25-ea]
	at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:126)[:1.6.0_25-ea]
	at
sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)[:1.6.0_25-ea]
	at
org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:172)[109:org.eclipse.jetty.server:7.4.1.v20110513]
	at
org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:304)[109:org.eclipse.jetty.server:7.4.1.v20110513]
	at
org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:250)[109:org.eclipse.jetty.server:7.4.1.v20110513]
	at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)[114:org.eclipse.jetty.util:7.4.1.v20110513]
	at
org.eclipse.jetty.server.Server.doStart(Server.java:269)[109:org.eclipse.jetty.server:7.4.1.v20110513]
	at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)[114:org.eclipse.jetty.util:7.4.1.v20110513]
	at
org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:391)[123:org.apache.cxf.bundle:2.4.1.fuse-00-43]
	... 32 more
10:59:47,616 | MessageDatabase                  | 49 -
org.apache.activemq.activemq-core - 5.5.0.fuse-00-43 | KahaDB is version 3


Needless to say that both ports are free and no applicationis using them. I
telnet to the ports and nothing is listening on them. However on the same
system, activemq port (61616) is listening. I thought it was a port thing so
I change the port to some thing higher (50000), but the problem remained the
same.


--
View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4689032.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Freeman Fang <fr...@gmail.com>.
Hmm, it's weird, any chance you can provide a testcase bundle which I  
can build and  deploy to reproduce it?

Freeman
On 2011-8-11, at 下午4:53, Naira & Kobo wrote:

> Here:
>
> karaf@root> headers 244
>
> Generic SOAP Services Consumer (244)
> ------------------------------------------------
> Manifest-Version = 1
> Bnd-LastModified = 1313052666388
> Tool = Bnd-1.43.0
> Build-Jdk = 1.6.0_25-ea
> Created-By = Apache Maven Bundle Plugin
>
> Bundle-Name = Generic SOAP Services Consumer
> Bundle-SymbolicName = generic-soap-consumer-bridge
> Bundle-Version = 1.0.0
> Bundle-ManifestVersion = 2
>
> Import-Package =
>        com.mchange.v2.c3p0;version="[0.9,1)",
>        javax.xml.namespace,
>        org.apache.activemq;version="[5.2,6)",
>        org.apache.camel.builder;version="[2.2,3)",
>        org.apache.camel.component.jms;version="[2.2,3)",
>        org.apache.camel.processor;version="[2.2,3)",
>        org.apache.camel.processor.interceptor;version="[2.2,3)",
>        org.apache.camel.processor.loadbalancer;version="[2.2,3)",
>        org.springframework.beans.factory.config;version=2.5,
>        org.springframework.jms.connection;version=2.5
> Require-Bundle =
>        org.apache.cxf.bundle
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4688861.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Naira & Kobo <le...@gmail.com>.
Here:

karaf@root> headers 244

Generic SOAP Services Consumer (244)
------------------------------------------------
Manifest-Version = 1
Bnd-LastModified = 1313052666388
Tool = Bnd-1.43.0
Build-Jdk = 1.6.0_25-ea
Created-By = Apache Maven Bundle Plugin

Bundle-Name = Generic SOAP Services Consumer
Bundle-SymbolicName = generic-soap-consumer-bridge
Bundle-Version = 1.0.0
Bundle-ManifestVersion = 2

Import-Package =
        com.mchange.v2.c3p0;version="[0.9,1)",
        javax.xml.namespace,
        org.apache.activemq;version="[5.2,6)",
        org.apache.camel.builder;version="[2.2,3)",
        org.apache.camel.component.jms;version="[2.2,3)",
        org.apache.camel.processor;version="[2.2,3)",
        org.apache.camel.processor.interceptor;version="[2.2,3)",
        org.apache.camel.processor.loadbalancer;version="[2.2,3)",
        org.springframework.beans.factory.config;version=2.5,
        org.springframework.jms.connection;version=2.5
Require-Bundle =
        org.apache.cxf.bundle


--
View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4688861.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Could you append the output for
osgi:headers your_customer_bundle_id?

Freeman
On 2011-8-10, at 下午10:00, Naira & Kobo wrote:

> Hi,
>
> The error persisted even though I have javax.xml.namespace imported.
>
> Any ideas why this is so?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4685898.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Naira & Kobo <le...@gmail.com>.
Hi,

The error persisted even though I have javax.xml.namespace imported.

Any ideas why this is so?

--
View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4685898.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You don't need import "java." package per OSGi spec.
But you need import other package one after the other as needed.

Freeman
On 2011-8-10, at 下午7:29, Naira & Kobo wrote:

> Thank you for your response.
>
> I am a little new to OSGi. Is there a way I can import all java.*  
> packages
> in my pom fileor do I have to import one after the other as needed?
>
> Regards.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4685492.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com










Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Naira & Kobo <le...@gmail.com>.
Thank you for your response.

I am a little new to OSGi. Is there a way I can import all java.* packages
in my pom fileor do I have to import one after the other as needed?

Regards.



--
View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4685492.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

My comment inline.
On 2011-8-10, at 下午6:59, Naira & Kobo wrote:

> Hi all,
>
> I am trying to migrate a csf service from SMX 4.3 to 4.4 and when I  
> deployed
> in the new SMX 4.4.0-fuse-00-43, it throws the following exception:
>
>
> 11:50:48,442 | ContextLoaderListener            | 85 -
> org.springframework.osgi.extender - 1.2.1 | Application context  
> refresh
> failed (OsgiBundleXmlApplicationContext(bundle=generic-soap-consumer- 
> bridge,
> config=osgibundle:/META-INF/spring/*.xml))
> java.lang.NoClassDefFoundError: javax.xml.namespace.QName not found  
> from
> bundle [generic-soap-consumer-bridge]

Firstly you need check if your generic-soap-consumer-bridge customer  
bundle already import package javax.xml.namespace.
FUSE ESB 4.3 by default use equinox which don't strictly require it  
but FUSE ESB 4.4 by default use felix which need import all package  
which isn't start with "java."(Per OSGi spec)
> 	at $Proxy94.<clinit>(Unknown Source)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)[:1.6.0_25-ea]
> 	at
> sun 
> .reflect 
> .NativeConstructorAccessorImpl 
> .newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_25-ea]
> 	at
> sun 
> .reflect 
> .DelegatingConstructorAccessorImpl 
> .newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_25-ea]
> 	at
> java.lang.reflect.Constructor.newInstance(Constructor.java:513)[: 
> 1.6.0_25-ea]
> 	at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588)[: 
> 1.6.0_25-ea]
> 	at
> org 
> .apache.cxf.tools.util.SOAPBindingUtil.getProxy(SOAPBindingUtil.java: 
> 89)
> 	at
> org 
> .apache 
> .cxf.tools.util.SOAPBindingUtil.getSoapBinding(SOAPBindingUtil.java: 
> 286)
> 	at
> org 
> .apache 
> .cxf.tools.util.SOAPBindingUtil.getSoapBinding(SOAPBindingUtil.java: 
> 278)
> 	at
> org 
> .apache 
> .cxf 
> .binding 
> .soap.SoapBindingFactory.createBindingInfo(SoapBindingFactory.java: 
> 627)
> 	at
> org 
> .apache 
> .cxf.wsdl11.WSDLServiceBuilder.buildBinding(WSDLServiceBuilder.java: 
> 487)
> 	at
> org 
> .apache 
> .cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java: 
> 349)
> 	at
> org 
> .apache 
> .cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java: 
> 198)
> 	at
> org 
> .apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java: 
> 142)
> 	at
> org 
> .apache 
> .cxf 
> .service 
> .factory 
> .ReflectionServiceFactoryBean 
> .buildServiceFromWSDL(ReflectionServiceFactoryBean.java:382)
> 	at
> org 
> .apache 
> .cxf 
> .service 
> .factory 
> .ReflectionServiceFactoryBean 
> .initializeServiceModel(ReflectionServiceFactoryBean.java:499)
> 	at
> org 
> .apache 
> .cxf 
> .service 
> .factory 
> .ReflectionServiceFactoryBean 
> .create(ReflectionServiceFactoryBean.java:241)
> 	at
> org 
> .apache 
> .cxf 
> .frontend 
> .AbstractWSDLBasedEndpointFactory 
> .createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
> 	at
> org 
> .apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java: 
> 157)
> 	at  
> org.apache.camel.component.cxf.CxfConsumer.<init>(CxfConsumer.java: 
> 249)
> 	at
> org 
> .apache 
> .camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:130)
> 	at
> org 
> .apache 
> .camel 
> .impl 
> .EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java: 
> 61)
> 	at
> org 
> .apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java: 
> 75)
> 	at org.apache.camel.impl.RouteService.warmUp(RouteService.java:128)
> 	at
> org 
> .apache 
> .camel 
> .impl.DefaultCamelContext.doWarmUpRoutes(DefaultCamelContext.java: 
> 1839)
> 	at
> org 
> .apache 
> .camel 
> .impl 
> .DefaultCamelContext 
> .safelyStartRouteServices(DefaultCamelContext.java:1765)
> 	at
> org 
> .apache 
> .camel 
> .impl 
> .DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java: 
> 1555)
> 	at
> org 
> .apache 
> .camel 
> .impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1447)
> 	at
> org 
> .apache 
> .camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1338)
> 	at
> org 
> .apache 
> .camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)
> 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)
> 	at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)
> 	at
> org 
> .apache 
> .camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1316)
> 	at
> org 
> .apache 
> .camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java: 
> 203)
> 	at
> org 
> .apache 
> .camel 
> .spring 
> .SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
> 	at
> org 
> .apache 
> .camel 
> .spring 
> .CamelContextFactoryBean 
> .onApplicationEvent(CamelContextFactoryBean.java:238)
> 	at
> org 
> .springframework 
> .context 
> .event 
> .SimpleApplicationEventMulticaster 
> .multicastEvent(SimpleApplicationEventMulticaster.java:97) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .publishEvent(AbstractApplicationContext.java:303) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .context 
> .support 
> .AbstractApplicationContext 
> .finishRefresh(AbstractApplicationContext.java:911) 
> [70:org.springframework.context:3.0.5.RELEASE]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .AbstractOsgiBundleApplicationContext 
> .finishRefresh(AbstractOsgiBundleApplicationContext.java:235) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi.context.support.AbstractDelegatedExecutionApplicationContext 
> $4.run(AbstractDelegatedExecutionApplicationContext.java:358) 
> [82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .util 
> .internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java: 
> 85)[82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .context 
> .support 
> .AbstractDelegatedExecutionApplicationContext 
> .completeRefresh(AbstractDelegatedExecutionApplicationContext.java: 
> 320)[82:org.springframework.osgi.core:1.2.1]
> 	at
> org 
> .springframework 
> .osgi 
> .extender 
> .internal 
> .dependencies.startup.DependencyWaiterApplicationContextExecutor 
> $ 
> CompleteRefreshTask 
> .run(DependencyWaiterApplicationContextExecutor.java:132) 
> [85:org.springframework.osgi.extender:1.2.1]
> 	at java.lang.Thread.run(Thread.java:662)[:1.6.0_25-ea]
>
>
>
>
> See the context.xml file:
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xmlns:osgi="http://camel.apache.org/schema/osgi"
>       xmlns:osgix="http://www.springframework.org/schema/osgi-compendium 
> "
>       xmlns:cxf="http://camel.apache.org/schema/cxf"
>       xmlns:jaxrs="http://cxf.apache.org/jaxrs"
>        xmlns:isw="http://techquest.interswitchng.com/services"
>        xmlns:beans="http://www.springframework.org/schema/beans"
>       xsi:schemaLocation="
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
>       http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>       http://camel.apache.org/schema/osgi
> http://camel.apache.org/schema/osgi/camel-osgi.xsd
>       http://www.springframework.org/schema/osgi-compendium
> http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
>       http://www.springframework.org/schema/osgi
> http://www.springframework.org/schema/osgi/spring-osgi.xsd
>       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
>       http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
>       http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
>       http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context.xsd
>       http://cxf.apache.org/core http://cxf.apache.org/schemas/ 
> core.xsd
>       http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/cxfbc/1.0/servicemix-cxf-bc.xsd
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> 	<import resource="classpath:META-INF/cxf/cxf.xml"/>
> 	<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-extension-jaxrs- 
> binding.xml"
> />
> 	<import resource="classpath:META-INF/cxf/osgi/cxf-extension- 
> osgi.xml" />
> 	<import resource="classpath:META-INF/cxf/cxf-extension-http- 
> jetty.xml"/>
Also FUSE ESB 4.4 use cxf 2.4 underlying so you don't need import  
those cxf-extension-*.xml except the cxf-extension-osgi.xml if you  
need use http-osgi transport.

Freeman
> 	
>
>  <cxf:cxfEndpoint id="ServiceEndpoint"
> address="${generic-soap-request-url}"
>     		wsdlURL="${karaf.home}/data/conf/wsdl/Services.wsdl"
>     		endpointName="s:EnrollmentServicesSoap12Endpoint"
>     		serviceName="s:Services"
>     	xmlns:s="http://temp.org/" >
>     	
> 		 <cxf:properties>
> 	       <entry key="dataFormat" value="MESSAGE"/>
>     	 </cxf:properties>
>     </cxf:cxfEndpoint>
>
>     <bean id="deadLetter"
> class="org.apache.camel.builder.DeadLetterChannelBuilder">
> 	    <property name="deadLetterUri" value="direct:errorHandler"/>
> 	</bean>
> 	
>  <osgi:camelContext xmlns="http://camel.apache.org/schema/spring"
> trace="true">
>  	<route>
>    	<from uri="cxf:bean:ServiceEndpoint" />
> ...........
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/NoClassDefFoundError-javax-xml-namespace-QName-CXF-SOAP-Consumer-tp4685413p4685413.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

---------------------------------------------
Freeman Fang

FuseSource
Email:ffang@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com