META-INF/org.apache.openejb.resource.jdbc.cipher.PasswordCipher/mapped should in the classloader not the webapp so put it in src/main/resources
Side note: tomee.xml in META-INF is just not read (check with the logs), put it in src/main/tomee/conf. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-02-26 11:35 GMT+01:00 ihunter <[email protected]>: > Thanks for the reply, Romain. > > From your answer, I realized that I actually had to look here > <https://cwiki.apache.org/confluence/display/OPENEJBx30/DataSource+Password+Encryption> > for documentation because the official page > <http://tomee.apache.org/datasource-password-encryption.html> is missing > the crucial part of 'Hint' section (I'm using Chrome browser). The > confluence page misses the 'cipher' element in the path. > > Anyhow, I've adjusted the path and the issue persists. I've re-checked and I > can't see anything wrong. > > So, I've (hopefully :) ) uploaded a minimal maven project that illustrates > the issue. If you have time to look at it I would be very grateful. > > [BTW: I am running Windows 7, maven 3 and use CL: mvn clean install > tomee:run] > > When it works, debug print is issued (search for '!!!!') for the custom > cypher action. When it fails - exception is thrown. Look in > src/main/webapp/WEB-INF/resources.xml for the setting that determines if it > works or not. > > Many Thanks for any help > Ian Hunter > OpenEjbDemoProject.zip > <http://openejb.979440.n4.nabble.com/file/n4667990/OpenEjbDemoProject.zip> > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Is-this-right-for-how-encrypted-DB-passwords-are-to-work-tp4667980p4667990.html > Sent from the OpenEJB User mailing list archive at Nabble.com.
