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 6132389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:05:48+00:00 2026-05-23T17:05:48+00:00

CXF relies on a bunch of libs that are in java 6 by default,

  • 0

CXF relies on a bunch of libs that are in java 6 by default, adding them to a java 5 project is a bit of a pain.

Is there an easy dependency or 2 to add to get CXF to work in Java 5?

Thanks.

  • 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-23T17:05:49+00:00Added an answer on May 23, 2026 at 5:05 pm

    This is what finally worked for me, and has the added bonus that it is OSGi compliant as well:

        <dependency>
            <groupId>org.apache.cxf.dosgi</groupId>
            <artifactId>cxf-dosgi-ri-singlebundle-distribution</artifactId>
            <version>1.2</version>
            <exclusions>
                <exclusion>
                    <artifactId>cxf-dosgi-ri-discovery-distributed-zookeeper-wrapper</artifactId>
                    <groupId>org.apache.cxf.dosgi</groupId>
                </exclusion>
            </exclusions>
        </dependency>
    

    EDIT #1

    A word of caution (learned the hard way), this dependency has it’s own version of several libraries including Xerces. If you are using something else that has one of these on the path (for example: dom4j -> jaxen -> xerces) you may end up getting weird “AbstractMethodErrors” because you essentially have two copies of the same class on your path 🙁

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

Sidebar

Related Questions

I've used Apache CXF to expose about ten java classes as web services. I've
I am having a hard time getting cxf to validate an xml request that
I run a simple CXF maven project http://cxf.apache.org/docs/using-cxf-with-maven.html , and get error below [INFO]
Using Grails and CXF, I have published a small web service that looks like
Is AXIS or CXF necessary for Java web services? Can it be all done
I have cxf webservice and I want to call that by camel. could anybody
I recently migrated my web services from Axis to CXF (2.1). It appears that
I have a simple CXF RS bundle deployed in Fuse 4.2 that works fine
is there a way to access soap headers within a cxf service class in
I have a CXF web service that I would to secure with a x509

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.