You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by paolo rito <pa...@gmail.com> on 2008/09/09 15:36:34 UTC

Failed to create stubs from wsdl

Hi !

Im trying to  build the sample of apache-cxf-2.1.2\samples\wsdl_first_soap12
but when i wsdl2java is run it fails to create the stub files from wsdl file
!

The following errror :

[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building Unnamed - org.apache.cxf.samples:wsdl_first_soap12:jar:1.0
[INFO]    task-segment: [install]
[INFO]
------------------------------------------------------------------------
[INFO] artifact org.apache.cxf:cxf-codegen-plugin: checking for updates from
pub
lic
[INFO] artifact org.apache.cxf:cxf-codegen-plugin: checking for updates from
inh
ouse
[INFO] artifact org.apache.cxf:cxf-codegen-plugin: checking for updates from
pub
lic
[INFO] artifact org.apache.cxf:cxf-codegen-plugin: checking for updates from
inh
ouse
[INFO] artifact org.apache.cxf:cxf-rt-frontend-jaxws: checking for updates
from
public
[INFO] artifact org.apache.cxf:cxf-rt-frontend-jaxws: checking for updates
from
inhouse
[INFO] artifact org.apache.cxf:cxf-rt-transports-http: checking for updates
from
 public
[INFO] artifact org.apache.cxf:cxf-rt-transports-http: checking for updates
from
 inhouse
[INFO] artifact org.apache.cxf:cxf-rt-transports-http-jetty: checking for
update
s from public
[INFO] artifact org.apache.cxf:cxf-rt-transports-http-jetty: checking for
update
s from inhouse
[INFO] [cxf-codegen:wsdl2java {execution: generate-sources}]
2008-sep-09 15:18:17
org.springframework.context.support.AbstractApplicationCont
ext prepareRefresh
INFO: Refreshing org.apache.cxf.bus.spring.BusApplicationContext@1a422f6:
displa
y name [org.apache.cxf.bus.spring.BusApplicationContext@1a422f6]; startup
date [
Tue Sep 09 15:18:17 CEST 2008]; root of context hierarchy
2008-sep-09 15:18:17 org.apache.cxf.bus.spring.BusApplicationContext
getConfigRe
sources
INFO: No cxf.xml configuration file detected, relying on defaults.
2008-sep-09 15:18:17
org.springframework.beans.factory.support.DefaultListableBe
anFactory registerBeanDefinition
INFO: Overriding bean definition for bean
'org.apache.cxf.transport.http.policy.
HTTPClientAssertionBuilder': replacing [Root bean: class
[org.apache.cxf.transpo
rt.http.policy.HTTPClientAssertionBuilder]; scope=singleton; abstract=false;
laz
yInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0;
factoryB
eanName=null; factoryMethodName=null; initMethodName=null;
destroyMethodName=nul
l; defined in URL
[jar:file:/C:/Documents%20and%20Settings/administrat÷r/.m2/rep
ository/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-transports-http-2.1.2
.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root bean: class
[org.apache
.cxf.transport.http.policy.HTTPClientAssertionBuilder]; scope=singleton;
abstrac
t=false; lazyInit=false; autowireCandidate=true; autowireMode=0;
dependencyCheck
=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null;
destroyMe
thodName=null; defined in URL
[jar:file:/C:/Documents%20and%20Settings/administr
at÷r/.m2/repository/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-transport
s-http-2.1.2.jar!/META-INF/cxf/cxf-extension-http.fixml]]
2008-sep-09 15:18:17
org.springframework.beans.factory.support.DefaultListableBe
anFactory registerBeanDefinition
INFO: Overriding bean definition for bean
'org.apache.cxf.transport.http.policy.
HTTPServerAssertionBuilder': replacing [Root bean: class
[org.apache.cxf.transpo
rt.http.policy.HTTPServerAssertionBuilder]; scope=singleton; abstract=false;
laz
yInit=false; autowireCandidate=true; autowireMode=0; dependencyCheck=0;
factoryB
eanName=null; factoryMethodName=null; initMethodName=null;
destroyMethodName=nul
l; defined in URL
[jar:file:/C:/Documents%20and%20Settings/administrat÷r/.m2/rep
ository/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-transports-http-2.1.2
.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root bean: class
[org.apache
.cxf.transport.http.policy.HTTPServerAssertionBuilder]; scope=singleton;
abstrac
t=false; lazyInit=false; autowireCandidate=true; autowireMode=0;
dependencyCheck
=0; factoryBeanName=null; factoryMethodName=null; initMethodName=null;
destroyMe
thodName=null; defined in URL
[jar:file:/C:/Documents%20and%20Settings/administr
at÷r/.m2/repository/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-transport
s-http-2.1.2.jar!/META-INF/cxf/cxf-extension-http.fixml]]
2008-sep-09 15:18:17
org.springframework.beans.factory.support.DefaultListableBe
anFactory registerBeanDefinition
INFO: Overriding bean definition for bean
'org.apache.cxf.transport.http.policy.
NoOpPolicyInterceptorProvider': replacing [Root bean: class
[org.apache.cxf.tran
sport.http.policy.NoOpPolicyInterceptorProvider]; scope=singleton;
abstract=fals
e; lazyInit=false; autowireCandidate=true; autowireMode=0;
dependencyCheck=0; fa
ctoryBeanName=null; factoryMethodName=null; initMethodName=null;
destroyMethodNa
me=null; defined in URL
[jar:file:/C:/Documents%20and%20Settings/administrat÷r/.
m2/repository/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-transports-http
-2.1.2.jar!/META-INF/cxf/cxf-extension-http.fixml]] with [Root bean: class
[org.
apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider];
scope=singleton
; abstract=false; lazyInit=false; autowireCandidate=true; autowireMode=0;
depend
encyCheck=0; factoryBeanName=null; factoryMethodName=null;
initMethodName=null;
destroyMethodName=null; defined in URL
[jar:file:/C:/Documents%20and%20Settings/
administrat÷r/.m2/repository/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-
transports-http-2.1.2.jar!/META-INF/cxf/cxf-extension-http.fixml]]
2008-sep-09 15:18:17
org.springframework.beans.factory.support.DefaultListableBe
anFactory registerBeanDefinition
INFO: Overriding bean definition for bean
'org.apache.cxf.transport.http.ClientO
nlyHTTPTransportFactory': replacing [Root bean: class
[org.apache.cxf.transport.
http.ClientOnlyHTTPTransportFactory]; scope=singleton; abstract=false;
lazyInit=
true; autowireCandidate=true; autowireMode=0; dependencyCheck=0;
factoryBeanName
=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null;
defi
ned in URL
[jar:file:/C:/Documents%20and%20Settings/administrat÷r/.m2/repository
/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-transports-http-2.1.2.jar!/M
ETA-INF/cxf/cxf-extension-http.fixml]] with [Root bean: class [
org.apache.cxf.tr
ansport.http.ClientOnlyHTTPTransportFactory]; scope=singleton;
abstract=false; l
azyInit=true; autowireCandidate=true; autowireMode=0; dependencyCheck=0;
factory
BeanName=null; factoryMethodName=null; initMethodName=null;
destroyMethodName=nu
ll; defined in URL
[jar:file:/C:/Documents%20and%20Settings/administrat÷r/.m2/re
pository/org/apache/cxf/cxf-rt-transports-http/2.1.2/cxf-rt-transports-http-2.1.
2.jar!/META-INF/cxf/cxf-extension-http.fixml]]
2008-sep-09 15:18:17
org.springframework.context.support.AbstractApplicationCont
ext obtainFreshBeanFactory
INFO: Bean factory for application context
[org.apache.cxf.bus.spring.BusApplica
tionContext@1a422f6]:
org.springframework.beans.factory.support.DefaultListableB
eanFactory@fbbbc
2008-sep-09 15:18:17
org.springframework.context.support.AbstractApplicationCont
ext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not
eligible f
or getting processed by all BeanPostProcessors (for example: not eligible
for au
to-proxying)
2008-sep-09 15:18:17
org.springframework.context.support.AbstractApplicationCont
ext$BeanPostProcessorChecker postProcessAfterInitialization
INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not
eligible
 for getting processed by all BeanPostProcessors (for example: not eligible
for
auto-proxying)
2008-sep-09 15:18:17
org.springframework.beans.factory.support.DefaultListableBe
anFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in
org.springframework.beans.factory.support.
DefaultListableBeanFactory@fbbbc: defining beans
[cxf,org.apache.cxf.bus.spring.
BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProces
sor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.
ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.B
indingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apac
he.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apa
che.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.
cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.
apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCyc
leManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.end
point.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.c
xf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRe
gistry,org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache
.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBinding
Factory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.
soap.customEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apa
che.cxf.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addres
sing.policy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.pol
icy.UsingAddressingAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPCli
entAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuil
der,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apach
e.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.htt
p_jetty.JettyHTTPTransportFactory]; root of factory hierarchy
2008-sep-09 15:18:19
org.springframework.context.support.AbstractApplicationCont
ext doClose
INFO: Closing org.apache.cxf.bus.spring.BusApplicationContext@1a422f6:
display n
ame [org.apache.cxf.bus.spring.BusApplicationContext@1a422f6]; startup date
[Tue
 Sep 09 15:18:17 CEST 2008]; root of context hierarchy
