본문 바로가기

반응형

전체 글

(74)
1. 오랜만에 다시 들어가는 sql developer 오랜만에 DynamicWepProject 만들어서 Oracle Database의 데이터를 꺼내오려는데 막힌다. driver는 불러오는데 connection이 생성이 되지 않는다. 1. url, user, pwd의 문제는 아니었다. 2. 리스너의 문제인가 싶어서 상태 확인 함. cmd > lsnrctl status TNS 작동이 되지않고, 어댑터 오류 등 리스너에 문제가 있는 것 같았다. ----------해 본 방법 : 전부실패함.---------- 1. 1521 방화벽 포트 열기 2. listener.ora, tnsnames.ora 파일에 Host 수정하기 3. ojdbc6.jar 에서 ojdbc8.jar 로 변경 전체 삭제 후 재설치 : 삭제방법은 이 블로그 참고. 재설치 했지만 sqlplus 접속 ..
git action - 에러 1. https://jojoldu.tistory.com/543 2. https://jojoldu.tistory.com/549 1. git action에서 에러남. * What went wrong: 27Execution failed for task ':compileJava'. 28> Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'. 서버에서도 11로 되어있는데 이런 에러가 난다. deplyo.yml에 버전을 바꿔줌. - name: Set up JDK 11 uses: actions/setup-java@v1 # (5) with: java-version: 11 빌드성공!
nohup.out실행시 8080 was already in use Description: Web server failed to start. Port 8080 was already in use. Action: Identify and stop the process that's listening on port 8080 or configure this application to listen on another port. 위와 같은 에러가 나왔다. ec2 서버에서는 netstat -ano 로 검색하면 pid가 검색되지 않음. 관리자 계정이나, sudo로 해줘야 되었던 것이다... sudo netstat -tnlp | grep 8080 나온 pid를 죽인다! kill -9 [PID] 해결 : https://velog.io/@semi-cloud/Spring-Boot-Web-serv..
nohup.out 실행시 오류 ./deploy.sh: line 48: -Dspring.profiles.active=real: command not found 며칠을 다 해봐도 안되어 가지고 deploy.sh 파일에 있는 Dspring.profiles.active=real 문구를 지움. 그래도 저문구 나온 후에 스프링 실행은 됨 그런데 그 후에 - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotatio..
./gradlew build 실행 후 에러 gradle 빌드 하니까 아래와 같은 에러 메시지가 나왔다. Starting a Gradle Daemon (subsequent builds will be faster) Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings **문구 바꿔서 넣어봄. (./gradlew build → ./gradlew ..
./gradlew test 후 java.lang.IllegalStateException 에러 테스트 페이지 run해봐도 오류 없이 잘 돌아가는데 ec2에서 ./gradlew test만 하면 위와 같은 오류가 발생함. "application-oauth.properties 파일은 보안상의 문제로 깃허브에 올리지 않았었는데, 이 파일 없이 테스트를 돌리니 오류가 발생했던 것이다. " 출처 : https://cookiee.tistory.com/687 ==> 하지만 나는 서버에 바로 올렸는데... 그리고 deploy.sh 파일도 수정했는데... 심지어 난 application.properties 파일은 깃허브에도 올라가 있다. 앗... 테스트 파일쪽에 application.properties가 없었다. 그래서 만들어줌. 이 문제는 해결이 되었다.
배포스크립트 만들기 .sh 파일을 만들어보자. [ec2-user@freelec-springboot2-webservice step1]$ vim nohub.out 나는 파일이 열리지가 않고 그냥 insert 하라고 뜬다.?? 일단 넘어가자!
./gradlew test 후 javafx에 대한 오류 [ec2-user@freelec-springboot2-webservice freelec-springboot2-webservice]$ ./gradlew test //오류메시지들... > Task :compileJava FAILED /home/ec2-user/.../freelec-springboot2-webservice/.../PostsService.java:9: error: package javafx.geometry does not exist import javafx.geometry.Pos; ^ 1 error FAILURE: Build failed with an exception. javafx와 jdk8은 더이상 호환이 안된다고 한다. 근데 나는 javafx를 이 프로젝트에서 사용하지도 않으므로 삭제를 하..

반응형