반응형
반응형
반응형



Spring + Tomcat 어플에서 start 시 아래와 같은 에러를 뱉으면서 멍~ 때리는 현상.


“SEVERE: Error listenerStart”…

“SEVERE: Context [] startup failed due to previous errors”,


web.xml 을 유심히 살펴보면 뭔가 설정에 오류가 있을꺼임. --;

두눈 똑띠 뜨고 잘 봐야함. ㅋ


설정 값들에 오타나 path 가 잘 못 된 경우가 많음.



반응형

'Server > Tomcat' 카테고리의 다른 글

access 로그 설정  (2) 2009.04.23
Tomcat 5.x 에서 jsp 한글 문제  (0) 2009.02.11
java.library.path 정보  (0) 2009.02.11
반응형

Tomcat 사용 시 Access Log를 기록하는 방법은 다음과 같습니다.

 

$CATALINA_HOME/conf/server.xml 파일 내용 중 아래 부분의 주석을 제거하신 후 Tomcat을 재 시작하시면 됩니다.

 

        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="localhost_access_log." suffix=".txt"
                 pattern="common" resolveHosts="false"/>
        -->

 

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/apps/atlassian/logs" prefix="" suffix=".tomcat2_access.log"
pattern="%t %a %Ts %{userid}r %B %U%q"
fileDateFormat="yyyy-MM-dd"
resolveHosts="false"/>

 

참조: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

 

 

 

  • %a - Remote IP address
  • %A - Local IP address
  • %b - Bytes sent, excluding HTTP headers, or '-' if zero
  • %B - Bytes sent, excluding HTTP headers
  • %h - Remote host name (or IP address if resolveHosts is false)
  • %H - Request protocol
  • %l - Remote logical username from identd (always returns '-')
  • %m - Request method (GET, POST, etc.)
  • %p - Local port on which this request was received
  • %q - Query string (prepended with a '?' if it exists)
  • %r - First line of the request (method and request URI)
  • %s - HTTP status code of the response
  • %S - User session ID
  • %t - Date and time, in Common Log Format
  • %u - Remote user that was authenticated (if any), else '-'
  • %U - Requested URL path
  • %v - Local server name
  • %D - Time taken to process the request, in millis
  • %T - Time taken to process the request, in seconds
  • %I - current request thread name (can compare later with stacktraces)

반응형
반응형

정말 대략난감했다.

먼넘의 기술들은 변화만하면 기존의 설정들을 계속 바꿔줘야하는지..

이번도 마찬가지이다..

 

Tomcat 4.x 버전에서 잘되던 JSP 한글이 5.x 버전에서는 깨진다..

POST 방식에서는 문제가 없지만 GET 방식에서 깨지는 문제인데..

아파치에서 문서를 잘 살펴보니..역시나 변경되었다..ㅡ.ㅡ;;

 

1. Tomcat 4.x 버전

  1) POST 방식 : request.setCharacterEncoding("euc-kr");

  2) GET 방식 : request.setCharacterEncoding("euc-kr");

 

 

2. Tomcat 5.x 버전

  1) POST 방식 : 기존 4.x 버전과 같이 request.setCharacterEncoding("euc-kr");

  2) GET 방식 : 바뀌었다..그것도 server.xml 을 수정해줘야한다. 아래와 같이 추가해준다

    <Connector port="8080"
               maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="euc-kr"/>

 

    <Connector port="8009"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" URIEncoding="euc-kr"/>


반응형

'Server > Tomcat' 카테고리의 다른 글

Context [] startup failed due to previous errors 라며 멍 때리는 현상.  (0) 2014.03.21
access 로그 설정  (2) 2009.04.23
java.library.path 정보  (0) 2009.02.11
반응형

테스트환경 : Jdk1.5.0_11

                  Tomcat 6.0

 

이런 환경의 경우 아래와 같은 경우가 빈번히 발생하는 모양입니다.

저두 오늘 테스트해보니, 아래와 같은 멧세지를 만나고야 말았습니다.. ^^*

일단 오류는 아니라서 문제될것 같진 않지만.. ^^*

 

The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path

 

여러가지 이유가 있는것 같지만,

 

제 경우는 이렇습니다.

APR(Apache Portable Runtime)이라는 Apache와 Tomcat간의 연동간에 지원을 하는 녀석인 듯 한데, 저는 연동할 생각이 없기에...

 

server.xml 에서

<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /> 부분을 주석처리 했습니다.

 

그게 아니면 ( 아래 발췌 :  minochil님이 작성하신 글)

 

윈도우 : tcnative-1.dll

리눅스, UNIX : tcnative-1.so

http://tomcat.heanet.ie/native/1.1.6/binaries/

윈도우즈는 위에서 DLL을 다운 받아서 Path로 잡혀있는 디렉토리에 두는 것으로 끝!!
리눅스에서는 위 URL에서 소스 받아서 설치하시고

profile이나 톰캣 실행 스크립트에

LD_LIBRARY_PATH 환경변수 만들고 설치 디렉토리를 지정해주면 됩니다.

export LD_LIBRARY_PATH="/usr/local/apr/lib"

 

====================================================================

참고내용 : http://tomcat.apache.org/tomcat-6.0-doc/apr.html

 

Tomcat의 설치 시 아래와 같은 방법으로 설치하면 자동으로 tcnative-1.dll 을 다운받아 설치하내요.. ^^*

반응형

+ Recent posts