Hi,

I have written a custom implementation for passwordcipher. The class is
being invoked when I start the TomEE (No issue here).
The issue is when it is trying to execute the hibernate query it is throwing
the below exception.
Any reason why this is happening.When I remove the passwordcipher and give
the plain password in tomee.xml file it is working fine.
Below is resource configuration in tomee

<Resource id="dignesh/jdbc" type="DataSource">
                JdbcDriver org.postgresql.Driver
                JdbcUrl jdbc:postgresql://digneshhost:5432/otmm160
                Password +cMoghSpxUQ=
                PasswordCipher digneshEncryption
                ValidationQuery select 1
        </Resource>



08-Jun-2016 04:45:03.510 SEVERE [localhost-startStop-1]
org.apache.tomcat.jdbc.pool.ConnectionPool.init Unable to create initial
connections of pool.
 org.postgresql.util.PSQLException: FATAL: password authentication failed
for user "sa"
        at
org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:427)
        at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:203)
        at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65)
        at
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:156)
        at
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:35)
        at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
        at
org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:47)
        at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:30)
        at org.postgresql.Driver.makeConnection(Driver.java:414)
        at org.postgresql.Driver.connect(Driver.java:282)
        at
org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:307)
        at
org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:200)
        at
org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:708)
        at
org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:642)
        at 
org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:464)
        at
org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:141)
        at
org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEConnectionPool.<init>(TomEEDataSourceCreator.java:221)
        at
org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource.createPool(TomEEDataSourceCreator.java:154)
        at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:126)
        at
org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:85)
        at
org.apache.openejb.resource.jdbc.managed.local.ManagedConnection.newConnection(ManagedConnection.java:169)
        at
org.apache.openejb.resource.jdbc.managed.local.ManagedConnection.invoke(ManagedConnection.java:125)
        at com.sun.proxy.$Proxy217.getMetaData(Unknown Source)
        at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:119)
        at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:85)
        at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:184)
        at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:156)
        at
org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1825)
        at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1783) 



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/issue-when-configuring-password-ciphers-tp4678789.html
Sent from the TomEE Dev mailing list archive at Nabble.com.

Reply via email to