Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Error deploying JAX-WS Service

 
Ranch Hand
Posts: 391
1
MySQL Database PHP Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why below service gives error while deployment, I am using endpoint publisher to deploy it. I understand that method overloading will not work for web service , so I have to provide a different name for each web service operation, which I have done below. But why its still not working



I get below error


Exception in thread "main" javax.xml.ws.WebServiceException: class boot.jaxws.Ge
tWeather do not have a property of the name arg0
at com.sun.xml.internal.ws.server.sei.EndpointArgumentsBuilder$DocLit.<i
nit>(Unknown Source)
at com.sun.xml.internal.ws.server.sei.TieHandler.createArgumentsBuilder(
Unknown Source)
at com.sun.xml.internal.ws.server.sei.TieHandler.<init>(Unknown Source)
at com.sun.xml.internal.ws.db.DatabindingImpl.<init>(Unknown Source)
at com.sun.xml.internal.ws.db.DatabindingProviderImpl.create(Unknown Sou
rce)
at com.sun.xml.internal.ws.db.DatabindingProviderImpl.create(Unknown Sou
rce)
at com.sun.xml.internal.ws.db.DatabindingFactoryImpl.createRuntime(Unkno
wn Source)
at com.sun.xml.internal.ws.server.EndpointFactory.createSEIModel(Unknown
Source)
at com.sun.xml.internal.ws.server.EndpointFactory.create(Unknown Source)

at com.sun.xml.internal.ws.server.EndpointFactory.createEndpoint(Unknown
Source)
at com.sun.xml.internal.ws.api.server.WSEndpoint.create(Unknown Source)
at com.sun.xml.internal.ws.api.server.WSEndpoint.create(Unknown Source)
at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.createEndp
oint(Unknown Source)
at com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(Un
known Source)
at com.sun.xml.internal.ws.spi.ProviderImpl.createAndPublishEndpoint(Unk
nown Source)
at javax.xml.ws.Endpoint.publish(Unknown Source)
at boot.Publisher.main(Publisher.java:8)
Caused by: javax.xml.bind.JAXBException: arg0 is not a valid property on class b
oot.jaxws.GetWeather
at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getElementProper
tyAccessor(Unknown Source)
at com.sun.xml.internal.ws.db.glassfish.JAXBRIContextWrapper.getElementP
ropertyAccessor(Unknown Source)
... 17 more

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Are you using SEI? If yes, how are you planning to create a client to test it?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic