cxf path context

Latest response

I want to change the by default cxf context on cxf endpoints to something more meaningful for my company. I found the following solution on various places:

"Change the 'cxf/' path using the following configuration:

This can be done by creating [jboss-fuse]/etc/org.apache.cxf.osgi.cfg and setting the property org.apache.cxf.servlet.context=/MyPath"

Also I found how to do it from fuse console editing config.

but when implemented it, the path does not change. I even stopped fuse and all containers and started them again. I also redeployed the profile with the cxf endpoint y want to change the path.

I am using fuse 6.2.1 with latest patch.

Did someone solved it?

Regards,

Responses

I am a tech writer on the Fuse project. Currently, we do not document how to do this in our product docs. But I checked the latest source code at the upstream Apache CXF project and the method you are using does appear to be the correct approach for setting the servlet context (see the source code at [1]). There must be something not-so-obvious that is causing this to malfunction in the context of your project. I recommend that you open a case with Red Hat support and send them a sample of your project, so they can investigate in more detail.

Regards, Fintan Bolton

[1] https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=rt/transports/http/src/main/java/org/apache/cxf/transport/http/osgi/ServletExporter.java;h=867dca14efc498be6fcb75960c7c25a92898c4ca;hb=HEAD

i am using 6.2.1 and i am having the same problem. (works for standalone karaf but not in fabric child containers)

i found a similar problem here https://access.redhat.com/solutions/1161243

i think the config file is somehow not refreshing

i am going to test with 6.1 or 6.3

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.