cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Unable to launch java main method
Date Tue, 24 May 2011 18:50:02 GMT


Do you have the CXF jars endorsed or in the bootstrap classpath or similar?

Basically, from the stack trace, it looks like the can in  WSDLManagerImpl of:

this.getClass().getClassLoader() is returning null, which is very strange.


Dan



On Sunday, May 22, 2011 10:34:19 PM apacheCXFUser wrote:
> Hi,
> I am unable to launch ws consumer java main method:
> I am using cxf 2.3.4/java 1.6. Please advise.
> 
> INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1f78ef
> 1: defining beans
> [cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.sp
> ring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250Bean
> PostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apach
> e.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.
> apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.Destinati
> onFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apach
> e.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.wor
> kqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org
> .apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycle
> Manager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.trans
> ports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverReg
> istry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCata
> logManager,org.apache.cxf.service.factory.FactoryBeanListenerManager,org.ap
> ache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.co
> rba.CorbaBindingFactory,org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegi
> ster#0,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.a
> pache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.S
> oapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apac
> he.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBi
> ndingFactory,org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilde
> r,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org.apach
> e.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.tr
> ansport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.ws.addressing.po
> licy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.Address
> ingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddre
> ssingAssertionBuilder,org.apache.cxf.javascript.JavascriptQueryHandler,org.
> apache.cxf.transport.local.LocalTransportFactory,org.apache.cxf.management.
> InstrumentationManager,org.apache.cxf.transport.http_jetty.JettyHTTPTranspo
> rtFactory,org.apache.cxf.transport.jms.JMSTransportFactory,org.apache.cxf.b
> inding.object.ObjectBindingFactory,org.apache.cxf.binding.http.HttpBindingF
> actory,org.apache.cxf.wstx_msv_validation.WoodstoxValidationImpl,org.apache
> .cxf.ws.security.policy.WSSecurityPolicyLoader,org.apache.cxf.ws.policy.Ass
> ertionBuilderRegistry,org.apache.cxf.ws.policy.PolicyInterceptorProviderReg
> istry,org.apache.cxf.ws.policy.attachment.external.DomainExpressionBuilderR
> egistry,org.apache.cxf.ws.policy.attachment.external.EndpointReferenceDomai
> nExpressionBuilder,org.apache.cxf.ws.policy.PolicyBuilder,org.apache.cxf.ws
> .policy.PolicyEngine,org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11Attac
> hmentPolicyProvider,org.apache.cxf.ws.policy.attachment.ServiceModelPolicyP
> rovider,org.apache.cxf.ws.policy.mtom.MTOMAssertionBuilder,org.apache.cxf.w
> s.policy.mtom.MTOMPolicyInterceptorProvider,org.apache.cxf.ws.rm.RMManager,
> org.apache.cxf.ws.rm.policy.RMPolicyInterceptorProvider,org.apache.cxf.ws.r
> m.policy.RMAssertionBuilder,org.apache.cxf.binding.corba.wsdl.WSDLExtension
> Register#1]; root of factory hierarchy
> Exception in thread "main"
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path
> resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested
> exception is org.springframework.beans.BeanInstantiationException: Could
> not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
> Constructor threw exception; nested exception is
> java.lang.NullPointerException
> 	at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConst
> ructor(ConstructorResolver.java:254) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.createBeanInstance(AbstractAutowireCapableBeanFactory.java:823) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y$1.run(AbstractAutowireCapableBeanFactory.java:409) at
> java.security.AccessController.doPrivileged(Native Method)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor
> y.createBean(AbstractAutowireCapableBeanFactory.java:380) at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(A
> bstractBeanFactory.java:264) at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS
> ingleton(DefaultSingletonBeanRegistry.java:222) at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs
> tractBeanFactory.java:261) at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
> actBeanFactory.java:185) at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr
> actBeanFactory.java:164) at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.getBea
> nsOfType(DefaultListableBeanFactory.java:308) at
> org.springframework.context.support.AbstractApplicationContext.getBeansOfTy
> pe(AbstractApplicationContext.java:947) at
> org.apache.cxf.bus.spring.SpringBeanLocator.getBeansOfType(SpringBeanLocato
> r.java:59) at
> org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:99) at
> org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:91)
> 	at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.java:203)
> 	at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:147)
> 	at
> org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.ja
> va:90) at javax.xml.ws.Service.<init>(Unknown Source)
> 	at
> com.ingenix.cpe.requestreply.service.impl.PAFServiceImplService.<init>(PAFS
> erviceImplService.java:48) at
> com.ingenix.cpe.requestreply.service.impl.PAFService_PAFServiceImplPort_Cli
> ent.main(PAFService_PAFServiceImplPort_Client.java:50) Caused by:
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
> Constructor threw exception; nested exception is
> java.lang.NullPointerException at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)
> at
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.insta
> ntiate(SimpleInstantiationStrategy.java:87) at
> org.springframework.beans.factory.support.ConstructorResolver.autowireConst
> ructor(ConstructorResolver.java:248) ... 22 more
> Caused by: java.lang.NullPointerException
> 	at
> org.apache.cxf.common.util.PropertiesLoaderUtils.loadAllProperties(Properti
> esLoaderUtils.java:63) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManager
> Impl.java:255) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManager
> Impl.java:249) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:116) at
> org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:119) at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
> 	at java.lang.reflect.Constructor.newInstance(Unknown Source)
> 	at
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
> ... 24 more
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Unable-to-launch-java-main-method-tp441792
> 4p4417924.html Sent from the cxf-issues mailing list archive at Nabble.com.

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Mime
View raw message