Andrea Patricelli created SYNCOPE-1857:
------------------------------------------
Summary: Unwanted Oracle persistence context enfornce when Oracle
driver is in classpath
Key: SYNCOPE-1857
URL: https://issues.apache.org/jira/browse/SYNCOPE-1857
Project: Syncope
Issue Type: Bug
Components: core
Affects Versions: 4.0.0-M0
Environment: Archetype embedded tomcat running on cargo and having
oracle driver as dependency like this
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc11</artifactId>
</dependency>
Reporter: Andrea Patricelli
Fix For: 4.0.0
If for some reason {{oracle.jdbc.OracleDriver }}is in the classpath, the
{{OraclePersistenceContext}} context is taken into account unless persistence
could not be on Oracle (on PostgreSQL for example).
This could lead to search errors.
A workaround is to explicitly exclude (when not needed) the Oracle persistence
context like this in core-*.properties:
{code:java}
spring.autoconfigure.exclude=org.apache.syncope.core.persistence.jpa.OraclePersistenceContext{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)