I deploy .har which uses datasource which in turn use security domain. Everything is fine except the fact when Hibernate initialized it throws an exception
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Null user or password not supported in THIN driver)
It happens because LoginContext here is not set what's natural. And actually it doesn't hurt much. But anyway I would like to avoid this. How to do this?