Win a copy of AWS Security this week in the Cloud/Virtualization 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

sun-jaxws.xml descriptor file

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Ivan's notes and am trying to do the jax-ws implementations.
I am using Glassfish 2.1 in eclipse.
Anybody knows why I need to use thje sun-jaxws.xml file to get the service up and running?

The web.xml and the sun-web.xml do not seem to be enuf..

Thank you,
Angeline
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I also used Ivan's notes and found that it simply would not work without the sun-jaxws.xml deployment descriptor.
This file is Metro's (the web service stack) own deployment descriptor, as can be read on this page: https://metro.dev.java.net/guide/Deploying_Metro_endpoint.html
After having read this quote, I get the feeling it may be some kind of remains from the JAX-RPC days:


The JAX-WS stack expects the sun-jaxws.xml file rather than the jaxrpc-ri.xml file. Most of the contents in the new xml file is same as that of the older file. There is no need or equivalent to wsdeploy. So if you have used wsdeploy , it would generate the jaxrpc-ri-runtime.xml, use this file as it would have most of the information to populate the sun-jaxws.xml


A guess is that this deployment descriptor came into being before JSR109 was final, but this is just a wild guess.
Apart from this, I haven't come up with anything better. Digging around in the Metro code would help, but I am too lazy. :-)
Best wishes!
 
Angeline G Fernando
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ivan,

Thanks..I am starting with web services and wading thru it.. Your notes and Monson-Haefel are what I am working with for SCDJWS5..
Was wondering if I was going back to rpc by using this deployment file..
Thanks for clearing that up

Ivan Krizsan wrote:Hi!
I also used Ivan's notes and found that it simply would not work without the sun-jaxws.xml deployment descriptor.
This file is Metro's (the web service stack) own deployment descriptor, as can be read on this page: https://metro.dev.java.net/guide/Deploying_Metro_endpoint.html
After having read this quote, I get the feeling it may be some kind of remains from the JAX-RPC days:


The JAX-WS stack expects the sun-jaxws.xml file rather than the jaxrpc-ri.xml file. Most of the contents in the new xml file is same as that of the older file. There is no need or equivalent to wsdeploy. So if you have used wsdeploy , it would generate the jaxrpc-ri-runtime.xml, use this file as it would have most of the information to populate the sun-jaxws.xml


A guess is that this deployment descriptor came into being before JSR109 was final, but this is just a wild guess.
Apart from this, I haven't come up with anything better. Digging around in the Metro code would help, but I am too lazy. :-)
Best wishes!

 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic