๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

Tomcat3

ํ•˜๋‚˜์˜ tomcat์— ๊ฐ™์€ ํ”„๋กœ์ ํŠธ ๋‘๊ฐœ ์ด์ƒ ๋„์šฐ๊ธฐ : 'webapp.root' ์—๋Ÿฌ ํ•˜๋‚˜์˜ ํ†ฐ์บฃ์— ๊ฐ™์€ ํ”„๋กœ์ ํŠธ๋ฅผ ๋‘๊ฐœ ์ด์ƒ ๋„์—ˆ์„ ๋•Œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ์‹ฌ๊ฐ: Exception sending context initialized event to listener instance of class ch.qos.logback.ext.spring.web.LogbackConfigListener java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' log4j์˜ default value๊ฐ€ webapp.root๋ผ ๋”ฐ๋กœ ์ง€์ •ํ•ด์ฃผ์ง€ ์•Š๋Š”๋‹ค๋ฉด ์ค‘๋ณต๋œ๋‹ค. ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์€ ๊ฐ„๋‹จํ•œ๋‹ค! web.xml์— ์•„๋ž˜์™€ ๊ฐ™์ด ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋! param-value๋ฅผ ์ง€์ •ํ•ด์ฃผ๋ฉด ๋œ๋‹ค webAppR.. 2021. 12. 13.
[Apache] web-was ์—ฐ๋™, socket_timeout ์„ค์ • ์ด์Šˆ ํ˜„์ƒ web-was๊ฐ€ ์—ฐ๋™๋œ ํ”„๋กœ์ ํŠธ์—์„œ ํ…Œ์ŠคํŠธ๋ฅผ ํ•˜๋Š”๋ฐ ๋ฐ์ดํ„ฐ ์ค‘๋ณต ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜์˜€๋‹ค. ๋‹ค๋ฅธ ์„œ๋ฒ„๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜๋Š”๋ฐ ๊ทธ ์„œ๋ฒ„์—์„œ ์‘๋‹ต์ด 10์ดˆ์•ˆ์— ์˜ค์ง€ ์•Š์•„ ์šฐ๋ฆฌ ์„œ๋ฒ„์—์„œ๋Š” ์žฌ์š”์ฒญ์„ ํ•˜๊ณ , ๊ทธ ์„œ๋ฒ„์—์„œ๋Š” ์ด๋ฏธ ๋ฐ์ดํ„ฐ ์ฒ˜๋ฆฌ๋ฅผ ํ–ˆ๊ธฐ ๋•Œ๋ฌธ์— ์ค‘๋ณต ์š”์ฒญ์ด ๋œ ๊ฒƒ์ด๋‹ค. (์šฐ๋ฆฌ ์„œ๋ฒ„์—์„œ๋Š” ํ•ด๋‹น ์š”์ฒญ๊ฑด์ด ๋ฏธ์™„๋ฃŒ ์ƒํƒœ์ด๊ณ ..) apache์ชฝ ์„ค์ • ํŒŒ์ผ ์ค‘ workers.properties๊ฐ€ ์žˆ๊ณ , socket_timeout์ด๋ผ๋Š” ํ•ญ๋ชฉ์ด ์žˆ๋Š”๋ฐ ์ด๊ฒŒ 10์œผ๋กœ ์„ค์ •๋˜์–ด ์žˆ์„ ๊ฒฝ์šฐ ์‘๋‹ต์ด ํ•ด๋‹น ์‹œ๊ฐ„ ์•ˆ์— ์˜ค์ง€ ์•Š์œผ๋ฉด ์žฌ์š”์ฒญํ•˜๊ฒŒ ๋œ๋‹ค... ์„œ๋ฒ„์˜ ์ƒํ™ฉ์— ๋งž๊ฒŒ ์กฐ์ ˆํ•ด์„œ ์“ฐ์ž.. worker.worker1.socket_timeout=10 2021. 11. 30.
[Tomcat] JNDI ์ •๋ณด ์•”ํ˜ธํ™”(DB์ •๋ณด : url, username, passowrd) / KDF ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ด์šฉ 1. url, username, password๋ฅผ encrypt ํ•œ๋‹ค. KDFEncrypted.java import java.security.MessageDigest; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import org.apache.commons.codec.binary.Hex; public class KDFEncrypted { public static void main(String[] args) { String key = "test"; String url = "jdbc:tibero:thin:@10.10.10.XX:XXXX:tibero"; St.. 2021. 11. 30.
728x90
๋ฐ˜์‘ํ˜•