users@glassfish.java.net

RE: glassfish and clusters on 2 PCs

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Fri, 7 Aug 2009 20:31:30 +0100

Hello

 

Anissa,

 

I must have than sothing wrong

I wish to get rid of this nodeagent and create it again. How?

 

Belong is the error

 

Exception in thread "Thread-1" com.sun.enterprise.security.LoginException: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
 at com.sun.enterprise.security.auth.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:335)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:177)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:130)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASLoginDriverImpl.login(ASLoginDriverImpl.java:64)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASJMXAuthenticator.authenticate(ASJMXAuthenticator.java:112)
 at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
 at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
 at sun.rmi.transport.Transport$1.run(Transport.java:159)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
 at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
 at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327)
 at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279)
 at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
 at com.sun.enterprise.ee.admin.clientreg.JMXConnectorRegistry$JMXConnectionTimeout.run(JMXConnectorRegistry.java:440)
Caused by: javax.security.auth.login.LoginException: Failed file login for admin.
 at com.sun.enterprise.security.auth.login.FileLoginModule.authenticate(FileLoginModule.java:80)
 at com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:90)
 at com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:184)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
 at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
 at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
 at com.sun.enterprise.security.auth.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:319)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:177)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:130)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASLoginDriverImpl.login(ASLoginDriverImpl.java:64)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASJMXAuthenticator.authenticate(ASJMXAuthenticator.java:112)
 at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
 at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
 at sun.rmi.transport.Transport$1.run(Transport.java:159)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-2" com.sun.enterprise.security.LoginException: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
 at com.sun.enterprise.security.auth.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:335)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:177)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:130)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASLoginDriverImpl.login(ASLoginDriverImpl.java:64)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASJMXAuthenticator.authenticate(ASJMXAuthenticator.java:112)
 at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
 at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
 at sun.rmi.transport.Transport$1.run(Transport.java:159)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
 at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
 at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327)
 at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279)
 at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
 at com.sun.enterprise.ee.admin.clientreg.JMXConnectorRegistry$JMXConnectionTimeout.run(JMXConnectorRegistry.java:440)
Caused by: javax.security.auth.login.LoginException: Failed file login for admin.
 at com.sun.enterprise.security.auth.login.FileLoginModule.authenticate(FileLoginModule.java:80)
 at com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:90)
 at com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:184)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
 at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
 at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
 at com.sun.enterprise.security.auth.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:319)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:177)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:130)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASLoginDriverImpl.login(ASLoginDriverImpl.java:64)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASJMXAuthenticator.authenticate(ASJMXAuthenticator.java:112)
 at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
 at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
 at sun.rmi.transport.Transport$1.run(Transport.java:159)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-3" com.sun.enterprise.security.LoginException: Login failed: javax.security.auth.login.LoginException: Failed file login for admin.
 at com.sun.enterprise.security.auth.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:335)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:177)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:130)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASLoginDriverImpl.login(ASLoginDriverImpl.java:64)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASJMXAuthenticator.authenticate(ASJMXAuthenticator.java:112)
 at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
 at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
 at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
 at sun.rmi.transport.Transport$1.run(Transport.java:159)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
 at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)
 at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327)
 at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279)
 at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
 at com.sun.enterprise.ee.admin.clientreg.JMXConnectorRegistry$JMXConnectionTimeout.run(JMXConnectorRegistry.java:440)
Caused by: javax.security.auth.login.LoginException: Failed file login for admin.
 at com.sun.enterprise.security.auth.login.FileLoginModule.authenticate(FileLoginModule.java:80)
 at com.sun.enterprise.security.auth.login.PasswordLoginModule.authenticateUser(PasswordLoginModule.java:90)
 at com.sun.appserv.security.AppservPasswordLoginModule.login(AppservPasswordLoginModule.java:184)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
 at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
 at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
 at java.security.AccessController.doPrivileged(Native Method)
 at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
 at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
 at com.sun.enterprise.security.auth.LoginContextDriver.doPasswordLogin(LoginContextDriver.java:319)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:177)
 at com.sun.enterprise.security.auth.LoginContextDriver.login(LoginContextDriver.java:130)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASLoginDriverImpl.login(ASLoginDriverImpl.java:64)
 at com.sun.enterprise.admin.server.core.jmx.auth.ASJMXAuthenticator.authenticate(ASJMXAuthenticator.java:112)
 at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:213)
 at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:180)
 at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
 at sun.rmi.transport.Transport$1.run(Transport.java:159)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:619)
