Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6022327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:50:32+00:00 2026-05-23T03:50:32+00:00

I have a strange problem. Using wsimport I generated als JAX-WS Code from a

  • 0

I have a strange problem.

  1. Using wsimport I generated als JAX-WS Code from a WSDL (in a dedicated eclipse java project). This works fine in JDK6 without any external dependencies (running in Eclipse)

  2. I have second project where I once used Apache CXF. If I copy the Code described in 1.) into this project, suddenly not the JDK executes the JAX-WS stuff (files I generated), but rather Apache CXF.

How can I prevent Apache CXF “running” the JAX-WS stuff. (Problem is, CXF Fails to run the code…). I also completely do not understand how Apache CXF discovers these classes. I did not register them anywere?

Thank you very much!
Markus

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:50:33+00:00Added an answer on May 23, 2026 at 3:50 am

    Apache CXF (cxf-rt-frontend-jaxws-*.jar to be precise) registers itself as a JAX-WS provider in the JVM. Inside the aforementioned JAR there is a file named: /META-INF/services/javax.xml.ws.spi.Provider with the following contents:

    org.apache.cxf.jaxws.spi.ProviderImpl
    

    If you now look at javax.xml.ws.spi.FactoryFinder#find method you will discover that JDK searches the CLASSPATH for the presence of javax.xml.ws.spi.Provider file and falls back to default Sun implementation if not available. So you have two options to force fallback:

    • either remove cxf-rt-frontend-jaxws-*.jar from CLASSPATH

    • or override javax.xml.ws.spi.Provider file provided by CXF to point to fallback location

    The second option is actually a bit easier. Simply create:

    /src/main/resources/META-INF/services/javax.xml.ws.spi.Provider
    

    file (assuming you are using Maven) with the following contents:

    org.apache.cxf.jaxws.spi.ProviderImpl
    

    That’s it, tested with javax.xml.ws.Endpoint#publish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well I have a strange problem while convert from unix timestamp to human representation
Everybody out there, I'm writing a c code which have a strange problem when
I have a strange problem regarding suggestion items for an AutocompleteView on Android 2.2.
I have a strange problem, I'm working on a Bluetooth camera we want to
I have a very strange problem with PHPUnit in Zend Studio. I have a
I have a very strange problem. I have an AsyncTask which appears to block
I have a very strange problem with a LINQ to Entities query with EF1.
I have a very strange problem with Apache ActiveMQ with Camel - I tried
I have a rather strange problem. I have a very simple application that reads
I'm currently trying to edit a website for a client which uses Adobe Contribute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.