Re: web.xml data-source definition

2018-01-30 Thread Romain Manni-Bucau
See it this way: the server role is to wire the properties he has (properties and username, password, ...). Now no server will know it for all possible datasources. Extreme case is you implement your own datasource and call your username property "login". In that case, tomee doesnt know about this

Re: web.xml data-source definition

2018-01-30 Thread gilbertoca
Romain, The DataSourceFactory or other class should do this, no?! Because the application data source is setup correctly in the web.xml file: > > > > > java:app/gaceDS > > > > org.postgresql.ds.PGSimpleDataSource > > > > jdbc:postgresql://srv-banco-dev:5433/te

Re: web.xml data-source definition

2018-01-30 Thread Romain Manni-Bucau
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 | Blog

Re: web.xml data-source definition

2018-01-30 Thread gilbertoca
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-properti

Re: Understanding these Errors and how to Resolve.

2018-01-30 Thread Svetlin Zarev
Hi, The JavaEE api jar is not in your class path. Unfortunately the javac compiler does not complain about missing jars put in the -cp parameter. You should make sure that this location is correct and the file exists: /cygdrive/e/EDU/EJB_EXP/Open_EJB/openejb-3.0/openejb-3.0/lib/javaee-5.0-1.jar

Understanding these Errors and how to Resolve.

2018-01-30 Thread Edward Urbanek
I am looking at your article ... http://openejb.apache.org/hello-world.html and I am getting this compilation error. Would you know how to resolve, please? Thanks, Ed javac -cp /cygdrive/e/EDU/EJB_EXP/Open_EJB/openejb-3.0/openejb-3.0/lib/javaee-5.0-1.jar -d . *.java Hello.java:3: error: pa