본문 바로가기

분류 전체보기116

OpenStack Newton Dashboard 500 접속 에러 OpenStack Newton Dashboard 설치 후http://localhost/dashboard 접속하면 한참동안 로딩되다가500 Internal Server Error 뜨면서 접속이 안되는 현상이 있다. 해결방법아래 파일을 열고 # vi /etc/httpd/conf.d/openstack-dashboard.conf 내용 추가WSGISocketPrefix 아래WSGIScriptAlias 위에 아래 내용 추가 WSGIApplicationGroup %{GLOBAL} 서비스 재시작# systemctl restart httpd.service memcached.service 참고Controller node nova 서비스에 Compute node의 nova 서비스가 등록되어 있을 때 compute node를.. 2017. 9. 23.
OpenStack Mitaka & Newton Keystone v2.0 엔드포인트 추가 OpenStack Mitaka & Newton Keystone v2.0 엔드포인트 추가 OpenStack Mitaka 버전부터 Keystone v2.0에서 v3으로 바뀐 듯 하다. Libery 버전 CLI는 v3 API는 v2.0으로 가이드 되어있다. Mitaka나 Newton 버전에서 v2.0을 그대로 사용하려는 경우 v3으로 Keystone 설치와 설정을 모두 끝낸 뒤 v2.0 엔드포인트 추가가 가능하다. 방법 Keystone 설치와 설정을 모두 끝난 상황에서 CLI 창에서 다음 명령어 수행 ID는 Mitaka는 일련번호가 Newton은 default라고 나옴 # . admin-openrc # openstack domain list +---------+---------+---------+-------.. 2017. 9. 23.
OpenStack Newton Dashboard 500 Internal Server Error 최근 OpenStack Newton 설치 시Dashboard 설치 후 웹브라우저 접속해보면 응답 없이 계속 로딩 중이다가500 (Internal Server Error) 뜨면서 3줄의 문구가 나오고 접속이 되지 않는 현상이 발생Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before t.. 2017. 9. 16.
Spring 4 JSR-303 Validator Spring은 자체적인 Validator 기능 외에 JSR-303 검증도 지원한다고 한다.이번 예제는 JSR-303 검증을 이용한 유효성 체크를 해본다. 스프링 4.3.9 기준으로 작성되었다.XML 기반 설정이고 유효성 체크 부분 내용만 기술한다. 1. Maven pom.xmlorg.hibernatehibernate-validator5.4.1.Final 2. Spring servlet-context.xml- Validator 설정에 messageSource도 추가 가능하나 여기선 생략하였다. 3. Java beanpublic class User {...@NotBlankprivate String userName;... // getter, setter} 4. Spring controllerpublic cla.. 2017. 6. 12.
Java에서 서로 다른 두 List 간 Join 방법 디비 테이블 조인을 지양할 때 어쩔 수 없이 자바에서 조인을 해줘야 하는 상황이 발생할 경우 해결방안 아래 예제는 inner join만 사용 1. 아래 사이트 맨 하단에 메이븐을 내 프로젝트에 등록 및 아래 사이트 가이드 참고 글 쓰는 시점에서의 버전은 0.9.12 https://github.com/jOOQ/jOOL org.jooq jool 0.9.12 2. 각 테이블 목록을 조회 후 inner join 수행 import static org.jooq.lambda.tuple.Tuple.tuple; // 중요 ... @Service public class UserService { @Autowired private CommonDao commonDao; public List getUsers() { List us.. 2017. 5. 18.
Spring REST Docs 사용법 RESTful API를 문서화는 언제나 이슈가 되고 있는 듯 하다. 여러가지 문서화 방법이 있는데여기서는 Spring REST Docs 라이브러리를 이용해서 문서화 하는 방법에 대해 알아보자. pom.xmlorg.springframework.restdocsspring-restdocs-mockmvc1.1.2.RELEASE ...org.apache.maven.pluginsmaven-surefire-plugin2.19.1**/*Documentation.javaorg.asciidoctorasciidoctor-maven-plugin1.5.2generate-docsprepare-packageprocess-asciidochtmlbook${snippetsDirectory}maven-resources-plugin2.7c.. 2017. 4. 23.