Skip to content

CXF-8156 - Include the matched JAX-RS resource operation in fault log… - #3608

Merged
coheigea merged 1 commit into
mainfrom
coheigea/CXF-8156
Oct 21, 2026
Merged

coheigea merged 1 commit into
mainfrom
coheigea/CXF-8156

Conversation

@coheigea

@coheigea coheigea commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

… messages

When a service throws an exception, CXF logs Application 'service name' has thrown exception. In a JAX-RS server with several resource classes and no serviceName set, that name is always the first resource class. So the log often points at the wrong resource, and it never says which method failed.

The service name has to stay fixed for the whole server, because the endpoint and JMX names also use it. So the fix leaves the name alone and adds the method that actually handled the request. JAX-RS already records that method on the request context (exchange); the logging code now reads it when no SOAP operation is available.

Before: Application '{ns}FirstResource' has thrown exception
After: Application '{ns}FirstResource#SecondResource#getItem' has thrown exception

@coheigea
coheigea merged commit 63ebc14 into main Oct 21, 2026
5 checks passed
@coheigea
coheigea deleted the coheigea/CXF-8156 branch October 21, 2026 05:27
coheigea added a commit that referenced this pull request Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants