어느 조찬모임에서 예전 진대제 정보통신부장관이
외국인에게 들었다며
`100점짜리 인생을 만드는 법`을 소개했다.

일단 알파벳 순서대로 숫자를 붙여주라고 했다.
A에 1을 붙여주고 B에 2, C에 3, D에 4...
이런식으로 가면 Z는 26이 된다.

A B C D E F G H I J K L M N
1 2 3 4 5 6 7 8 9 10 11 12 13 14
O P Q R S T U V W X Y Z
15 16 17 18 19 20 21 22 23 24 25 26

그런 다음 알파벳 단어를 숫자로 환산해서 점수를 낸다.

진장관이 물었다.

" 열심히 일하면 될까요? " 그리고는 계산을 해봤다.

hard work, 98(8+1+18+4+23+15+18+11)점이었다.
일만 열심히 한다고 100점짜리 인생이 되는건 아니었다.

 

그렇다면 지식이 많으면? knowledge는 96점이다.

으로 될까? luck 47점이었다.

이 많으면? money는 72점이었다.

리더십은? leadership 89점이었다.

진장관이 물었다. "그럼 100점짜리는 뭘까요?"


" 답은 마음먹기(attitude)입니다.
인생은 `마음먹기`에 따라 100점짜리가 될 수 있습니다. " 


 
 
 
 
 
 

몇일 동안 고생했다..

값은 물론이고 파라미터 명 조차도 넘어오지 않는 초유의 사태를...

 

역시 초보 개발자는 뭘 해도 맨땅에 헤딩이니 원..

 

문제는 form에서 입력 필드를 선언한 놈에 있었다.

사용자가 입력하지 못하도록 disabled 선언을 해놓은게 문제..

 

readonly 로 바꾸어 실행 하니 해결되었는데..

 

disabled로 선언한 놈은 객체로 인식을 안한댄다.. 아예..

 

흠.. 힘들었네..

 

똥태야 고마워~ 너는 정말 좋은 친구야~~ ㅎㅎㅎㅎ


기존에는

commons-dbcp-1.2.1.jar

commons-pool-1.2.jar

commons-collections-3.1.jar

등 여러 라이브러리 파일을 톰캣 lib에 추가하여 설정하여야 했지만

요즘 톰캣(내 기준 6.0)에는 위 라이브러리가 tomcat-dbcp.jar 라는 이름으로 통합되어 포함되어 있다.

기타 설정 방법은 예전 DBCP 방식과 동일

1) server.xml 설정

 - <GlobalNamingResources></GlobalNamingResources>부분에 아래 내용 추가
   
<Resource name="jdbc/자기가설정하고 싶은 이름" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
     url="jdbc:oracle:thin:@DB URL:1521:orcl" username="DB login ID" password="DB login PASS"
     loginTimeout="10" maxActive="100" maxIdle="30" maxWait="10"/>

..

<Context> </Context> 부분에 다음 처럼 수정

 <Context docBase="XXXX" path="/XXXXX" reloadable="false" source="org.eclipse.jst.jee.server:XXXX">
       <Resource name="jdbc/자기가설정하고 싶은 이름" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.driver.OracleDriver"
     url="jdbc:oracle:thin:@DB URL:1521:orcl" username="DB login ID" password="DB login PASS"
     loginTimeout="10" maxActive="100" maxIdle="30" maxWait="10"/>

 </Context>

 

 

2) web.xml

<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/자기가설정하고 싶은 이름</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

 

3) tomcat 재시작


Illegal access: this web application instance has been stopped already.

 

Question: What causes these frequent Tomcat catalina.log messages "INFO: Illegal access: this web application instance has been stopped already."? I do not want to disable INFO level logging, so it would be nice to stop the root of the problem. I tried disabling RSS and Lucence and they still keep coming out. The full log entry looks like this: May 8, 2005 9:34:09 PM org.apache.catalina.loader.WebappClassLoader loadClass INFO: Illegal access: this web application instance has been stopped already. Could not load org.xml.sax.helpers.XMLReaderFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.

 

 

A:I found this explanation from web: It is possible that this is caused by Tomcat unsuccessfully reloading the web application. The app is unloaded, but all threads don't get shut down properly. As a result, when the threads try to run, they get clobbered by the fact that Tomcat has shut down its classloader, and an error is logged. The best fix is to turn off automatic webapp reloading for the application: in Tomcat's server.xml, find the <Context> declaration, and ensure it is set to: reloadable="false" 


+ Recent posts