oasp / oasp4j

The Open Application Standard Platform for Java
Apache License 2.0
60 stars 303 forks source link

oasp4j-starter-cxf-server-rest not working isolated #682

Open hohwille opened 5 years ago

hohwille commented 5 years ago

As it seems for some strange reason in CXF the oasp4j-starter-cxf-server-rest only works if additionally the dependency cxf-rt-ws-policy is present. This is silly and seems like a design bug in CXF as REST should not depend on ws-policy what is SOAP related. However with only oasp4j-starter-cxf-server-rest in place the app wont boot up unless cxf-rt-ws-policy is present. As oasp4j-starter-cxf-server-ws is indirectly depending on cxf-rt-ws-policy all works fine if both oasp4j-starter-cxf-server-rest and oasp4j-starter-cxf-server-ws are in place. However, IMHO the idea of our Opt-In strategy should be that each starter works self-contained what is currently not the case. Even though it appears odd, we IMHO need to add a dependency to cxf-rt-ws-policy in oasp4j-starter-cxf-server-rest.