현재 사용중인 OAS 버전이 10g(9.0.4)버전이라 CD를 구할수 없어서 10gR2 로 설치후 테스트 진행중.
설치후 정상적으로 EM에 로그인해서 설정작업을 하다가
Xmanager 접속을 끊고 나서 EM에 접속해보니 500 Internal Server Error가 발생.
메타링크 문서 : ID 365725.1 참조
오류내용
java.lang.NoClassDefFoundError: oracle/sysman/eml/app/Console
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.2)].server.http.HttpApplication.loadServlet(HttpApplication.java(Compiled Code))
at com.evermind[Oracle Application Server Containers for J2EE
10g(10.1.2.0.2)].server.http.HttpApplication.findServlet(HttpApplication.java(Compiled Code))
The following lines may be seen in $ORACLE_HOME/sysman/log/emdctl.trc:
... Thread-1 WARN http: snmehl_connect: connect failed to (server:port): A remote host refused an attempted connect operation. (error =79)
... Thread-1 WARN http: snmehl_connect: connect failed to (server:port): A remote host refused an attempted connect operation. (error =79)
해결방법
Modify the $ORACLE_HOME/bin/emctl script
의 PATH=$EMDROOT/bin:$ORACLE_HOME/jdk/bin:$PATH
export PATH 위에
EM_OC4J_OPTS="-Djava.awt.headless=true -Dibm.cl.eagerresolution $EM_OC4J_OPTS"; export EM_OC4J_OPTS 추가
Modify the file $ORACLE_HOME/sysman/config/emd.properties
agentJavaDefines=-Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true
==>
agentJavaDefines=-Xms64m -Xmx128m -Doracle.dms.refresh.wait.time=1000 -DUrlTiming.UseJSSE=true -Djava.compiler=NONE -DHTTPClient.disableKeepAlives=true