Closed abhishekp1254 closed 9 months ago
Hi @abhishekp1254,
I found following section in your maven dependency tree:
[INFO] +- com.sap.cloud.s4hana.cloudplatform:scp-cf:jar:2.9.1:provided
[INFO] | +- com.sap.cloud.s4hana.cloudplatform:auditlog-scp-cf:jar:2.9.1:provided
[INFO] | | +- com.sap.cloud.s4hana.cloudplatform:core:jar:2.9.1:provided
[INFO] | | +- com.sap.cloud.s4hana.cloudplatform:auditlog:jar:2.9.1:provided
[INFO] | | \- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | +- com.sap.cloud.s4hana.cloudplatform:caching:jar:2.9.1:provided
[INFO] | | +- com.sap.cloud.s4hana.cloudplatform:security:jar:2.9.1:provided
[INFO] | | \- com.sap.cloud.s4hana.cloudplatform:tenant:jar:2.9.1:provided
[INFO] | +- com.sap.cloud.s4hana.cloudplatform:core-scp-cf:jar:2.9.1:provided
[INFO] | +- com.sap.cloud.s4hana.cloudplatform:connectivity-scp-cf:jar:2.9.1:provided
[INFO] | | +- com.sap.cloud.s4hana.cloudplatform:connectivity:jar:2.9.1:provided
[INFO] | | | \- com.sap.cloud.s4hana.quality:common:jar:2.9.1:provided
[INFO] | | +- com.sap.cloud.s4hana.frameworks:hystrix:jar:2.9.1:provided
[INFO] | | | +- commons-configuration:commons-configuration:jar:1.10:provided
[INFO] | | | | \- commons-lang:commons-lang:jar:2.6:provided
[INFO] | | | \- com.netflix.archaius:archaius-core:jar:0.7.6:provided
[INFO] | | \- com.netflix.hystrix:hystrix-core:jar:1.5.18:provided
[INFO] | | +- io.reactivex:rxjava:jar:1.2.0:provided
[INFO] | | \- org.hdrhistogram:HdrHistogram:jar:2.1.9:provided
[INFO] | +- com.sap.cloud.s4hana.cloudplatform:security-scp-cf:jar:2.9.1:provided
[INFO] | +- com.sap.cloud.s4hana.cloudplatform:servlet:jar:2.9.1:provided
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.16.1:compile
[INFO] | +- com.sap.cloud.s4hana.cloudplatform:tenant-scp-cf:jar:2.9.1:provided
[INFO] | \- com.sap.cloud.s4hana.cloudplatform:metering:jar:2.9.1:provided
This looks VERY wrong: These modules (with group id com.sap.cloud.s4hana
) are from the Cloud SDK major version 2 and (most certainly) produce class name clashes.
These are declared explicitly in your pom.xml
but shouldn't be used anywhere in your project.
So I suggest to get rid of these dependencies entirely.
Best regards, Johannes
Thank you @Johannes-Schneider , it is working fine after those dependencies are removed. Thank you again. Closing this issue.
Issue Description
While Spring Security with xsuaa instance , it is unable to get the tenant information.
Below is the code of Security Configuration:
Impact / Priority
We are migrating our app from tomee 7 with java 8 to spring boot and java 17.
Affected development phase: e.g. Getting Started, Development, Release, Production
Impact: Blocked
Error Message
Application Logs
logs.txt
Project Details
(https://github.com/abhishekp1254/migration/tree/main)
SDK Version: 5.3.0
Link to GitHub repo:
Project type, for example:
Platform:
Checklist