Skip to main content

Glashfish 2.1 clustering

23 replies [Last post]
jv_krishna5252
Offline
Joined: 2009-04-06

Hi All,

I have installed Glashfish AS 2.1 and created my own domain using the following command

>asadmin create-domain --adminport 5000 --adminuser admin J2EE

after this I started this domain

>asadmin start-domain --user admin J2EE

after this I have created node manager using the following command

>asadmin create-node-agent --host 172.16.1.46 --port 5000 mynodeagent5

While starting the nodeagent I am getting the following error....

C:\Sun\AppServer\bin>asadmin start-node-agent --user admin mynodeagent5

Please enter the master password [Enter to accept the default]:>
Redirecting output to C:/Sun/AppServer/nodeagents/mynodeagent5/agent/logs/server.log
Redirecting application output to C:/Sun/AppServer/nodeagents/mynodeagent5/agent/logs/server.log
Node Agent mynodeagent5 failed to startup. Please check the server log for more details.
CLI137 Command start-node-agent failed.

server.log
-------------

-Dcom.sun.aas.instanceRoot=C:/Sun/AppServer/nodeagents/mynodeagent5/agent
-Dcom.sun.aas.configRoot=C:/Sun/AppServer/config
-Dcom.sun.aas.defaultLogFile=C:/Sun/AppServer/nodeagents/mynodeagent5/agent/logs/server.log
-Dcom.sun.aas.instanceName=mynodeagent5
-Dcom.sun.aas.isNodeAgent=true
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.appserv.admin.pluggable.features=com.sun.enterprise.ee.admin.pluggable.EEClientPluggableFeatureImpl
-Dcom.sun.appserv.nss.db=C:/Sun/AppServer/nodeagents/mynodeagent5/agent/config
-Dcom.sun.appserv.pluggable.features=com.sun.enterprise.ee.server.pluggable.EEPluggableFeatureImpl
-Djava.endorsed.dirs=C:/Sun/AppServer/lib/endorsed
-Djava.library.path=C:\Sun\AppServer\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\bin;C:\Sun\AppServer\bin
-Djava.security.auth.login.config=C:/Sun/AppServer/nodeagents/mynodeagent5/agent/config/login.conf
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djmx.invoke.getters=true
-XX:+UnlockDiagnosticVMOptions
-XX:LogFile=C:/Sun/AppServer/nodeagents/mynodeagent5/agent/logs/jvm.log
-XX:+LogVMOutput
-cp
C:/Sun/AppServer/lib/comms-appserv-rt.jar;C:\Sun\AppServer\lib\appserv-launch.jar;C:/Sun/AppServer/lib\appserv-admin.jar;C:/Sun/AppServer/lib\appserv-ee.jar;C:/Sun/AppServer/lib\appserv-ext.jar;C:/Sun/AppServer/lib\appserv-rt.jar;C:/Sun/AppServer/lib\appserv-se.jar;C:/Sun/AppServer/lib\javaee.jar
com.sun.enterprise.ee.nodeagent.NodeAgentMain
start
startInstancesOverride=NOTSET
syncInstances=false
monitorInterval=5

