Authentication « Connection « JPA Q&A

1. invalid datasource authentication

I am using 2 databases. One is mysql and c3p0 datasource is created for it in file. The contents of properties file are pasted below: hibernate.dialect=org.hibernate.dialect.MySQLDialect hibernate.connection.driver_class=com.mysql.jdbc.Driver hibernate.connection.username=root hibernate.connection.password=ENC(7Ba39G6WIPTVKJ1wpe8nSg==) hibernate.connection.url=jdbc:mysql://localhost:3306/xyz?autoreconnect=true&zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false Another is oracle and a datasource is created for it in weblogic. Configuration for using this datasource is in separate configuration file abc.configuration.xml file. I am creating a separate session ...

2. Oracle Authentication and connection