2008-sep-09 15:18:19
org.springframework.beans.factory.support.DefaultSingletonB
eanRegistry destroySingletons
INFO: Destroying singletons in
org.springframework.beans.factory.support.Default
ListableBeanFactory@fbbbc: defining beans
[cxf,org.apache.cxf.bus.spring.BusWiri
ngBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org
.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.Resourc
eManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingF
actoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.
transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf
.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.bus
lifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.
cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManag
er,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.E
ndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.cata
log.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,
org.apache.cxf.jaxws.context.WebServiceContextResourceResolver,org.apache.cxf.ja
xws.context.WebServiceContextImpl,org.apache.cxf.binding.soap.SoapBindingFactory
,org.apache.cxf.binding.soap.SoapTransportFactory,
org.apache.cxf.binding.soap.cu
stomEditorConfigurer,org.apache.cxf.binding.xml.XMLBindingFactory,org.apache.cxf
.ws.addressing.policy.AddressingAssertionBuilder,org.apache.cxf.ws.addressing.po
licy.AddressingPolicyInterceptorProvider,org.apache.cxf.ws.addressing.policy.Usi
ngAddressingAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPClientAsse
rtionBuilder,org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder,org
.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider,org.apache.cxf.t
ransport.http.ClientOnlyHTTPTransportFactory,org.apache.cxf.transport.http_jetty
.JettyHTTPTransportFactory]; root of factory hierarchy
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
'xjc:
globalJavaType' to a(n) 'group' component.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Tue Sep 09 15:18:19 CEST 2008
[INFO] Final Memory: 13M/24M
[INFO]
------------------------------------------------------------------------


