티스토리 뷰
Framework/SpringBoot
[Spring Boot] Ajp 에러- Invalid message received with signature
annajinee 2019. 4. 9. 15:09이전 포스팅에서 아래와 같이 config 설정 시
서버에 반영하니 간간히 Invalid message received with signature 라는 에러가 발생함
config 설정
package com.sweettracker.shoppingdiary.conf;
import org.apache.catalina.connector.Connector;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class TomcatConfig {
@Value("${server.http.port}")
private int httpPort;
@Bean
public ServletWebServerFactory servletContainer() {
TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
tomcat.addAdditionalTomcatConnectors(createAjpConnector());
return tomcat;
}
private Connector createAjpConnector() {
Connector ajpConnector = new Connector("AJP/1.3");
ajpConnector.setPort(httpPort);
ajpConnector.setSecure(false);
ajpConnector.setAllowTrace(false);
ajpConnector.setScheme("http");
return ajpConnector;
}
}
에러 내용
2019:04:09 14:33:17.474 ERROR --- [ajp-nio-8080-exec-3] org.apache.coyote.ajp.AjpMessage : Invalid message received with signature [18245]
2019:04:09 14:33:17.476 ERROR --- [ajp-nio-8080-exec-4] org.apache.coyote.ajp.AjpMessage : Invalid message received with signature [20559]
2019:04:09 14:33:17.584 ERROR --- [ajp-nio-8080-exec-5] org.apache.coyote.ajp.AjpMessage : Invalid message received with signature [20559]
2019:04:09 14:33:17.807 ERROR --- [ajp-nio-8080-exec-6] org.apache.coyote.ajp.AjpMessage : Invalid message received with signature [20559]
이때 AJP포트를 사용하지말고, Http 포트를 사용하도록 프로토콜을 바꿔준다
변경 전 : "AJP/1.3"
변경 후 : "HTTP/1.1"
수정된 config
package com.sweettracker.shoppingdiary.conf;
import org.apache.catalina.connector.Connector;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class TomcatConfig {
@Value("${server.http.port}")
private int httpPort;
@Bean
public ServletWebServerFactory servletContainer() {
TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
tomcat.addAdditionalTomcatConnectors(createAjpConnector());
return tomcat;
}
private Connector createAjpConnector() {
Connector ajpConnector = new Connector("HTTP/1.1");
ajpConnector.setPort(httpPort);
ajpConnector.setSecure(false);
ajpConnector.setAllowTrace(false);
ajpConnector.setScheme("http");
return ajpConnector;
}
}
참고 사이트
https://stackoverflow.com/questions/11836156/ajp-invalid-message-received-with-signature
'Framework > SpringBoot' 카테고리의 다른 글
[Spring Boot] Spring Boot 2.x Tomcat https-http 동시 사용 (Tomcat Ajp설정) (0) | 2019.04.09 |
---|---|
[Spring Boot] SpringBoot 2.x의 HikariCp 에러 정리 (0) | 2019.01.17 |
[SpringBoot] Spring REST API에 Swagger(스웨거)설정하기 (0) | 2017.07.26 |
[SpringBoot] Http를 Https로 전환/ 리다이렉트 시키기 (Redirecting HTTP to HTTPS in Spring Boot) (1) | 2017.07.24 |
[SpringBoot] Spring과 Spring Boot의 차이 (0) | 2017.07.12 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- exception종류
- HTTP
- Spring
- nginx
- SSL
- angular2
- JPA
- 프록시 설정
- 의존성 사이클
- plugin
- JPA 엔티티
- jpa 값타입
- springboot
- JPA 영속성관리
- entityfactory
- spring boot http
- 자바 가상머신
- entitymanager
- entity type
- HTTPS
- spring boot 포트
- JPA란
- AJP
- https 동시사용
- spring jpa
- 엔진엑스
- spring boot 2.1
- 플러그인
- spring boot
- tomcat Ajp
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함