Translate

[WebLogic][Error] 어드민서버에서 매니지드서버 기동 시 FAILED_NOT_RESTARTABLE 상태 오류










실습환경
 - OS: OracleLinux 5
 - WebLogic ver: 10.3.6



증상
1004lucifer
노드매니저 구성 후 서버 기동 시 아래와 같이 기동이 실패를 한다.



로그는 아래와 같다.

# 해당 매니지드서버(인스턴스서버) out로그
[weblogic@ae2793daea03 weblogic1036]$ cat /app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out
<Aug 24, 2018 2:01:38 AM> <INFO> <NodeManager> <Server output log file is '/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out'>
Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
Caused by: java.lang.ClassNotFoundException: weblogic.Server
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: weblogic.Server.  Program will exit.
<Aug 24, 2018 2:01:39 AM> <FINEST> <NodeManager> <Waiting for the process to die: 2334>
<Aug 24, 2018 2:01:39 AM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<Aug 24, 2018 2:01:39 AM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
[weblogic@ae2793daea03 weblogic1036]$

1004lucifer

# 기동버튼 클릭 시 노드매니저 로그
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Boot identity properties saved to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/data/nodemanager/boot.properties">
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.AbstractServerManager log
INFO: Boot identity properties saved to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/data/nodemanager/boot.properties"
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Startup configuration properties saved to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/data/nodemanager/startup.properties">
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.AbstractServerManager log
INFO: Startup configuration properties saved to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/data/nodemanager/startup.properties"
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Rotated server output log to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out00018">
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.LogFileRotationUtil log
INFO: Rotated server output log to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out00018"
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Server error log also redirected to server log>
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.LogFileRotationUtil log
INFO: Server error log also redirected to server log
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Starting WebLogic server with command line: /app/jdk1.6.0_45/bin/java -Dweblogic.Name=ManagedServer01 -Dbea.home=/app/weblogic1036/wlserver_10.3/common/nodemanager -Djava.security.policy=/app/weblogic1036/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.management.server=http://172.17.0.2:7001 -Djava.library.path=/app/jdk1.6.0_45/jre/lib/amd64/server:/app/jdk1.6.0_45/jre/lib/amd64:/app/jdk1.6.0_45/jre/../lib/amd64:/app/weblogic1036/patch_wls1036/profiles/default/native:/app/weblogic1036/wlserver_10.3/server/native/linux/x86_64:/app/weblogic1036/wlserver_10.3/server/native/linux/x86_64/oci920_8:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib -Djava.class.path=/app/weblogic1036/utils/utils.jar -Dweblogic.system.BootIdentityFile=/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m weblogic.Server >
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.AbstractServerManager log
INFO: Starting WebLogic server with command line: /app/jdk1.6.0_45/bin/java -Dweblogic.Name=ManagedServer01 -Dbea.home=/app/weblogic1036/wlserver_10.3/common/nodemanager -Djava.security.policy=/app/weblogic1036/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.management.server=http://172.17.0.2:7001 -Djava.library.path=/app/jdk1.6.0_45/jre/lib/amd64/server:/app/jdk1.6.0_45/jre/lib/amd64:/app/jdk1.6.0_45/jre/../lib/amd64:/app/weblogic1036/patch_wls1036/profiles/default/native:/app/weblogic1036/wlserver_10.3/server/native/linux/x86_64:/app/weblogic1036/wlserver_10.3/server/native/linux/x86_64/oci920_8:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib -Djava.class.path=/app/weblogic1036/utils/utils.jar -Dweblogic.system.BootIdentityFile=/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=false -Dweblogic.ReverseDNSAllowed=false -Xms256m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m weblogic.Server
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Working directory is '/app/weblogic1036/domains/1004lucifer_domain'>
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.AbstractServerManager log
INFO: Working directory is '/app/weblogic1036/domains/1004lucifer_domain'
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Rotated server output log to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out00019">
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.LogFileRotationUtil log
INFO: Rotated server output log to "/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out00019"
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Server error log also redirected to server log>
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.LogFileRotationUtil log
INFO: Server error log also redirected to server log
<Aug 24, 2018 2:01:38 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Server output log file is '/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out'>
Aug 24, 2018 2:01:38 AM weblogic.nodemanager.server.AbstractServerManager log
INFO: Server output log file is '/app/weblogic1036/domains/1004lucifer_domain/servers/ManagedServer01/logs/ManagedServer01.out'
<Aug 24, 2018 2:01:39 AM> <INFO> <1004lucifer_domain> <ManagedServer01> <Server failed during startup so will not be restarted>
Aug 24, 2018 2:01:39 AM weblogic.nodemanager.server.AbstractServerManager log
INFO: Server failed during startup so will not be restarted
<Aug 24, 2018 2:01:39 AM> <WARNING> <Exception while starting server 'ManagedServer01'>
java.io.IOException: Server failed to start up. See server output log for more details.
        at weblogic.nodemanager.server.AbstractServerManager.start(AbstractServerManager.java:196)
        at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:23)
        at weblogic.nodemanager.server.Handler.handleStart(Handler.java:609)
        at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:121)
        at weblogic.nodemanager.server.Handler.run(Handler.java:71)
        at java.lang.Thread.run(Thread.java:662)

Aug 24, 2018 2:01:39 AM weblogic.nodemanager.server.Handler handleStart
WARNING: Exception while starting server 'ManagedServer01'
java.io.IOException: Server failed to start up. See server output log for more details.
        at weblogic.nodemanager.server.AbstractServerManager.start(AbstractServerManager.java:196)
        at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:23)
        at weblogic.nodemanager.server.Handler.handleStart(Handler.java:609)
        at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:121)
        at weblogic.nodemanager.server.Handler.run(Handler.java:71)
        at java.lang.Thread.run(Thread.java:662)








원인

매니지드서버설정에서 '구성-서버시작' 항목의 클래스경로 항목에 문자열 입력 시 기존 CLASSPATH 가 덮어씌워져 웹로직 구동시 필요한 weblogic.jar 파일이 CLASSPATH에 추가되지 않아 웹로직을 기동할 수 없다.







해경방법


 - 클래스경로에 $WL_HOME/server/lib/weblogic.jar 경로를 넣어준다.

PS.
 - CLASSPATH의 구분자는 리눅스는 콜론(:), 윈도우는 세미콜론(;)을 넣어줘야 한다. 리눅스에서 세미콜론을 넣게되면 기존과 똑같은 에러가 발생한다.






클래스경로 수정 후 다시 기동 시 정상적으로 기동 되는 것을 확인 할 수 있다.


댓글