본문 바로가기

tomcat

리눅스에서 톰캣 자동실행 스크립트 /etc/rc.d/init.d/tomcat 이란 파일로 다음 내용을 작성한다. tomcat 의 경로를 정확하게 해주세여. (주의 윈도에서 만들어 복사하면 실행 안됨-_-) #!/bin/sh # Source function library. . /etc/rc.d/init.d/functions source /etc/profile export CATALINA_HOME=/usr/local/tomcat # See how we were called. case "$1" in start) echo -n "Starting tomcat EXPERIMENTAL: " daemon $CATALINA_HOME/bin/startup.sh echo ;; stop) echo -n "Shutting down tomcat EXPERIMEN.. 더보기
logrotate를 활용하여 TOMCAT 로그파일(catalina.out) 일자별로 관리하기 How to use logrotate with Apache's Tomcat Catalina로그를 한 파일에 누적되는 것을 피하기 위해서 보통은 cronolog, log4j를 활용을 많이 하는데 기존 리눅스 시스템의 소프트웨어를 활용하는 방안을 하나 소개해 드립니다. 1. /etc/logrotate.d 디렉토리 안에 아래의 파일을 생성 $ cd /etc/logrotate.d $ cat tomcat ${CATALINA_HOME}/logs/catalina.out { copytruncate daily rotate 30 compress missingok notifempty dateext } $logrotate -f /etc/logrotate.d/tomcat # 로그파일 순환 테스트 copytruncate : 기존.. 더보기
The type Collection is not generic; it cannot be parameterized with arguments <? extends E> 아래와 같은 Exception이 발생하였음. 3시간정도를 고민하다가 Gauce 기술지원센터에 문의한 결과 10분만에 해결한 내용임.. ㅠ.ㅠ http://www.gauce.com/zboard.php?id=gauceFAQ&page=2&sn1=&divpage=1&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&no=49 An error occurred at line: 14 in the generated java file The type Collection is not generic; it cannot be parameterized with arguments 더보기
tomcat에서 port추가 server.xml에 아래를 추가해 준다. 추가 더보기