[#|2009-04-06T16:41:19.937-0500|INFO|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0004:Starting Node Agent...|#]

[#|2009-04-06T16:41:19.984-0500|CONFIG|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|DAS url = service:jmx:rmi:///jndi/rmi://172.16.1.46:5000/management/rmi-jmx-connector|#]

[#|2009-04-06T16:41:19.984-0500|CONFIG|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NodeAgent url = service:jmx:rmi_jrmp://0.0.0.0:3708|#]

[#|2009-04-06T16:41:20.078-0500|INFO|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;service:jmx:s1ashttp://172.16.1.46:5000;|NAGT0021:The nodeagent is attempting to rendezvoused with the DAS on URL service:jmx:s1ashttp://172.16.1.46:5000|#]

[#|2009-04-06T16:41:20.156-0500|SEVERE|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;service:jmx:s1ashttp://172.16.1.46:5000 == java.io.IOException: Invalid user or password;|NAGT0022:The nodeagent failed to rendezvous with the DAS on URL service:jmx:s1ashttp://172.16.1.46:5000 == java.io.IOException: Invalid user or password|#]

[#|2009-04-06T16:41:22.171-0500|WARNING|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0013:Stopping Node Agent...|#]

Please help me to resolve this eroor...

Thanks in advance,
Krishna

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

In your previous update you asked me about operating system details.
In first machine opertating system is Windows XP
second machine operating system is Windows 2000

Thanks & Regards
Krishna

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

I forgot to attach the log file in the previous update.
Please find the attachment in this update.

Thanks & Regards
Krishna

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

I am unable to attach the screen shots while attaching
it is throwing error like "contents of the ***.doc not allowed".

Please give me your mail id so that I will send the screenshot to your mail box.

Thanks and Regards
Krishna

Message was edited by: jv_krishna5252

Message was edited by: jv_krishna5252

Satyajit.Tripathi@Sun.COM

Hi Krishna,

There are no additional configurations required. Given that you have
diligently followed all the steps, ideally the Node-Agent should have
the status 'Running'.

You can send the following

1. Node-agent server.log from
${glassfish.home}/nodeagents/mynodeagent_two/agent/logs/server.log
from the second system
2. Screen shot of the JMX--> "JMX Connector" settings tab (on the
Right panel). You will see the tab after you click the
Node-Agent--> mynodeagent_two (on the Left Panel)
3. Other screen shots, as you have mentioned below

Also, can you provide the details of GlassFish V2.1 build version and
the operating system details ?
Specify the steps you followed to create the default Domain currently
running at port 4848.

PS: My email-id is . Please don't forget to
mark CC: to forum alias because that builds the Knowledge base for all.

Thanks & regards
--Satya

On 04/15/09 15:31, glassfish@javadesktop.org wrote:
> Hi Satyajit,
>
> I am unable to attach the screen shots while attaching
> it is throwing error like "contesn of the ***.doc not allowed".
>
> Thanks and Regards
> Krishna
> [Message sent by forum member 'jv_krishna5252' (jv_krishna5252)]
>
> http://forums.java.net/jive/thread.jspa?messageID=342233
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SATYAJIT TRIPATHI
ISV Engineering APAC

Sun Microsystems India Private Limited
Bangalore 560025
DID : +91 80 66937865
Mobile: +91 9886019892
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[att1.html]

Satyajit Tripathi

Hi Krishna,

Can you please send a latest update on the issue ? I was waiting to
receive the log files from you.

Also, you must have seen the below announcement from me on the forum.
Please let me know if you would be interested and I can send you the Invite.

--------------------------------------------------
I plan to do a 1-Hour technical session and demo, over remote desktop
sharing, on GlassFish V2.1 Clustering with 2 systems. Its been on my
plan for sometime now but somehow didn't happen in the past. You may
want to participate the session. I will send out the invite and logistic
details next week. You just need a telephone line to dial-in and a good
speed Internet connection to access webex desktop sharing. I will be
doing it in the interest of GlassFish Users community. Stay tuned !
--------------------------------------------------

Thanks & regards
--Satya

Satyajit.Tripathi@Sun.COM wrote:
> Hi Krishna,
>
> There are no additional configurations required. Given that you have
> diligently followed all the steps, ideally the Node-Agent should have
> the status 'Running'.
>
> You can send the following
>
> 1. Node-agent server.log from
> ${glassfish.home}/nodeagents/mynodeagent_two/agent/logs/server.log
> from the second system
> 2. Screen shot of the JMX--> "JMX Connector" settings tab (on the
> Right panel). You will see the tab after you click the
> Node-Agent--> mynodeagent_two (on the Left Panel)
> 3. Other screen shots, as you have mentioned below
>
>
> Also, can you provide the details of GlassFish V2.1 build version and
> the operating system details ?
> Specify the steps you followed to create the default Domain currently
> running at port 4848.
>
>
> PS: My email-id is . Please don't forget to
> mark CC: to forum alias because that builds the Knowledge base for all.
>
> Thanks & regards
> --Satya
>
>
>
> On 04/15/09 15:31, glassfish@javadesktop.org wrote:
>> Hi Satyajit,
>>
>> I am unable to attach the screen shots while attaching
>> it is throwing error like "contesn of the ***.doc not allowed".
>>
>> Thanks and Regards
>> Krishna
>> [Message sent by forum member 'jv_krishna5252' (jv_krishna5252)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=342233
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>>
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> SATYAJIT TRIPATHI
> ISV Engineering APAC
>
> Sun Microsystems India Private Limited
> Bangalore 560025
> DID : +91 80 66937865
> Mobile: +91 9886019892
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SATYAJIT TRIPATHI
ISV Engineering APAC

Sun Microsystems India Private Limited
Bangalore 560025
DID : +91 80 66937865
Mobile: +91 9886019892

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

I am sorry yesterday we had elections here that's why I could not respond to you.(Our company declered holiday)

I attached the server log please find the attachment.
Also I attached the Screenshot.(I was unable to attach here that why I sent to your mail ID).

You asked me to provide the steps you followed to create the default Domain currently
running at port 4848.I did not follow any steps to create this default domain
it comes default when I installed Glashfish enterprise server.
I started it from start-->programs-->sun microsystems-->Application server v2.1-->start default server

I dont know about the build version of the Glashfish build version.

coming to operating system details I am using Windows XP.

I can't attend your session because my company will not allow me remote desktop
sharing to attend your session.

Thanks & Regards
Krishna

Satyajit Tripathi

Hello Krishna,

Thanks for posting the details of your setup.

You seem to be hitting a known GlassFish bug on Windows XP. There is a
fix available in the Patch01.
We recommend you to download and apply the latest patch to your existing
GlassFish V2.1 setup. Please refer the details at
http://sunsolve.sun.com/search/document.do?assetkey=1-21-128646-09.

NOTE : Please read the patch details carefully before applying them on
your system. Also, you may want to take necessary backups before
applying patches.

Please let me know if the above information was helpful ?

Thanks & regards
--Satya

glassfish@javadesktop.org wrote:
> Hi Satyajit,
>
> I am sorry yesterday we had elections here that's why I could not respond to you.(Our company declered holiday)
>
> I attached the server log please find the attachment.
> Also I attached the Screenshot.(I was unable to attach here that why I sent to your mail ID).
>
> You asked me to provide the steps you followed to create the default Domain currently
> running at port 4848.I did not follow any steps to create this default domain
> it comes default when I installed Glashfish enterprise server.
> I started it from start-->programs-->sun microsystems-->Application server v2.1-->start default server
>
> I dont know about the build version of the Glashfish build version.
>
> coming to operating system details I am using Windows XP.
>
>
> I can't attend your session because my company will not allow me remote desktop
> sharing to attend your session.
>
> Thanks & Regards
> Krishna
> [Message sent by forum member 'jv_krishna5252' (jv_krishna5252)]
>
> http://forums.java.net/jive/thread.jspa?messageID=342558
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SATYAJIT TRIPATHI
ISV Engineering APAC

Sun Microsystems India Private Limited
Bangalore 560025
DID : +91 80 66937865
Mobile: +91 9886019892

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Satyajit Tripathi

[att1.html]

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

Please give me response to my previous update.

Thanks in advance,
Krishna

satyajit_t
Offline
Joined: 2007-11-27

Hello Krishna,

I had already replied to the thread yesterday but am not sure why it was not received. So doing a copy-paste here from my earlier email.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Email sent earlier on : 04/13/09
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Dear Krishna,

The setup for a two node cluster is very simple, and I have done it myself multiple times on Solaris10 x86 and SPARC.

Here are my suggestions to you,

1). As understood you have 2 systems and, gis77 (IP: 172.16.1.46) is where the DAS is currently setup.
So first check from both the systems if you are able to access either systems (gis77 and second) over the network.

2). You may want to follow the steps of Creating the new node on the second system as below
------------------------------------------------------------
Login to second system, and execute the following command

asadmin> create-node-agent --host gis77 --port 5000 mynodeagent_two
Note I am assuming that as per your current setup, 5000 is the DAS port on the gis77.
------------------------------------------------------------

3). Then start the node-agent and list the node-agents the same way as specified in your previous emails.

4). Login to the Admin Console using a browser i.e. http://gis77:5000, and on the left panel locate the tree-node "Node-Agents" and the node(s) created below that. Select the newly created node mynodeagent_two and verify on the right panel under "Additional Properties" if the attribute rendezvousOccurred is set to true.

These steps should definitely get you started. Feel free to let me know if you still encounter any issues. I would be happy to help.

Thanks & regards
--Satya

PS : My Blog at http://blogs.sun.com/stripathi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

jv_krishna5252
Offline
Joined: 2009-04-06

Hi satyajit,

I followed the same steps again

1) Started the default server.at IP : gis77 Prot : 4848
2) In the second machine executed the following comamnds

C:\Sun\AppServer\bin>asadmin create-node-agent --host gis77 --port 4848 mynodeag
ent_two
Please enter the admin user name>admin
Please enter the admin password>
Command create-node-agent executed successfully.

C:\Sun\AppServer\bin>asadmin start-node-agent mynodeagent_two
Please enter the admin user name>admin
Please enter the admin password>
Please enter the master password [Enter to accept the default]:>
Redirecting output to C:/Sun/AppServer/nodeagents/mynodeagent_two/agent/logs/ser
ver.log
Redirecting application output to C:/Sun/AppServer/nodeagents/mynodeagent_two/ag
ent/logs/server.log
Command start-node-agent executed successfully.

after the above commands I loged into the Admin Console using a browser i.e. http://gis77:4848, and on the left panel locate the tree-node "Node-Agents" and
mynodeagent_two is created and verified that Additional properties if the attribute
rendezvousOccurred is true or not.It is set to true.

Even I started node agent "mynodeagent_two" in the second machine still it is stopped mode.[b]Node agent status : Stopped[/b]

I am able to access the second system no problem with network.
Still any more configurations are needed?

Thanks & Regards
krishna

jv_krishna5252
Offline
Joined: 2009-04-06

Could you please give me response to my previous update?

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

Thank you for your great concern....

I have followed the steps you have given as part of your previous mail
I observed the following things...

On the Second machine :-
asadmin > list-node-agents (Verify the node status)

when I ran the above command it is not showing the our required(mynodeagent_new) in the running mode.

then I have executed the following command. When I executed the following command It is asking me the admin username , admin password and master password
I have entered the admin username as "admin"password "adminadmin" and master password as "changeit"

C:\Sun\AppServer\bin>asadmin start-node-agent --startinstances=true --syncinstances=true mynodeagnet_new
Please enter the admin user name>admin
Please enter the admin password>
Please enter the master password [Enter to accept the default]:>
Redirecting output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/agent/logs/ser
ver.log
Redirecting application output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/ag
ent/logs/server.log
Command start-node-agent executed successfully.

C:\Sun\AppServer\bin>asadmin list-node-agents
mynodeagent not running
mynodeagent_01 running
Command list-node-agents executed successfully.

In the above one it is not showing "mynodeagent_new" in running mode even I started it.After this again I ran the below command..

C:\Sun\AppServer\bin>asadmin start-node-agent --startinstances=true --syncinstances=true mynodeagnet_new
mynodeagnet_new is already running.

but in the list of nodes running "mynodeagent_new" is not there and in the DAS console control it is in Stopped status.

I observed the above things. Is anything I missed out?

Thanks in advance,
Krishna

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Anilam,

Thank you very much for you response...

I have gone through the link what you given in your message..
but while creating domain with cluster profile with the following command

C:\Sun\AppServer\bin>asadmin create-domain --profile cluster --adminport 5000 GlashFist_domain

C:\Sun\AppServer\bin>asadmin create-domain --profile cluster --adminport 5000 GlashFist_domain
Please enter the admin password>
Please enter the admin password again>
Please enter the master password [Enter to accept the default]:>
Please enter the master password again [Enter to accept the default]:>
Using port 5000 for Admin.
Default port 8080 for HTTP Instance is in use. Using 2509
Default port 7676 for JMS is in use. Using 2510
Default port 3700 for IIOP is in use. Using 2511
Default port 8181 for HTTP_SSL is in use. Using 2512
Default port 3820 for IIOP_SSL is in use. Using 2513
Default port 3920 for IIOP_MUTUALAUTH is in use. Using 2514
Default port 8686 for JMX_ADMIN is in use. Using 2515
Domain being created with profile:cluster, as specified on command line or environment.
Security Store uses: JKS
Domain GlashFist_domain created.
WARNING: Existing user preference file .asadminprefs has been detected in your home directory. Application Server administration commands will attempt to use admin user name and password stored in this file and this may cause unexpected behavior and security issues. It is recommended that you delete this file prior to using this new domain, GlashFist_domain.

I have searched for the .asadminprefs file I did not find this file as part of my home directory.

After creating the domain I started it using below command...

C:\Sun\AppServer\bin>asadmin start-domain GlashFist_domain
Starting Domain GlashFist_domain, please wait.
Default Log location is C:\Sun\AppServer\domains\GlashFist_domain\logs\server.log.
java.lang.NullPointerException
at java.util.regex.Matcher.appendReplacement(Matcher.java:692)
at java.util.regex.Matcher.replaceAll(Matcher.java:806)
at java.lang.String.replaceAll(String.java:2000)
at com.sun.am.AMConfigurator.replace(AMConfigurator.java:1574)
at com.sun.am.AMConfigurator.updateAMConfig(AMConfigurator.java:569)
at com.sun.am.AMConfigurator.main(AMConfigurator.java:399)
at com.sun.am.AMConfigurator.configure(AMConfigurator.java:1879)
at com.sun.enterprise.addons.AddonConfigurationController.invokeApi(AddonConfigurationController.java:270)
at com.sun.enterprise.addons.AddonConfigurationController.configure(AddonConfigurationController.java:169)
at com.sun.enterprise.addons.AddonConfigurationController.configureDAS(AddonConfigurationController.java:136)
at com.sun.enterprise.addons.AddonFacade.configureDAS(AddonFacade.java:110)
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:585)
at com.sun.enterprise.cli.commands.AddonControl.configureDAS(AddonControl.java:100)
at com.sun.enterprise.cli.commands.StartDomainCommand.configureAddons(StartDomainCommand.java:489)
at com.sun.enterprise.cli.commands.StartDomainCommand.init(StartDomainCommand.java:458)
at com.sun.enterprise.cli.commands.StartDomainCommand.startDomain(StartDomainCommand.java:123)
at com.sun.enterprise.cli.commands.StartDomainCommand.runCommand(StartDomainCommand.java:215)
at com.sun.enterprise.cli.framework.CLIMain.invokeCommand(CLIMain.java:171)
at com.sun.enterprise.cli.framework.CLIMain.main(CLIMain.java:79)
The operation CONFIGURE of addon am-configurator completed with an error. Error message : (java.lang.NullPointerException)
Apr 8, 2009 6:39:39 PM com.sun.jbi.installer.JBIComponentsConfigurator configure
INFO: Configuring jbi components...
Apr 8, 2009 6:39:50 PM com.sun.jbi.installer.JBIComponentsConfigurator configure
INFO: OpenESB JBI Components Configuration Successful
The operation CONFIGURE on the addon jbi_components_configurator is complete.
The operation CONFIGURE on the addon portlet-container-configurator is complete.
Apr 8, 2009 6:39:56 PM com.sun.portal.wsrp.sdkinstaller.WSRPConfigurator install
INFO: WSRP Configuration Successful
The operation CONFIGURE on the addon wsrp-configurator is complete.
Apr 8, 2009 6:39:56 PM com.sun.enterprise.security.auth.LoginContextDriver doPasswordLogin
INFO: SEC5046: Audit: Authentication refused for [admin].
Incorrect admin username and/or password
CLI156 Could not start the domain GlashFist_domain.

