inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

localhost:8080 웹서버 오류

198

whdk333

작성한 질문수 31

0

2024-06-09T19:20:09.876+09:00 INFO 32188 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'

2024-06-09T19:20:10.052+09:00 WARN 32188 --- [ restartedMain] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning

2024-06-09T19:20:10.081+09:00 INFO 32188 --- [ restartedMain] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html]

2024-06-09T19:20:10.503+09:00 INFO 32188 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729

2024-06-09T19:20:10.542+09:00 INFO 32188 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path ''

2024-06-09T19:20:10.552+09:00 INFO 32188 --- [ restartedMain] jpabook.jpashop.JpashopApplication : Started JpashopApplication in 6.897 seconds (process running for 7.432)

2024-06-09T19:21:00.891+09:00 INFO 32188 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'

2024-06-09T19:21:00.891+09:00 INFO 32188 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'

2024-06-09T19:21:00.893+09:00 INFO 32188 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms

 

 

Execution failed for task ':JpashopApplication.main()'.

> Build cancelled while executing task ':JpashopApplication.main()'

* Try:

> Run with --stacktrace option to get the stack trace.

> Run with --info or --debug option to get more log output.

> Run with --scan to get full insights.

> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1m 41s

3 actionable tasks: 1 executed, 2 up-to-date

 

위와 같은 오류때문에 localhost:8080에 페이지가 제대로 표시되지않습니다. 해결부탁드립니다.

오류 서버 localhost:8080실행오류

답변 1

0

인프런 AI 인턴

안녕하세요, 인프런 AI 인턴입니다.

whdk333님, 제공해 주신 로그를 기준으로 문제 해결을 위해 몇 가지 확인해 볼 사항이 있습니다.

  • 포트 충돌: 포트 8080이 이미 사용 중인지 확인해야 합니다. 다른 애플리케이션이 같은 포트를 사용하고 있다면 충돌이 발생할 수 있습니다. 이 경우, 애플리케이션의 포트를 변경하거나 충돌이 발생하는 다른 프로세스를 종료해야 합니다.
netstat -ano | findstr :8080

위 명령어를 통해 포트를 사용 중인 프로세스 ID를 확인한 후, 작업 관리자나 taskkill 명령어를 사용하여 해당 프로세스를 종료할 수 있습니다.
예를 들어, 프로세스 ID가 1234일 경우, 아래 명령어로 종료할 수 있습니다.

taskkill /PID 1234 /F
  • Gradle 경고 및 에러: Deprecated Gradle features were used in this build 메시지가 보입니다. Gradle 9.0 이상 버전과 호환되지 않는 기능이 사용되었다는 경고입니다. 프로젝트의 Gradle 설정을 점검하고 필요에 따라 업데이트를 고려해 보세요. 또한, --warning-mode all 옵션을 사용하여 구체적인 경고 메시지를 확인하는 것이 좋습니다.

  • build 실패: 마지막으로, Build failed 메시지가 보입니다. --stacktrace, --info, --debug 옵션을 사용하여 더 자세한 오류 메시지를 확인해 보세요. 예를 들어, Gradle 명령어를 실행할 때 다음과 같이 옵션을 포함하여 상세한 로그를 확인할 수 있습니다.

./gradlew bootRun --stacktrace

이 단계들을 통해 문제를 해결하려 시도해 보세요. 디버깅 과정에서 나타나는 구체적인 오류 메시지를 바탕으로 추가적인 해결 방법을 모색할 수 있습니다.

23강 캘린더 화면 실습 강의 2가지 질문

0

38

1

강의 오류 확인 요청

0

55

1

피그마 연결 오류

0

141

1

교재 오류

0

101

2

저도 에뮬레이터 버그가 있는 것 같습니다.

0

168

2

DummyClient cpu스펙 질문있습니다.

0

121

2

업캐스팅 16분 40초 부근입니다.

0

212

1

오류관련문의

1

269

1

custom partitioner 을 이용한 메세지역전 현상 해결방안

0

399

1

위치 동기화 기능구현 질문이 있습니다

1

952

2

서버엔진 수요에 관해서 질문드립니다.

0

867

1

서버(백앤드) 강의 문의드립니다.

0

738

1

회원가입 당시의 토큰 발행 문의 드립니다.

0

550

2

셀레니움 기초 사용법 강좌 질문

3

676

1

로그인 에러(특이 오류는 없는데 로그인 안되는 현상)

0

688

0

GeolocationPositionError 오류 해결법 공유

2

1002

1

was든 웹서버든 다 서버의 역할을 하는거죠 ?

0

750

1

청크 기반 스텝, 서버 재기동

0

285

1

실제로 서버 구성을 할 경우

0

573

1

프로젝트 완성 예시 css 밀림

0

482

1

테스트 오류

0

322

1

백 서버 구축 실패 ( 패키지 설치 에러)

0

470

1

똑같이 작성했는데 오류가 발생합니다 ㅠ

0

329

1

tomcat은 정확히 무슨 역할을 하는건가요?

0

1989

1