webgoat 실행 시 나는 오류(asciiDoctorTemplateResolver)
노트북으로 webgoat 실행하려고 했는데 오류가 났다.
오류 시작 ~ 끝 내용 일부
io/console not supported; tty will not be manipulated 2022-02-10 14:02:31.626 WARN 5324 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'asciiDoctorTemplateResolver' defined in class path resource [org/owasp/webgoat/MvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.owasp.webgoat.AsciiDoctorTemplateResolver]: Factory method 'asciiDoctorTemplateResolver' threw exception; nested exception is java.lang.ExceptionInInitializerError ... Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- asciidoctor at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040) ~[jruby-complete-1.7.21.jar:na] at RUBY.require(file:/C:/Users/源?꾩?/AppData/Local/Temp/webgoat-server-8.0.0.M24.jar-spring-boot-libs-512a855d-8016-416d-a739-68c5166632a8/jruby-complete-1.7.21.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54) ~[na:na] at RUBY.(root)(<script>:9) ~[na:na] |
보니까 asciiDoctorTemplateResolver 부분이랑 경로 이름이 깨진 걸로 봐서 저거 문젠가 싶었는데, 역시나였다.
웹고트 이슈에도 나랑 똑같은? 내용이 올라왔다.
https://github.com/WebGoat/WebGoat/issues/541
답변을 보면 경로 중에 중국어가 있었을 때는 안됐는데 영어로 바꾸니 해결됐다고 한다.
나는 한국어라 안됐나보다.
근데 내 경우는 영어로 바꾸려면 컴퓨터 포맷하거나 해야하는데 어떡하면 좋을까,,^_^