Best Regrds
Paolo

Re: Failed to create stubs from wsdl

Posted by paolo rito <pa...@gmail.com>.
Hi ! I fixed it , the problem was the firewall on my company, the solution
is to set

<extraarg>-dns</extraarg>
<extraarg>false</extraarg>

to you pom

Best Regrds

2008/9/9 Glen Mazza <gl...@gmail.com>

>
>
> paolo rito wrote:
> >
> > The following errror :
> > ------------------------------------------------------------------------
> > [INFO] org.xml.sax.SAXParseException: src-resolve: Cannot resolve the
> name
> > 'xjc:
> > globalJavaType' to a(n) 'group' component.
> > [INFO]
> > ------------------------------------------------------------------------
> >
>
> I think your error message is very clear (even if I don't know the
> answer)--I would google the first line of it to try to find out what the
> problem is.
>
> Glen
>
> --
> View this message in context:
> http://www.nabble.com/Failed-to-create-stubs-from-wsdl-tp19392616p19401182.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Re: Failed to create stubs from wsdl

Posted by Glen Mazza <gl...@gmail.com>.

paolo rito wrote:
> 
> The following errror :
> ------------------------------------------------------------------------
> [INFO] org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
> 'xjc:
> globalJavaType' to a(n) 'group' component.
> [INFO]
> ------------------------------------------------------------------------
> 

I think your error message is very clear (even if I don't know the
answer)--I would google the first line of it to try to find out what the
problem is. 

Glen

-- 
View this message in context: http://www.nabble.com/Failed-to-create-stubs-from-wsdl-tp19392616p19401182.html
Sent from the cxf-user mailing list archive at Nabble.com.