Skip to content

(some work required) Karaf Tutorial Part 4 - CXF Services in OSGi #39

Description

Hi,
I was working with the CXF tutorials and noticed a few strange things: I'm reporting them below.

1) maven clean install only builds the SOAP one

corrado@powerdesk2:~/karaf/SRC/Karaf-Tutorial/cxf$ mj8 clean install [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] personservice-parent [INFO] personservice-model [INFO] personservice-server [INFO] personservice-proxy [INFO] personservice-webui [INFO] karaf-tutorial-cxf [INFO] ...

that's because only that module is listed in the CXF pom:

<modules> <module>personservice</module> </modules>

it should be like this, right?

<modules> <module>personservice</module> <module>personservice-rest</module> </modules>

2) there is a "proxy-rest" module in both the SOAP and the REST projects:

screenshot from 2017-10-10 08-37-31

also notice:

  • the contents (pom and blueprint) are the same
  • neither of the two "proxy-rest" modules is used:

this is the SOAP pom:
<modules> <module>model</module> <module>server</module> <module>proxy</module> <module>webui</module> </modules>

this is the REST POM:
<modules> <module>model</module> <module>server</module> <module>webui</module> </modules>

the latter should be like this, right?

<modules> <module>model</module> <module>server</module> <module>proxy-rest</module> <module>webui</module> </modules>

I mean, at least for getting the REST one building correctly.

Indeed I could run the SOAP one OK, while the REST one failed:
personservice-rest - deploy-failure.txt

3) the CXF tutorial should be refactored

why having two different models, one for SOAP, one for REST?

screenshot from 2017-10-10 08-47-01

it is ok to have two services, but they shall use same "Person" model, right?
screenshot from 2017-10-10 08-48-51

the solution for this should be having a single "model" module at the "main CXF" level, right?

Let me know and I'll try to fix/refactor this

Thx
Corrado

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions