2011년 11월 9일 수요일

[WebSphere] The server startup fails with a WSVR0009E error and the message "Cannot get canonical host name for server"

The server startup fails with a WSVR0009E error and the message "Cannot get canonical host name for server" 

Problem(Abstract)

The server cannot be started due to problems resolving the host name.

Symptom

When this problem occurs, the following information is written to the SystemOut.log file after you try to start the server:
0000000a WsServerImpl E WSVR0009E: Error occurred during startup
META-INF/ws-server-components.xml
[3/15/11 9:16:28:750 CST] 0000000a WsServerImpl E WSVR0009E: Error occurred during startup
com.ibm.ws.exception.ConfigurationError: com.ibm.ws.exception.ConfigurationError: javax.naming.ConfigurationException: Cannot get canonical host name for server.
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:185)
at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:140)
at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:461)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
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:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:329)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:92)
Caused by: com.ibm.ws.exception.ConfigurationError: javax.naming.ConfigurationException: Cannot get canonical host name for server.
at com.ibm.ws.security.core.distSecurityComponentImpl.initialize(distSecurityComponentImpl.java:269)
at com.ibm.ws.security.core.SecurityComponentImpl.initialize(SecurityComponentImpl.java:90)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponent(ContainerImpl.java:1338)
at com.ibm.ws.runtime.component.ContainerImpl.initializeComponents(ContainerImpl.java:1136)
at com.ibm.ws.runtime.component.ServerImpl.initialize(ServerImpl.java:356)
at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:178)
... 24 more
Caused by: javax.naming.ConfigurationException: Cannot get canonical host name for server.
at com.ibm.ws.security.core.SecurityConfig.getHostName(SecurityConfig.java:2875)
at com.ibm.ws.security.core.SecurityConfig.setValues(SecurityConfig.java:1247)
at com.ibm.ws.security.core.distSecurityComponentImpl.initializeSecurityConfig(distSecurityComponentImpl.java:816)
at com.ibm.ws.security.core.distSecurityComponentImpl.initialize(distSecurityComponentImpl.java:247)
... 29 more


Cause

This problem occurs when the server is unable to look up the host name that was used to create the profile.

Environment

UNIX / Linux

Resolving the problem


Determine the host name used for the server by looking in the file ProfileRoot/config/cells/CellName/nodes/NodeName/serverindex.xml and then work with your network or operating system administrator to correct the problem. Check the following network settings and report the results to your system admin.

Check your system manuals or man page for the availability or equivalent commands if you find any errors in execution o the commands in the examples below. One example, you may find the ping command with the error, "command not found", and can correct by proceeding the command with the fully qualified path, "/usr/sbin/ping".
cd /etc cat resolv.conf

The nslookup command may use the entries in resolv.conf successfully, however the system may use a different method as defined by the entries in resolve.conf
        ls -l hosts
    A file that is readable by the non-root user will be similar to this:
        rw-rw-r--    1 root   system     2590 Feb 14 12:33 hosts

Related information

댓글 없음:

댓글 쓰기