In PostgreSQL, I have created role, lets say "example_role" in pgAdmin3, and tried to login in command promt and on glassfish server, which works in both cases, but not when I try to start the server with IntelliJIDEA, in which case I get the following exception:
ApplicationServer was not connected before run configuration stop, reason: java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException:Exceptionwhile processing command: javax.security.auth.login.LoginException
And server gives me following output (Im using Maven for project packaging):
C:\glassfish4\glassfish\bin\asadmin.bat start-domain --debug example_domain[2014-04-0808:30:30,003]Artifact scrumkin-ear:ear:Serverisnot connected.Deployisnot available.Detected server admin port:4848Detected server http port:8080
Debuggingis enabled and the server is suspended. Please attach to the debugging port at:9009Attempting to start example_domain....Please look at the server log for more details.....Connected to the target VM, address:'127.0.0.1:9009', transport:'socket'
I have provided exact same username and password inside IntelliJIDEA for the specified glassfish server, so I don't know what else could be causing the error. In eclipse, for example, I have no issues!