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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:31:11+00:00 2026-05-28T13:31:11+00:00

I have just started learning CXF. I made a maven archetype project through eclipse.

  • 0

I have just started learning CXF. I made a maven archetype project through eclipse. When I run the maven build and deployed in the JBoss its working fine.

@WebService
public interface HelloWorld {
    String sayHi(String text);
}

@WebService(endpointInterface = "foo.HelloWorld" )

    public class HelloWorldImpl implements HelloWorld {

        public String sayHi(String text) {

            return new "Hello"+text;
        }
    }

Then I created an Employee class, with name and salary as its field with getter and setters. And I just changed the return type of HelloWorld sayHi’s method to Employee and I returned an Employee Object from HelloWorldimpl sayHi Method.

Then also it is working fine (I mean I checked it using SOAP UI, after modifying the code I am getting an Employee xml)

Where is this transformation code written.

Also I didn’t find cxf.xml and cxf-servlet.xml in the code: (Where are these xml kept in the code)

<import resource="classpath:META-INF/cxf/cxf.xml" />
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

Please help me to understand this.

@ŁukaszBachman I got the XML files in the CXF*.jar file.

What should I do to make an extension in this project. Do I need to add the beans in the xml files?

  • 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-28T13:31:12+00:00Added an answer on May 28, 2026 at 1:31 pm

    you are obviously using CXF with Spring to import resources defined on CLASSPATH. This means, that Spring will try to import any kind of beans defined in provided two files (cxf.xml and cxf-servlet.xml).

    Classloader will load all libraries defined for your web application (/WEB-INF/lib directory) when servlet container starts it. Then it will start Spring framework (defined in /WEB-INF/web.xml). When spring is loaded it will try to create all Beans defined for your webapp, so it will analyse your own application context just to find out, that it also needs to import some resource located in META-INF/cxf/cxf.xml on classpath. So it will look for it, once again, in all libraries located in /WEB-INF/lib.

    That is why you don’t see those two files in your project. They are provided by CXF library (cxf.jar). You might want to check it out yourself, just open cxf.jar as a regular ZIP file and browse to /META-INF.

    Final remark, those two files are provided by CXF framework, so you probably don’t need to modify it. You might just have a look at it, if it will help you out to understand CXF internals.

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

Sidebar

Related Questions

I have just started learning Erlang and am trying out some Project Euler problems
I have just started learning to write apps for android using Eclipse. Where can
I have just started learning Rails and I'm trying to build a post/like type
I have just started learning Android and thought of a simple project to help
I have just started learning MVVM. I've made the application from scratch by following
I have just started learning Jquery and am new to writing javascript (I am
I have just started learning MVVM and having a dilemna. If I have a
I have just started learning NHibernate. Over the past few months I have been
I have just started writing my own JavaScript Framework (just for the learning experience),
I have just started learning Lucene and would like to use it for indexing

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.