users@glassfish.java.net

Re: Glashfish 2.1 clustering

From: <glassfish_at_javadesktop.org>
Date: Wed, 08 Apr 2009 06:42:08 PDT

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
[Message sent by forum member 'jv_krishna5252' (jv_krishna5252)]

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