본문 바로가기
개발자의 공부방/에러 일기

스프링 에러 01]

by 쌈빡한 쥬니준 2019. 3. 14.

스프링 에러



스프링 프로젝트를 생성하고 셋팅을 하는 과정에서 아래와 같은 에러가 떴다


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
32
33
34
35
36
37
38
심각: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:629)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name [encodingFilter]
    at org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:3018)
    at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2981)
    at org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1269)
    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1184)
    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:769)
    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    ... 10 more
 
3월 142019 6:12:25 오후 org.apache.catalina.startup.HostConfig deployDescriptor
심각: Error deploying configuration descriptor [C:\Server\apache-tomcat-8.5.35\conf\Catalina\localhost\ROOT.xml]
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:758)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:629)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
cs





이 두개의 에러가 무엇때문인지 계속 찾다가 결국에는 알아냈다.


org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]

Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name [encodingFilter]




원인은 filter-name 때문이다. encodingFilter인데 enconding 이라고 해서 에러가 계속 떴었던 것.....

즉, 스펠링 하나 잘못 넣어서 그런 것이였다ㅠㅠㅠ...휴...

일반적으로 name이라고 쓰는데는 마음대로 이름 넣어도 되는 줄 알았더니만 그게 아니였다는 사실!



댓글0