camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: NoClassDefFoundError : javax.xml.namespace.QName CXF SOAP Consumer
Date Thu, 11 Aug 2011 10:55:23 GMT

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










Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message