๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๊ฐœ๋ฐœ/Web

[JBoss] ๋กœ๊น… ๋ฌธ์ œ, ์ž์ฒด์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋กœ๊ทธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ œ์™ธํ•˜๊ธฐ

by ynzu๐Ÿค 2021. 12. 31.
๋ฐ˜์‘ํ˜•

JBOSS๋Š” ์ž์ฒด์ ์œผ๋กœ ๋กœ๊ทธ ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•œ๋‹ค. ๋•Œ๋ฌธ์— slf4j ๋กœ๊ทธ ๊ธฐ๋Šฅ์„ ์‚ฌ์šฉํ•˜๋Š” ์›น ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ deployํ•˜๊ฒŒ ๋˜๋ฉด ์ถฉ๋Œ์ด ๋ฐœ์ƒํ•˜์—ฌ ๋กœ๊ทธ๊ฐ€ ์ œ๋Œ€๋กœ ๋‚จ์ง€ ์•Š๋Š”๋‹ค.

๋”ฐ๋ผ์„œ ๊ฐœ๋ณ„ Web Application์— JBOSS ๋กœ๊น… ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋„๋ก ์ œ์™ธ ์‹œ์ผœ์•ผ ํ•œ๋‹ค.

 

ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

1. JBOSS ์ธ์Šคํ„ด์Šค ์˜ต์…˜ ์ถ”๊ฐ€ 
JBOSS ์‹œ์ž‘ ์˜ต์…˜์— ์•„๋ž˜ ์„ค์ •์„ ์ถ”๊ฐ€ํ•˜์—ฌ ์ž์ฒด ๋กœ๊ทธ ๋ชจ๋“ˆ์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๋„๋ก ํ•œ๋‹ค.

  • Standalone
-Dorg.jboss.as.logging.per-deployment=false

 

  •  ๋„๋ฉ”์ธ
<server name="PMS" group="pms_server_group" auto-start="false">
	<system-properties>
    		<property name="org.jboss.as.logging.per-deployment" value="false"/>
	</system-properties>
</server>

 



2. Web Application์— jboss-deployment-structure.xml ์ถ”๊ฐ€ํ•˜์—ฌ ๋ฐฐํฌ

  • ์œ„์น˜ 

WAR : WEB-INF/jboss-deployment-structure.xml
EAR : META-INF/jboss-deployment-structure.xml

<jboss-deployment-structure>
   <deployment>
      <exclusions>
         <module name="org.apache.commons.logging" />
         <module name="org.apache.log4j" />
         <module name="org.slf4j"/>
         <module name="org.slf4j.impl"/>
      </exclusions>
   </deployment>
</jboss-deployment-structure>
728x90
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€