]
Alessio Soldano updated JBWS-4046:
----------------------------------
Fix Version/s: jbossws-cxf-5.1.8.Final
jbossws-cxf-5.2.0.Final
PostConstruct method not invoked on web service handler
-------------------------------------------------------
Key: JBWS-4046
URL:
https://issues.jboss.org/browse/JBWS-4046
Project: JBoss Web Services
Issue Type: Bug
Components: jbossws-cxf
Affects Versions: jbossws-cxf-5.1.5.Final
Reporter: Bartosz Spyrko-Ĺmietanko
Assignee: Alessio Soldano
Fix For: jbossws-cxf-5.1.8.Final, jbossws-cxf-5.2.0.Final
Application defines two identical web service classes placed in different packages and
accessed via different paths (defined in web.xml). Both web services use the same handler
class.
However, the handler's PostConstruct method is only executed for invocations of one
of the two web services (expected: for invocations of both web services).
Note this is a regression between EAP 6.4.x and 7.0.x.
it seems this is caused by how the ServerBeanCustomizer matches endpoints. In EAP 6 this
was based on the bean's class, but in EAP 7 it uses the WSDL_SERVICE and WSDL_PORT of
the service. The problem happens when there are two endpoints with the same service
address, but different paths.
Potential solution:
https://github.com/jbossws/jbossws-cxf/compare/jbossws-cxf-5.1.x...spyrko...