cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vespa, Anthony J" <ajve...@cbs.com>
Subject RE: 2.0.3 Breaking my services in new and awful ways compared to 2.0.2
Date Mon, 05 Nov 2007 21:09:47 GMT
The issue is occurring within soap ui 176. As below:

Mon Nov 05 15:57:31 EST 2007:INFO:Loading schema types from
[http://dws2600:8888/services/sBoardService?wsdl]
Mon Nov 05 15:57:31 EST 2007:INFO:Getting schema
http://dws2600.bos.cbsig.net:8888/services/sBoardService?wsdl
Mon Nov 05 15:57:31 EST 2007:INFO:schema for
[http://www.w3.org/2001/XMLSchema] contained [{}] namespaces
Mon Nov 05 15:57:31 EST 2007:INFO:schema for [http://soap.ws.test.com/]
contained [{}] namespaces
Mon Nov 05 15:57:31 EST 2007:ERROR:An error occured
[http://dws2600:8888/services/sBoardService?wsdl:0: error: src-resolve:
type 'ArrayOfAnyType@http://www.w3.org/2001/XMLSchema' not found.], see
error log for details
Mon Nov 05 15:57:31 EST 2007:WARN:Error:
http://dws2600:8888/services/sBoardService?wsdl:0: error: src-resolve:
type 'ArrayOfAnyType@http://www.w3.org/2001/XMLSchema' not found.
Mon Nov 05 15:57:31 EST 2007:ERROR:Loading of definition failed for
[http://dws2600:8888/services/sBoardService?wsdl];
com.eviware.soapui.impl.wsdl.support.xsd.SchemaException: Error loading
schema types
Mon Nov 05 15:57:31 EST 2007:ERROR:An error occured [Error loading
schema types], see error log for details


Now, if I use my front end client I can get some kinda of response back
in XML, but it has replaced my
typed generic collection as anytype, as below.  Basically I have three
objects I want inside my message object - and I'd like 1) for it to work
in SoapUI for testing and 2) I'd like the names to be something more
reasonable, not just anyType

- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
- <soap:Body>
- <ns1:getMessagesForMessageBoardResponse
xmlns:ns1="http://soap.ws.bos.test.com/">
- <ns1:getMessagesForMessageBoardResult>
- <ns1:response>
- <ns2:anyType xmlns:ns2="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://www.w3.org/2001/XMLSchema-instance"
ns3:type="ns1:wsMessage">
- <ns1:authorCache>
  <ns1:domain>The Dark Side</ns1:domain> 
  <ns1:externalIdentityId>1</ns1:externalIdentityId> 
  <ns1:motto>Let me tell you a story</ns1:motto> 
  <ns1:screenName>Darth Vespa</ns1:screenName> 
  </ns1:authorCache>
  <ns1:createDate>2007-10-08T12:35:58-04:00</ns1:createDate> 
  <ns1:messageBoardId>1</ns1:messageBoardId> 
  <ns1:messageId>1</ns1:messageId> 
  <ns1:messageText>... standing outside a bar on a rainy day, when all
of sudden the weirdest thing happened.</ns1:messageText> 
  <ns1:parentComment ns3:nil="true" /> 
  <ns1:title>So there we were ...</ns1:title> 
  </ns2:anyType>
- <ns2:anyType xmlns:ns2="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://www.w3.org/2001/XMLSchema-instance"
ns3:type="ns1:wsMessage">
- <ns1:authorCache>
  <ns1:domain>Evil Empire</ns1:domain> 
  <ns1:externalIdentityId>2</ns1:externalIdentityId> 
  <ns1:motto>Death is not too good for my enemies</ns1:motto> 
  <ns1:screenName>Evil Overlord</ns1:screenName> 
  </ns1:authorCache>
  <ns1:createDate>2007-10-08T12:35:58-04:00</ns1:createDate> 
  <ns1:messageBoardId>1</ns1:messageBoardId> 
  <ns1:messageId>2</ns1:messageId> 
  <ns1:messageText>I hope this isn't another 10' tall chicken
sighting.</ns1:messageText> 
  <ns1:parentComment>1</ns1:parentComment> 
  <ns1:title>RE: So there we were ...</ns1:title> 
  </ns2:anyType>
- <ns2:anyType xmlns:ns2="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://www.w3.org/2001/XMLSchema-instance"
ns3:type="ns1:wsMessage">
- <ns1:authorCache>
  <ns1:domain>Galactic Librarians</ns1:domain> 
  <ns1:externalIdentityId>3</ns1:externalIdentityId> 
  <ns1:motto>I deny your reality</ns1:motto> 
  <ns1:screenName>Episarch</ns1:screenName> 
  </ns1:authorCache>
  <ns1:createDate>2007-10-08T12:35:58-04:00</ns1:createDate> 
  <ns1:messageBoardId>1</ns1:messageBoardId> 
  <ns1:messageId>3</ns1:messageId> 
  <ns1:messageText>Couldn't be stranger than my life.</ns1:messageText> 
  <ns1:parentComment>1</ns1:parentComment> 
  <ns1:title>RE: So there we were ...</ns1:title> 
  </ns2:anyType>
- <ns2:anyType xmlns:ns2="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://www.w3.org/2001/XMLSchema-instance"
ns3:type="ns1:wsMessage">
- <ns1:authorCache>
  <ns1:domain>The Dark Side</ns1:domain> 
  <ns1:externalIdentityId>1</ns1:externalIdentityId> 
  <ns1:motto>Let me tell you a story</ns1:motto> 
  <ns1:screenName>Darth Vespa</ns1:screenName> 
  </ns1:authorCache>
  <ns1:createDate>2007-10-08T12:35:58-04:00</ns1:createDate> 
  <ns1:messageBoardId>1</ns1:messageBoardId> 
  <ns1:messageId>5</ns1:messageId> 
  <ns1:messageText>Which reminds me of another time</ns1:messageText> 
  <ns1:parentComment>1</ns1:parentComment> 
  <ns1:title>RE: So there we were ...</ns1:title> 
  </ns2:anyType>
- <ns2:anyType xmlns:ns2="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://www.w3.org/2001/XMLSchema-instance"
ns3:type="ns1:wsMessage">
- <ns1:authorCache>
  <ns1:domain>Gargleblasters.com</ns1:domain> 
  <ns1:externalIdentityId>4</ns1:externalIdentityId> 
  <ns1:motto>Oh no, not again!</ns1:motto> 
  <ns1:screenName>Petunia</ns1:screenName> 
  </ns1:authorCache>
  <ns1:createDate>2007-10-08T12:35:58-04:00</ns1:createDate> 
  <ns1:messageBoardId>1</ns1:messageBoardId> 
  <ns1:messageId>6</ns1:messageId> 
  <ns1:messageText>Hello? Anyone out there?</ns1:messageText> 
  <ns1:parentComment ns3:nil="true" /> 
  <ns1:title>Is this thing on?</ns1:title> 
  </ns2:anyType>
- <ns2:anyType xmlns:ns2="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://www.w3.org/2001/XMLSchema-instance"
ns3:type="ns1:wsMessage">
- <ns1:authorCache>
  <ns1:domain>Galactic Librarians</ns1:domain> 
  <ns1:externalIdentityId>3</ns1:externalIdentityId> 
  <ns1:motto>I deny your reality</ns1:motto> 
  <ns1:screenName>Episarch</ns1:screenName> 
  </ns1:authorCache>
  <ns1:createDate>2007-10-08T12:35:58-04:00</ns1:createDate> 
  <ns1:messageBoardId>1</ns1:messageBoardId> 
  <ns1:messageId>7</ns1:messageId> 
  <ns1:messageText>No</ns1:messageText> 
  <ns1:parentComment>6</ns1:parentComment> 
  <ns1:title>Is this thing on?</ns1:title> 
  </ns2:anyType>
  </ns1:response>
- <ns1:resultStatus>
  <ns1:errorCode xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance"
ns2:nil="true" /> 
  <ns1:exceptionMessage
xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:nil="true" /> 
  <ns1:externalMessage
xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance" ns2:nil="true" /> 
  <ns1:status>success</ns1:status> 
  </ns1:resultStatus>
- <ns1:session>
  <ns1:sessionId xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance"
ns2:nil="true" /> 
  <ns1:viewerId xmlns:ns2="http://www.w3.org/2001/XMLSchema-instance"
ns2:nil="true" /> 
  </ns1:session>
  </ns1:getMessagesForMessageBoardResult>
  </ns1:getMessagesForMessageBoardResponse>
  </soap:Body>
  </soap:Envelope>

-----Original Message-----
From: Daniel Kulp [mailto:dkulp@apache.org] 
Sent: Monday, November 05, 2007 3:54 PM
To: Vespa, Anthony J
Cc: cxf-user@incubator.apache.org
Subject: Re: 2.0.3 Breaking my services in new and awful ways compared
to 2.0.2


You have a stack trace?

Dan


On Monday 05 November 2007, Vespa, Anthony J wrote:
> Dan,
>
> Thanks very much, I thought I had deleted it but I guess not.
>
> Any thoughts on why I might be getting this other schema error when I
> try to make a request to a function that
> Returns a Java object that houses a Java.util.collection that is
> generic - eg defined as Collection<T> c?
>
> src-resolve: type 'ArrayOfAnyType@http://www.w3.org/2001/XMLSchema'
> not found.
>
> -----Original Message-----
> From: Daniel Kulp [mailto:dkulp@apache.org]
> Sent: Monday, November 05, 2007 3:47 PM
> To: cxf-user@incubator.apache.org
> Cc: Vespa, Anthony J
> Subject: Re: 2.0.3 Breaking my services in new and awful ways compared
> to 2.0.2
>
>
>
> Anthony,
>
> Check the version of XmlSchema jar that is found.   Due to a BUNCH of
> bugs in 1.2, we had to upgrade to 1.3.2.    The error you show below
> suggests that 1.2 was picked up on the classpath somehow.
>
> Dan
>
> On Monday 05 November 2007, Vespa, Anthony J wrote:
> > Hello,
> >
> > I'm trying to use last night's 2.0.3 snapshot to see if it resolves
> > an issue I'm having with collections, but I am getting a massive
> > exception when my app reloads - it's some kinda of no such method
> > error.
> >
> >
> >
> > Nov 5, 2007 2:58:04 PM org.apache.catalina.core.StandardContext
> > listenerStart
> > SEVERE: Exception sending context initialized event to listener
> > instance of class
> > org.springframework.web.context.ContextLoaderListener
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'sBoardService': Invocation of init method
> > failed; nested exception is java.lang.NoSuchMethodError:
> > org.apache.ws.commons.schema.XmlSchemaCollection.getExtReg()Lorg/apa
> >ch e/ ws/commons/schema/extensions/ExtensionRegistry;
> > Caused by: java.lang.NoSuchMethodError:
> > org.apache.ws.commons.schema.XmlSchemaCollection.getExtReg()Lorg/apa
> >ch e/ ws/commons/schema/extensions/ExtensionRegistry;
> >         at
> > org.apache.cxf.databinding.source.AbstractDataBinding.addSchemaDocum
> >en t( AbstractDataBinding.java:72)
> >         at
> > org.apache.cxf.aegis.databinding.AegisDatabinding.createSchemas(Aegi
> >sD at abinding.java:376)
> >         at
> > org.apache.cxf.aegis.databinding.AegisDatabinding.initialize(AegisDa
> >ta bi nding.java:171)
> >         at
> > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildSer
> >vi ce FromClass(ReflectionServiceFactoryBean.java:293)
> >         at
> > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initiali
> >ze Se rviceModel(ReflectionServiceFactoryBean.java:333)
> >         at
> > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(R
> >ef le ctionServiceFactoryBean.java:151)
> >         at
> > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsSer
> >vi ce FactoryBean.java:93)
> >         at
> > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpo
> >in t( AbstractWSDLBasedEndpointFactory.java:74)
> >         at
> > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.j
> >av a: 108)
> >         at
> > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactor
> >yB ea n.java:147)
> >         at
> > org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:288)
> >         at
> > org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:228)
> >         at
> > org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:179)
> >         at
> > org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:341)
> >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method) at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
> >.j av a:39)
> >         at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
> >ss or Impl.java:25)
> >         at java.lang.reflect.Method.invoke(Method.java:585)
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBea
> >nF ac
> > tory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:
> >12 14 )
> >         at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBea
> >nF ac
> > tory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1179)
> > at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBea
> >nF ac
> > tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBea
> >nF ac tory.createBean(AbstractAutowireCapableBeanFactory.java:427) at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getO
> >bj ec t(AbstractBeanFactory.java:251)
> >         at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegist
> >ry .g etSingleton(DefaultSingletonBeanRegistry.java:144)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBea
> >n( Ab stractBeanFactory.java:248)
> >         at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBea
> >n( Ab stractBeanFactory.java:160)
> >         at
> > org.springframework.beans.factory.support.DefaultListableBeanFactory
> >.p re InstantiateSingletons(DefaultListableBeanFactory.java:279) at
> > org.springframework.context.support.AbstractApplicationContext.refre
> >sh (A bstractApplicationContext.java:360)
> >         at
> > org.springframework.web.context.ContextLoader.createWebApplicationCo
> >nt ex t(ContextLoader.java:241)
> >         at
> > org.springframework.web.context.ContextLoader.initWebApplicationCont
> >ex t( ContextLoader.java:184)
> >         at
> > org.springframework.web.context.ContextLoaderListener.contextInitial
> >iz ed (ContextLoaderListener.java:49)
> >         at
> > org.apache.catalina.core.StandardContext.listenerStart(StandardConte
> >xt .j ava:3830)
> >         at
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:
> >43 37 )
> >         at
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
> >e. ja va:791)
> >         at
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7
> >71 ) at
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525
> >) at
> > org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825
> >) at
> > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:71
> >4) at
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:49
> >0) at
> > org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
> >         at
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
> >a: 29 3)
> >         at
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
> >le Su pport.java:117)
> >         at
> > org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBa
> >se .j ava:1337)
> >         at
> > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
> >pr oc essChildren(ContainerBase.java:1601)
> >         at
> > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
> >pr oc essChildren(ContainerBase.java:1610)
> >         at
> > org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
> >ru n( ContainerBase.java:1590)
> >         at java.lang.Thread.run(Thread.java:595)
> > Nov 5, 2007 2:58:04 PM org.apache.catalina.core.ApplicationContext
> > log INFO: Closing Spring root WebApplicationContext



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Mime
View raw message