I got the above errors..
How to avoid this errors?

I have created node agents on defalut domain according to the steps given in the link

[b]Create a node agent and then start the node agent on the machine where you want your first instance to run on. These 2 commands need to be executed on FirstMachine.

create-node-agent --host DasMachine --port 4848 agentOnFirst
start-node-agent agentOnFirst[/b]

C:\Sun\AppServer\bin>asadmin create-node-agent --host 172.16.1.46 --port 4848 agentOnFirst
Command create-node-agent executed successfully.

While starting I am getting the following errors(172.16.1.46 is my machine IP address where DAS is running at port 4848)

C:\Sun\AppServer\bin>asadmin start-node-agent agentOnFirst
Please enter the master password [Enter to accept the default]:>
Redirecting output to C:/Sun/AppServer/nodeagents/agentOnFirst/agent/logs/server.log
Redirecting application output to C:/Sun/AppServer/nodeagents/agentOnFirst/agent/logs/server.log
Node Agent agentOnFirst failed to startup. Please check the server log for more details.
CLI137 Command start-node-agent failed.

I have entered the default master password (i.e changeit).

server.log
--------------

C:/Sun/AppServer/lib/comms-appserv-rt.jar;C:\Sun\AppServer\lib\appserv-launch.jar;C:/Sun/AppServer/lib\appserv-admin.jar;C:/Sun/AppServer/lib\appserv-ee.jar;C:/Sun/AppServer/lib\appserv-ext.jar;C:/Sun/AppServer/lib\appserv-rt.jar;C:/Sun/AppServer/lib\appserv-se.jar;C:/Sun/AppServer/lib\javaee.jar
com.sun.enterprise.ee.nodeagent.NodeAgentMain
start
startInstancesOverride=NOTSET
syncInstances=false
monitorInterval=5

