IntelliJIDEA LoginException

时间:2014-04-08 18:46:07

标签: java postgresql maven exception glassfish

在PostgreSQL中,我创建了角色,让我们说" example_role"在pgAdmin3中,尝试登录命令promt和glassfish服务器,这在两种情况下均有效,但在我尝试使用IntelliJIDEA启动服务器时却没有,在这种情况下我得到以下异常:

        Application Server was not connected before run configuration stop, reason:
        java.io.IOException: com.sun.enterprise.admin.remote.RemoteFailureException: Exception while processing command: javax.security.auth.login.LoginException

服务器给我以下输出(我使用Maven进行项目打包):

C:\glassfish4\glassfish\bin\asadmin.bat start-domain --debug example_domain
[2014-04-08 08:30:30,003] Artifact scrumkin-ear:ear: Server is not connected. Deploy is not available.
Detected server admin port: 4848
Detected server http port: 8080
Debugging is enabled and the server is suspended.  Please attach to the debugging port at: 9009
Attempting 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'

我在IntelliJIDEA中为指定的glassfish服务器提供了完全相同的用户名和密码,因此我不知道还有什么可能导致错误。例如,在eclipse中,我没有任何问题!

1 个答案:

答案 0 :(得分:0)

网址错误,默认保留,适用于" postgres"用户,也在其他角色/用户的某个时刻,这很奇怪......