[GitHub] siepkes opened a new pull request #133: Added Spring Security imports for cglib

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] siepkes opened a new pull request #133: Added Spring Security imports for cglib

GitBox
siepkes opened a new pull request #133: Added Spring Security imports for cglib
URL: https://github.com/apache/servicemix-bundles/pull/133
 
 
   When using the Reactive support of Spring Security there are annotation classes which have apparantly been bytecode enhanced and reference these classes. That's also why they aren't picked up by BND with wildcards.
   
   This fixes the following class not found exceptions I ran into:
   
   ```
   -----8<------ CUT FOR BREVITY ----8<-----------------
   Caused by: java.lang.NoClassDefFoundError: org/springframework/cglib/core/ReflectUtils
    at org.springframework.security.config.annotation.method.configuration.ReactiveMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$c4d3d84f.CGLIB$STATICHOOK1(<generated>) ~[?:?]
    at org.springframework.security.config.annotation.method.configuration.ReactiveMethodSecurityConfiguration$$EnhancerBySpringCGLIB$$c4d3d84f.<clinit>(<generated>) ~[?:?]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_191]
   -----8<------ CUT FOR BREVITY ----8<-----------------
   Caused by: java.lang.ClassNotFoundException: org.springframework.cglib.core.ReflectUtils not found by org.apache.servicemix.bundles.spring-security-config [387]
   -----8<------ CUT FOR BREVITY ----8<-----------------
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[hidden email]


With regards,
Apache Git Services