if you check the javadoc of your connection you will see that the username is set with setUser and not setUsername so you need to set the property "user" instead of using the built-in "username" property.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> 2018-01-30 14:27 GMT+01:00 gilbertoca <gilbert...@gmail.com>: > Romain Manni-Bucau wrote > > Did you set properties properly? > > Yes > > [1] https://www.dropbox.com/s/4godaf0hu0234b9/web-xml-data-source.png?dl=0 > [2] > https://www.dropbox.com/s/rw0ttl950yzxxb7/DataSourceFactory-classname. > png?dl=0 > [3] > https://www.dropbox.com/s/nghczwady03ym2v/DataSourceFactory-ds- > properties.png?dl=0 > > > > > > -- > Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users- > f979441.html >