2023년 2월 8일 수요일

tomcat 구동, 정지시 오류 해결

톰캣에서 서비스 종료를 위해 아래 명령을 내렸다 ./shutdown.sh 아래와 같은 오류가 발생한다 Cannot find /usr/local/tomcat8.5/bin/setclasspath.sh This file is needed to run this program 구글링하니 아래 명령을 실행하라고 해서 실행 후 shutdown 가능했지만 startup할 때 또 다시 같은 오류가 생겼다 unset CATALINA_HOME 아래 명령으로 확인해 보니 실제 존재하는 경로와 CATALINA_HOME에 기입된 경로가 맞지 않았다 echo $CATALINA_HOME CATALINA_HOME이 설정된 profile 파일에서 경로를 바르게 수정하였고 sudo vi /etc/profile 아래처럼 설정을 적용 한 후 정상적으로 startup, shutdown 가능했다 source /etc/profile

2023년 1월 26일 목요일

entity 속성 변경할때 좀 이상한 현상들

entity 속성 변경할때 잘 안되면서 생기는 이상한 현상들 정리
//id로 엔티티 속성 변경시 깜빡임 발생
const polylineEntity = viewer.entities.getById('XyToXyz_Polyline').polyline; //깜빡임
viewer.entities.getById('XyToXyz_Polyline').polyline.material = p.staticMaterial; //깜빡임
viewer.entities.getById('XyToXyz_Polyline').polyline.depthFailMaterial = p.staticMaterial; //깜빡임

//변수에 담은 엔티티 속성 변경시 깜빡임 없음
const polylineEntity = s.entityArray[s.entityArray.length - 1].polyline._polyline; //깜빡임 없음
polylineEntity._positions = new Cesium.ConstantProperty(staticCartesians);

//변수에 담은 material은 변경되지 않았음
//id로 변경시 깜빡임 있음
polylineEntity._material = p.staticMaterial; //작동안됨
polylineEntity._depthFailMaterial = p.staticMaterial; //작동안됨