When calling the 'deploy' goal using the below plugin configuration a new domain is created with a DataSource and the application is deployed. I can successfully ping the DataSource in the console and I can access data from the database on unsecured pages. However, if I try to use the JDBC realm which uses this DataSource I always get an invalid login. In the console if I manually delete the JDBC Resource and add it again the login works. When doing a compare on the working domain.xml and non working domain.xml this line is missing from the non working one:
If I manually add this line and restart the domain it works. Below is my configuration. Please email or respond to this issue if you need any more details.
When calling the 'deploy' goal using the below plugin configuration a new domain is created with a DataSource and the application is deployed. I can successfully ping the DataSource in the console and I can access data from the database on unsecured pages. However, if I try to use the JDBC realm which uses this DataSource I always get an invalid login. In the console if I manually delete the JDBC Resource and add it again the login works. When doing a compare on the working domain.xml and non working domain.xml this line is missing from the non working one:
If I manually add this line and restart the domain it works. Below is my configuration. Please email or respond to this issue if you need any more details.
Plugin Configuration:
glassfish-resources.xml
Environment
Windows 7 / JDK 1.7 / Glassfish-3.1.2.2 / Plugin version 2.1
Affected Versions
[current]