users@glassfish.java.net

Problems with deploying application in multidomain installation.

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 May 2008 07:43:55 PDT

Hello,
I used to have just default domain1 on my glassfish v2 installation. Glasfish was installed as unprivileged user. It is FC5.
It is developer profile. With default master password.
I used to deploy EAR applications as user root:
[root_at_opal } # asadmin deploy --user admin --name pa pa09.ear
-----------------
I have added a few new domains.
When trying to deploy as usual (just added port swich so glassfish would know to which domain to deploy) I have got error
[root_at_opal } # asadmin deploy --user admin --port 4848 --name pa pa09.ear
CLI171 Command deploy failed : Deployment of application failed - Invalid user or password

Form domain1 logs:
[#|2008-05-08T15:38:10.309+0200|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=18;_ThreadName=httpWorkerThread-4848-0;admin;|SEC5046: Audit: Authentication refused for [admin].|#]

[#|2008-05-08T15:38:10.311+0200|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=18;_ThreadName=httpWorkerThread-4848-0;_RequestID=8a4335da-cffa-43bf-a2d3-9e478261b462;|Web login failed: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.|#]

I can as root deploy application to domain2, domain3, though.
What is interesting when deploying as unprivileged user to domain1 it works.
I would appreciate any suggestion what happened, after creating new domains.

Second question:
I have another server with glassfish just one domain and when deploying over there the some application I’m being asked for admin password
[root_at_topaz } # asadmin deploy --user admin --name pa pa09.ear (asks for password)

On opal server I was never asked for password when I was deploying to domain1 (and when it was the only domain) after adding domain root cannot deploy to domain1 anymore.
It is precarious behavior. I'm must be missing something.

Regards to you all.
[Message sent by forum member 'chenin' (chenin)]

http://forums.java.net/jive/thread.jspa?messageID=273343