I can insert geometry data into database from my code, but I can only query the data using an SQL editor, like PGAdmin III. I can\'t retrieve geometry data back to my code.
This does not only apply to Wildfly: I was able to fix the same issue on Tomcat by moving the PostgreSQL jar from [tomcat]\webapps[WebApp]\WEB-INF\lib to [tomcat]\lib.
btw: In my case, the problem only appeared on the customer's system; our development server was OK - there was no noticeable difference between both configurations.