[#|2009-08-07T20:26:47.968+0100|SEVERE|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;hmpcuse;8686;|NAGT0026:There was a connection failure while trying to connect to the Domain Administration Server (DAS) end point: [host=hmpcuse], [port=8686]. This could mean that there was a network failure.|#]

[#|2009-08-07T20:26:48.359+0100|INFO|sun-appserver2.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;admin;|SEC5046: Audit: Authentication refused for [admin].|#]

[#|2009-08-07T20:26:50.359+0100|WARNING|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0013:Stopping Node Agent...|#]

 

 

eve


Date: Fri, 7 Aug 2009 11:05:49 -0700
From: Anissa.Lam_at_Sun.COM
To: users_at_glassfish.dev.java.net
Subject: Re: glassfish and clusters on 2 PCs

Hi Eve,


Please enter the master password [Enter to accept the default]:><my own password>
 
????
 
thanks
 
eve
 The default master password is changeit
If you just press Enter, it should mean use the default, which is 'changeit'.

Anissa.

Eve Pokua wrote:


Hello,
 
 
Thank you all.
 
this works.
 
cd to c:\glassfish

then in that directory run

.\lib\ant\bin\ant -f setup-cluster.xml

Also, upgrade to JDK 6 u14 for better performance.
hth

 
so now I am trying to start the node agent.
 
C:\glassfish\bin>asadmin start-node-agent nodeagent1XPhm
Please enter the admin user name>admin
Please enter the admin password>
Please enter the master password [Enter to accept the default]:>
Password entered is invalid
CLI137 Command start-node-agent failed.
 
isn't the default pwd is
 
adminadmin
 
and user is
 
admin
 
So
 
Please enter the admin user name>admin
Please enter the admin password>adminadmin
Please enter the master password [Enter to accept the default]:><my own password>
 
????
 
thanks
 
eve
 
 
 

 
> Date: Fri, 7 Aug 2009 10:05:39 -0700
> From: Arun.Gupta_at_Sun.COM
> To: users_at_glassfish.dev.java.net
> Subject: Re: glassfish and clusters on 2 PCs
>
> You can also try the script mentioned in the blog at:
>
> http://blogs.sun.com/arungupta/entry/glassfish_asadmin_cli_driven_cluster
>
> This script takes a GlassFish bundle, installs it, configures the
> cluster, creates the instances, deploy an application and starts the
> cluster - all using asadmin CLI.
>
> Thanks
> -Arun
>
> glassfish_at_javadesktop.org wrote:
> > Hello everyone,
> >
> > John,
> >
> > I am actually quite behind I have followed the video from Youtube but get this
> > error when I try to install the cluster part-
> >
> >
> > C:\glassfish\lib\ant\bin>ant -f setup-cluster.xml
> > Buildfile: setup-cluster.xml does not exist!
> > Build failed
> > C:\glassfish\lib\ant\bin>ant -f setup-cluster.xml
> > Buildfile: setup-cluster.xml does not exist!
> > Build failed
> > C:\glassfish\lib\ant\bin>
> >
> >
> > My settings as followings:
> >
> > ANT_HOME
> >
> > C:\glassfish\lib\ant
> >
> > JAVA_HOME
> >
> > C:\Program Files\Java\jdk1.6.0_03
> >
> >
> > JAVAEE_HOME
> >
> > C:/glassfish
> >
> > Is there something Im doing wrong?
> >
> > Thank you all
> >
> > eve
> > [Message sent by forum member 'eve2' (eve2)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=359449
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
>
> --
> Need Application Server ? Download from http://glassfish.org
> Blog: http://blogs.sun.com/arungupta
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>




Windows Live Messenger: Celebrate 10 amazing years with free winks and emoticons. Get Them Now--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For additional commands, e-mail: users-help_at_glassfish.dev.java.net
_________________________________________________________________
Windows Live Messenger: Thanks for 10 great years—enjoy free winks and emoticons.
http://clk.atdmt.com/UKM/go/157562755/direct/01/