The Error below was experienced when using the WAS ND 7 manageProfile.sh to create a node profile and automatically federate into an existing WAS ND cell.

Command being called:

/var/apps/was7/appserver/bin/ -create -profileName WASND7_01_node01Prof -profilePath /var/apps/was7/profiles/WASND7_01_node01Prof -templatePath /var/apps/was7/appserver/profileTemplates/managed -cellName localhostCell01 -hostName localhost -nodeName WASND7_01_node01Mnode -defaultPorts -isDefault -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -dmgrHost localhost -dmgrPort 8879 -dmgrAdminUserName wasadmin -dmgrAdminPassword wasadmin

Error as found in the log (WASND7_01_node01Prof_create.log)

<record>

<date>06-Mar-2015 13:09:22</date>

<millis>1425647362381</millis>

<sequence>2386</sequence>

<logger>com.ibm.ws.install.configmanager.actionengine.ant.utils.ANTLogToCmtLogAdapter</logger>

<level>WARNING</level>

<class>com.ibm.ws.install.configmanager.logging.LogUtils</class>

<method>logException</method>

<thread>0</thread>

<message>/var/apps/was7/appserver/profileTemplates/managed/actions/executeManagedProfileSetup.ant:213: exec returned: 255

    at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:591)

    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:617)

    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:452)

    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

    at org.apache.tools.ant.Task.perform(Task.java:364)

    at org.apache.tools.ant.Target.execute(Target.java:341)

    at org.apache.tools.ant.Target.performTasks(Target.java:369)

    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)

    at org.apache.tools.ant.Project.executeTarget(Project.java:1185)

    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)

    at org.apache.tools.ant.Project.executeTargets(Project.java:1068)

    at com.ibm.ws.install.configmanager.actionengine.ant.utils.InProcessAntRunner.runBuild(InProcessAntRunner.java:785)

    at com.ibm.ws.install.configmanager.actionengine.ant.utils.InProcessAntRunner.start(InProcessAntRunner.java:234)

    at com.ibm.ws.install.configmanager.actionengine.ANTAction.executeActionUsingAnInProcessANTCall(ANTAction.java:107)

    at com.ibm.ws.install.configmanager.actionengine.ANTAction.executeAction(ANTAction.java:54)

    at com.ibm.ws.install.configmanager.actionengine.ConfigAction.executeAction(ConfigAction.java:95)

    at com.ibm.ws.install.configmanager.ConfigManager.executeAllActionsFound(ConfigManager.java:1008)

    at com.ibm.ws.install.configmanager.ConfigManager.executeActions(ConfigManager.java:569)

    at com.ibm.ws.install.configmanager.ConfigManager.launch(ConfigManager.java:329)

    at com.ibm.ws.install.configmanager.launcher.Launcher.mainForInProcessCMTCallers(Launcher.java:65)

    at com.ibm.wsspi.profile.WSProfile.doCreate(WSProfile.java:404)

    at com.ibm.wsspi.profile.WSProfile.create(WSProfile.java:224)

    at com.ibm.ws.profile.cli.WSProfileCLICreateProfileInvoker.executeWSProfileAccordingToMode(WSProfileCLICreateProfileInvoker.java:255)

    at com.ibm.ws.profile.cli.WSProfileCLIModeInvoker.invokeWSProfile(WSProfileCLIModeInvoker.java:462)

    at com.ibm.ws.profile.WSProfileJob.run(WSProfileJob.java:94)

    at com.ibm.ws.profile.utils.WSProfileUtils.executeAllJobs(WSProfileUtils.java:793)

    at com.ibm.wsspi.profile.WSProfileCLI.invokeWSProfile(WSProfileCLI.java:199)

    at com.ibm.wsspi.profile.WSProfileCLI.main(WSProfileCLI.java:61)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

    at java.lang.reflect.Method.invoke(Method.java:599)

    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:213)

    at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93)

    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74)

    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)

    at java.lang.reflect.Method.invoke(Method.java:599)

    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)

    at org.eclipse.core.launcher.Main.basicRun(Main.java:282)

    at org.eclipse.core.launcher.Main.run(Main.java:981)

    at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:340)

    at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:110)

</message>

</record>

We run the commands below to check the profile registry after the failure

cd /var/apps/was7/appserver/bin

root@localhost bin]# ./manageprofiles.sh -validateAndUpdateRegistry

[WASND7_01_node01Prof]

 

cd /var/apps/was7/appserver/bin

[root@localhost bin]# ./manageprofiles.sh -validateAndUpdateRegistry

[]

 

Reason:

We can see that the profile creation did not complete and thus an invalid registry entry existed.

The reason was that we used a non-unique cell name for the new node

/var/apps/was7/appserver/bin/manageprofiles.sh -create -profileName WASND7_01_node01Prof -profilePath /var/apps/was7/profiles/WASND7_01_node01Prof -templatePath /var/apps/was7/appserver/profileTemplates/managed -cellName localhostCell01 -hostName localhost -nodeName WASND7_01_node01Mnode -defaultPorts -isDefault -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -dmgrHost localhost -dmgrPort 8879 -dmgrAdminUserName wasadmin -dmgrAdminPassword wasadmin

Solution:

Change the node name in the command-line syntax. Note you will need to remove the partially completed profile location on disk to re-create it.

/var/apps/was7/appserver/bin/manageprofiles.sh -create -profileName WASND7_01_node01Prof -profilePath /var/apps/was7/profiles/WASND7_01_node01Prof -templatePath /var/apps/was7/appserver/profileTemplates/managed -cellName localhostNode01 -hostName localhost -nodeName WASND7_01_node01Mnode -defaultPorts -isDefault -enableAdminSecurity true -adminUserName wasadmin -adminPassword wasadmin -dmgrHost localhost -dmgrPort 8879 -dmgrAdminUserName wasadmin -dmgrAdminPassword wasadmin
Facebooktwittergoogle_plusredditpinterestlinkedinmail

Leave a Reply