ํฐ์คํ ๋ฆฌ ๋ทฐ
๋ฐ์ํ
error
A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [/] does not meet these criteria and has been changed to []
tomcat ์๋ฒ๋ฅผ ๊ตฌ๋์์ ๋ค์๊ณผ ๊ฐ์ ์๋ฌ warning ๋ฉ์ธ์ง๊ฐ ๋ฐ์ํ์๋ค.
ํด๊ฒฐ
tomcat ๋ฒ์ ์ ๋ฐ๋ฅธ context path์ ์ ์ฝ์ฌํญ์ด ์๊ฒจ์ ๋ฐ์ํ๋ ๋ฌธ์ ์ด๋ค.
์๋ฌ๋ฉ์ธ์ง์ ๋ด์ฉ์ "context path์ ๋น ๋ฌธ์์ด์ ์ฌ์ฉํ๊ฑฐ๋, "/"๋ก ์์์ ํ์ง๋ง "/"๋ก ๋๋์ง ์์ ๊ฒฝ๋ก๋ฅผ ์จ์ผํ๋ค." ๋ ๋ด์ฉ์ผ๋ก, ์ด ๊ฒฝ์ฐ์ ๋ค์๊ณผ ๊ฐ์ด ํด๊ฒฐํ์๋ค.
tomcatํด๋ > conf > server.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="" docBase="base" reloadable="false" > </Context>
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
Context์ path์ "/"๊ฐ ์๋ ""(๋น๋ฌธ์์ด)์ ๋ฃ์ผ๋ ์ ์์ ์ผ๋ก ๋์ํ๊ณ ํด๋น ๋ฉ์ธ์ง๋ ์ฌ๋ผ์ก๋ค.
์ถ๊ฐ๋ก ์๋ฐ์ฝ๋๋ฅผ ํตํด ๋ฉ์ธ์ง๋ฅผ ์์ ๋ ๋ฐฉ๋ฒ์ ์๋์ ๋งํฌ๋ฅผ ์ฐธ๊ณ ํ๋ฉด ๋๋ค.
Ref
๋ฐ์ํ
๋ฐ์ํ
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
๋งํฌ
TAG
- Java
- docker
- ๋ ์
- ๋ฐ์ดํฐ๋ฒ ์ด์ค
- Stream
- VMware
- xml
- mysql ์ค์
- yml ๋ถ๋ฆฌ
- ๋์ปค
- ์ฝ๋์คํ ์ด์ธ
- ์ฐ๋ถํฌ
- ๋ฐฑ์ค
- ๋ค์ด๋๋ฏนํ๋ก๊ทธ๋๋ฐ
- sqld
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ ์ค๊ธฐ
- oracle
- ์ํฐ๋ ์ฑ๋ฆฐ์ง
- Til
- error
- Spring
- PostgreSQL
- ํ๊ณ
- JSP
- mapper
- preproject
- modifiedAt
- pyinstaller ์ค์น
- codestates
- doit์๊ณ ๋ฆฌ์ฆ์ ๋ฌธ
| ์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
๊ธ ๋ณด๊ดํจ
