[
https://issues.apache.org/jira/browse/SYNCOPE-1857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922070#comment-17922070
]
ASF subversion and git services commented on SYNCOPE-1857:
----------------------------------------------------------
Commit 386a1f0788b8820e5d6aa37d5836b1bee611958e in syncope's branch
refs/heads/master from Francesco Chicchiriccò
[ https://gitbox.apache.org/repos/asf?p=syncope.git;h=386a1f0788 ]
[SYNCOPE-1857] Do not select the internal storage db from classpath (#971)
> Unwanted Oracle persistence context enforce 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
> Assignee: Francesco Chicchiriccò
> Priority: Major
> 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)