sitelink1 https://dogcowking.tistory.com/43 
sitelink2  
extra_vars5  
extra_vars6  

수년전 사용했던 tomcat7 을 실행하니 갑자기 제목과 같은 오류가 발생함

 

* 환경

- apache-tomcat-7.0.5

- jdk1.8.0_92

 

 

* 오류 로그
... 생략
Caused  by: org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15
    at org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
    at org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
    at org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
... 생략

 

 

* 원인
톰캣 자체 버그로 보는 의견
- https://bz.apache.org/bugzilla/show_bug.cgi?id=57173#c16
- https://www.mkyong.com/tomcat/tomcat-7-java-8-invalid-byte-tag-in-constant-pool-15/

자바 1.8과  tomcat 7 의 충돌로 보는 의견
- http://stackoverflow.com/questions/23541532/org-apache-tomcat-util-bcel-classfile-classformatexception-invalid-byte-tag-in

설정 문제로 보는 의견
- http://stackoverflow.com/questions/6751920/tomcat-7-servlet-3-0-invalid-byte-tag-in-constant-pool/12730059#12730059
오류가 나는 프로젝트의 web.xml 의 <web-app> 요소에 metadata-complete="true" 를 설정하라고 함.

 


* 자바 버전 변경 시도 [실패]
- http://dogcowking.tistory.com/42
위 내용 참고하여 자바 버전을 1.7로 변경해봤으나 아무런 반응 없었음.

* web.xml 설정 변경
오류가 나는 프로젝트의 web.xml 의 <web-app> 요소에 metadata-complete="true" 를 설정
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"
metadata-complete="true">
- 성공함.

번호 제목 글쓴이 날짜 조회 수
73 [ChatGPT] nginx 에서 jetty 서버로 프록시중 "org.eclipse.jetty.http.BadMessageException: 400: Invalid SNI" 오류 황제낙엽 2024.11.12 167
72 [phind] jetty 와 tomcat 의 차이점 (성능, 사용성, 선호도) 황제낙엽 2024.10.31 237
71 jsp 에서 <script> 로 import 한 js 내의 한글이 깨진다 file 황제낙엽 2024.07.14 296
70 Nginx: 413 – Request Entity Too Large file 황제낙엽 2024.02.17 213
69 nginx 설치, 실행, SSL 설정, 프록시 설정 황제낙엽 2024.02.04 129
68 [bard] Nginx로 서브 도메인에 따라 내부의 포트만 다르게 실행중인 웹서버들을 라우팅 황제낙엽 2024.02.01 136
67 [Bing] "Apache"와 "Nginx" 의 차이점 황제낙엽 2024.01.31 246
66 Nginx 에 대하여 황제낙엽 2024.01.18 149
65 "org.apache.tomcat.util.net.SecureNioChannel.getSslEngine()" is null 황제낙엽 2023.06.22 242
64 windows tomcat 에 Let's Encrypt(SSL) 적용 황제낙엽 2023.06.21 285
63 AutoSet PHP 버전 업그레이드 (7.2.10 to 7.4.32) 황제낙엽 2022.10.09 624
62 401 - Unauthorized: Access is denied due to invalid credentials 황제낙엽 2021.08.27 251
61 iis error - Service Unavailable / HTTP Error 503. The service is unavailable. 황제낙엽 2020.09.23 700
60 [Bitnami WAMP] 설치후 PHP 설정 황제낙엽 2020.07.23 201
59 Autoset의 대안 Bitnami WAMP file 황제낙엽 2020.04.01 241
58 HTTP 오류 403.14 - Forbidden file 황제낙엽 2020.03.04 269
57 바인딩 편집 (사이트 바인딩) file 황제낙엽 2020.03.04 220
56 웹사이트에서 여러 도메인을 사용하는 방법 황제낙엽 2020.03.04 153
55 32비트 응용 프로그램 사용 (ASP, C#) file 황제낙엽 2019.10.31 2164
» [Tomcat 7] org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 15 황제낙엽 2019.10.16 462