gnodet opened a new pull request, #2961: URL: https://github.com/apache/cxf/pull/2961
## Summary - When `@HandlerChain` is on the SEI (interface) and the implementation class is in a different package, the handler chain XML file could not be found - Root cause: `resolveHandlerChainFile()` was called with the implementation class (`clz`) instead of the declaring class (`hcAnn.getDeclaringClass()`) - One-line fix: use `hcAnn.getDeclaringClass()` for resource resolution so the handler XML is found relative to the SEI's package - Supersedes PR #79 (closed as stale after 11 years without a test case) ## Test plan - [x] Added cross-package test: SEI with `@HandlerChain` in `handler.sei` package, impl in `handler` package - [x] Verified test fails without fix: `WebServiceException: Could not find the handler configuration file ./sei-handlers.xml` - [x] Verified test passes with fix - [x] All 5 existing handler chain builder tests still pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