[#|2009-04-08T18:59:10.671-0500|INFO|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0004:Starting Node Agent...|#]

[#|2009-04-08T18:59:10.703-0500|CONFIG|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|DAS url = service:jmx:rmi:///jndi/rmi://172.16.1.46:4848/management/rmi-jmx-connector|#]

[#|2009-04-08T18:59:10.703-0500|CONFIG|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NodeAgent url = service:jmx:rmi_jrmp://0.0.0.0:3430|#]

[#|2009-04-08T18:59:10.812-0500|INFO|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;service:jmx:s1ashttp://172.16.1.46:4848;|NAGT0021:The nodeagent is attempting to rendezvoused with the DAS on URL service:jmx:s1ashttp://172.16.1.46:4848|#]

[#|2009-04-08T18:59:10.890-0500|SEVERE|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;service:jmx:s1ashttp://172.16.1.46:4848 == java.io.IOException: Invalid user or password;|NAGT0022:The nodeagent failed to rendezvous with the DAS on URL service:jmx:s1ashttp://172.16.1.46:4848 == java.io.IOException: Invalid user or password|#]

[#|2009-04-08T18:59:12.890-0500|WARNING|sun-appserver2.1|javax.ee.enterprise.system.nodeagent|_ThreadID=10;_ThreadName=main;|NAGT0013:Stopping Node Agent...|#]

I observed that If I run the above command without ip address and port number while creating node agnet it is working fine.

When I created node agent with the following command in the second machine it is working fine...

C:\Sun\AppServer\bin>asadmin create-node-agent --host gis77 --port 4848 mynodeag
net_new
Please enter the admin user name>admin
Please enter the admin password>
Command create-node-agent executed successfully.

This is my machine gis77(172.16.1.46)

C:\Sun\AppServer\bin>asadmin start-node-agent mynodeagnet_new
Please enter the admin user name>admin
Please enter the admin password>
Please enter the master password [Enter to accept the default]:>
Redirecting output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/agent/logs/ser
ver.log
Redirecting application output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/ag
ent/logs/server.log
Command start-node-agent executed successfully.

Please help me to solve this issue...

Thanks in advance,
Krishna

Satyajit Tripathi

[att1.html]

jv_krishna5252
Offline
Joined: 2009-04-06

Hello Satyajit,

Thank you for your response....

I have done as you posted in the message.I have created node manager in second manchine with the following command..

C:\Sun\AppServer\bin>asadmin create-node-agent --host gis77 --port 4848 mynodeagnet_new
Please enter the admin user name>admin
Please enter the admin password>
Command create-node-agent executed successfully.

C:\Sun\AppServer\bin>asadmin start-node-agent mynodeagnet_new
Please enter the admin user name>admin
Please enter the admin password>
Please enter the master password [Enter to accept the default]:>
Redirecting output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/agent/logs/ser
ver.log
Redirecting application output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/ag
ent/logs/server.log
Command start-node-agent executed successfully.

gis77(172.16.1.46) is the first machine address in while DAS is running at port 4848.

after the above setup I will be able to see the node manager in my fist machine
but it is in stop mode, even I started it in the second machine it is showing in stop mode in the first machine admin console control.Even if I stoped and started again it is showing same.

After the above step I have created cluster and while creating instance in the cluster I have reffered first machine node agent for the first instance and
while creating second instance I have referred second machine node agent(i.e above created node agnet : [b]mynodeagnet_new[/b]).
While starting the cluster the I got the following error...

[b]Not all server instances in cluster mycluster_01 were successfully started. Node Agent mynodeagent_new must be running before the instance myinstance_03 can be started or stopped.[/b]

Even I started the second machine node agent it is showing above message.

How to avoid this problem?

please suggest me the right approach..

Thanks in advance...
Krishna

Satyajit Tripathi

[att1.html]

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

Thank you for your great concern....

I have followed the steps you have given as part of your previous mail
I observed the following things...

On the Second machine :-
asadmin > list-node-agents (Verify the node status)

when I ran the above command it is not showing the our required(mynodeagent_new) in the running mode.

then I have executed the following command. When I executed the following command It is asking me the admin username , admin password and master password
I have entered the admin username as "admin"password "adminadmin" and master password as "changeit"

C:\Sun\AppServer\bin>asadmin start-node-agent --startinstances=true --syncinstances=true mynodeagnet_new
Please enter the admin user name>admin
Please enter the admin password>
Please enter the master password [Enter to accept the default]:>
Redirecting output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/agent/logs/ser
ver.log
Redirecting application output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/ag
ent/logs/server.log
Command start-node-agent executed successfully.

C:\Sun\AppServer\bin>asadmin list-node-agents
mynodeagent not running
mynodeagent_01 running
Command list-node-agents executed successfully.

In the above one it is not showing "mynodeagent_new" in running mode even I started it.After this again I ran the below command..

C:\Sun\AppServer\bin>asadmin start-node-agent --startinstances=true --syncinstances=true mynodeagnet_new
mynodeagnet_new is already running.

but in the list of nodes running "mynodeagent_new" is not there and in the DAS console control it is in Stopped status.

I observed the above things. Is anything I missed out?

Thanks in advance,
Krishna

Satyajit.Tripathi@Sun.COM

Dear Krishna,

The setup for a two node cluster is very simple, and I have done it
myself multiple times on Solaris10 x86 and SPARC.

Here are my suggestions to you,

1). As understood you have 2 systems and, gis77 (IP: 172.16.1.46) is
where the DAS is currently setup.
So first check from both the systems if you are able to access either
systems (gis77 and second) over the network.

2). You may want to follow the steps of Creating the new node on the
second system as below
------------------------------------------------------------
Login to second system, and execute the following command

asadmin> create-node-agent --host gis77 --port 5000 mynodeagent_two
Note I am assuming that as per your current setup, 5000 is the DAS
port on the gis77.
------------------------------------------------------------

3). Then start the node-agent and list the node-agents the same way as
specified in your previous emails.

4). Login to the Admin Console using a browser i.e. http://gis77:5000,
and on the left panel locate the tree-node "Node-Agents" and the node(s)
created below that. Select the newly created node mynodeagent_two and
verify on the right panel under "Additional Properties" if the attribute
rendezvousOccurred is set to true.

These steps should definitely get you started. Feel free to let me know
if you still encounter any issues. I would be happy to help.

Thanks & regards
--Satya

_PS : My Blog at http://blogs.sun.com/stripathi_

On 04/10/09 18:22, glassfish@javadesktop.org wrote:
> Hi Satyajit,
>
> Thank you for your great concern....
>
> I have followed the steps you have given as part of your previous mail
> I observed the following things...
>
> On the Second machine :-
> asadmin > list-node-agents (Verify the node status)
>
> when I ran the above command it is not showing the our required(mynodeagent_new) in the running mode.
>
> then I have executed the following command. When I executed the following command It is asking me the admin username , admin password and master password
> I have entered the admin username as "admin"password "adminadmin" and master password as "changeit"
>
>
>
>
> C:\Sun\AppServer\bin>asadmin start-node-agent --startinstances=true --syncinstances=true mynodeagnet_new
> Please enter the admin user name>admin
> Please enter the admin password>
> Please enter the master password [Enter to accept the default]:>
> Redirecting output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/agent/logs/ser
> ver.log
> Redirecting application output to C:/Sun/AppServer/nodeagents/mynodeagnet_new/ag
> ent/logs/server.log
> Command start-node-agent executed successfully.
>
> C:\Sun\AppServer\bin>asadmin list-node-agents
> mynodeagent not running
> mynodeagent_01 running
> Command list-node-agents executed successfully.
>
> In the above one it is not showing "mynodeagent_new" in running mode even I started it.After this again I ran the below command..
>
> C:\Sun\AppServer\bin>asadmin start-node-agent --startinstances=true --syncinstances=true mynodeagnet_new
> mynodeagnet_new is already running.
>
> but in the list of nodes running "mynodeagent_new" is not there and in the DAS console control it is in Stopped status.
>
> I observed the above things. Is anything I missed out?
>
> Thanks in advance,
> Krishna
> [Message sent by forum member 'jv_krishna5252' (jv_krishna5252)]
>
> http://forums.java.net/jive/thread.jspa?messageID=341624
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SATYAJIT TRIPATHI
ISV Engineering APAC

Sun Microsystems India Private Limited
Bangalore 560025
DID : +91 80 66937865
Mobile: +91 9886019892
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[att1.html]

Satyajit Tripathi

[att1.html]

jv_krishna5252
Offline
Joined: 2009-04-06

Hi Satyajit,

Thank you for your quick responce.....

Now I am able to start the node agent with default password(i.e changeit)
I saw this while refering your pdf.Now I will be able to start node agent and cluster as well.

But I have one doubt regarding clustering..
1) How to configure the instance running on some other machine under the cluster running in my machine?
because if I configure the cluster with two instances in my machine, if my machine crashes all the instances running under the cluster in my computer will be stoped.I did't find such configuration in your pdf.

Please help me...

Thanks in advance,
Krishna

anilam
Offline
Joined: 2005-03-29

HI Krishna,

>> 1) How to configure the instance running on some other machine under the cluster running in my machine?

I have a blog that has step-by-step instructions on how to create a cluster with 2 instances running on 2 different machines. There is a screencast that goes with that also.
Please take a look to see if that helps.
http://blogs.sun.com/anilam/entry/glassfish_v2_admin_console_series

Anissa.

John Clingan

I've also created a video on GlassFish Clustering in 10 minutes:
http://www.youtube.com/watch?v=m5zB2xU6O44

On Apr 7, 2009, at 8:35 AM, glassfish@javadesktop.org wrote:

> HI Krishna,
>
>>> 1) How to configure the instance running on some other machine
>>> under the cluster running in my machine?
>
> I have a blog that has step-by-step instructions on how to create a
> cluster with 2 instances running on 2 different machines. There is
> a screencast that goes with that also.
> Please take a look to see if that helps.
> http://blogs.sun.com/anilam/entry/glassfish_v2_admin_console_series
>
> Anissa.
> [Message sent by forum member 'anilam' (anilam)]
>
> http://forums.java.net/jive/thread.jspa?messageID=340997
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net