Error-log

Sourcetree ๋กœ ๊ณต์œ ํ•œ eclipse ํ”„๋กœ์ ํŠธ tomcat ์—ฐ๊ฒฐ ์—๋Ÿฌ.

jjingle 2021. 12. 23. 14:11

(21.12.21 ํ˜„์žฌ ํŒ€ํ”„๋กœ์ ํŠธ ์ง„ํ–‰์ค‘)

ํŒ€์›์ด ์›๊ฒฉ์ง€์— ์˜ฌ๋ฆฐ ํ”„๋กœ์ ํŠธ๋ฅผ ์ดํด๋ฆฝ์Šค์—์„œ ์—ด๊ธฐ ์„ฑ๊ณตํ–ˆ์œผ๋‚˜, ํ†ฐ์บฃ์„œ๋ฒ„์— ์—ฐ๊ฒฐ๋˜์ง€ ์•Š์•˜๋‹ค.

๊ณต์œ ํ•œ ์‚ฌ๋žŒ์„ ์ œ์™ธํ•œ, ๋ชจ๋‘๊ฐ€ ์„œ๋ฒ„์— ์—ฐ๊ฒฐ๋˜์ง€ ์•Š์•„ 404 ์—๋Ÿฌ๊ฐ€ ๋™์ผํ•˜๊ฒŒ ๋–ด๋‹ค.

 

  • ๊ณต์œ ํ•œ ์‚ฌ๋žŒ์ด ์„œ๋ฒ„์— ์—ฐ๊ฒฐ์„ ์‹œ๋„ํ•˜๊ณ  ๋‚ด๋ณด๋‚ด์„œ..?
  • tomcat v8.5 ์‚ญ์ œ ํ›„ ์žฌ์—ฐ๊ฒฐ 
  • Java Build Path > library > Server Runtime <- ์ด ๋ฐฉ๋ฒ•์€ jsp ๋นจ๊ฐ„์ค„ ์—๋Ÿฌ๋ฅผ ์—†์• ์ฃผ๊ธด ํ–ˆ๋‹ค.

์œ„์˜ ๋ฐฉ๋ฒ•์„ ์‹œ๋„ํ–ˆ์œผ๋‚˜ ์ „๋ถ€ ๋˜‘๊ฐ™์€ ๊ฒฐ๊ณผ. 

์›น์— ์—ฐ๊ฒฐ์ด ์•ˆ๋˜๋Š” ์ด์œ ๊ฐ€ ๋ญ˜๊นŒ,,,์ƒ๊ฐํ•˜๋‹ค ์„œ์น˜์„ฑ๊ณต..!

Properties &gt; Deployment Assembly

* ์œ„ ์‚ฌ์ง„์—์„œ ๋‘๋ฒˆ์งธ ํ•ญ๋ชฉ์„' /src/main/webapp ' ์ œ๊ฑฐํ•˜๊ณ , 

'/WebContent' ๊ฒฝ๋กœ๋ฅผ ์ƒˆ๋กญ๊ฒŒ ์ถ”๊ฐ€ํ•ด์คฌ๋‹ค.

 

๋ณ€๊ฒฝํ•œ ๋ถ€๋ถ„์ด ํ”„์  ์ƒ์„ฑ์‹œ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์„ค์ •๋œ ๊ฐ’์ด๋ผ, ํ”„์  ์ƒ์„ฑํ•˜์‹  ๋ถ„์ด ์„ค์ •์„ ๋นผ๋จน์œผ์‹ ๊ฒŒ ์•„๋‹๊นŒ..์ƒ๊ฐ

์–ด์จ‹๊ฑฐ๋‚˜ ์ •์ƒ์ ์œผ๋กœ ์›นํŽ˜์ด์ง€๋กœ ์—ฐ๊ฒฐ์ด ๊ฐ€๋Šฅํ•ด์ ธ์„œ ๋‹คํ–‰์ด๋‹ค.

๊ฐ™์€ ์—๋Ÿฌ๋‚˜์‹  ํŒ€์› ๋ถ„๋“ค ๋ชจ๋‘ ์ด ๋ฐฉ๋ฒ•์œผ๋กœ 404 ํ•ด๊ฒฐ ์™„๋ฃŒ!

 


 

*ํ•ด๊ฒฐ๋ฐฉ๋ฒ• ์ฐธ์กฐํ•œ ๋ธ”๋กœ๊ทธ! ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค :)

https://yjh5369.tistory.com/entry/eclipse-tomcat-%EC%97%B0%EB%8F%99-%EC%8B%9C-404-%EC%97%90%EB%9F%AC-%ED%95%B4%EA%B2%B0-%EB%B0%A9%EB%B2%95

 

eclipse tomcat ์—ฐ๋™ ์‹œ 404 ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

์ •์ƒ ๊ฒฝ๋กœ(WebContent/index.jsp)์— ํŒŒ์ผ์ด ์žˆ๋Š”๋ฐ ์›น ํŽ˜์ด์ง€ ์ ‘๊ทผ ์‹œ(localhost:8080/index.jsp)๋ฅผ ์ ‘์†ํ–ˆ์„ ๋•Œ ์•„๋ž˜์™€ ๊ฐ™์ด 404์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ๋จผ์ €, ํ˜„์ƒ์„ ํ™•์ธํ•ด๋ณด๋‹ˆ ์ด์ƒํ•œ ์ ์ด ์žˆ์—ˆ

yjh5369.tistory.com