이클립스에서 톰캣 publish할때 에러

Tomcat 오류.. Could not delete xxx. May be locked by another process 에러 발생시 1. 이클립스에서 Tomcat SErver를 우클릭 후 Clean을 시킨다. 2. 이클립스 메뉴바에 Project -> Clean을 실행시킨다 3. Tomcat Server의 왼쪽을 누른 후 자신이 원하는 Project를 우클릭 후 Clean module work directory를 클릭한다 Resource is out of sync with file system. 에러 발생시 package Project뷰에서 F5를 눌러서 프로젝트폴더를 새로고침을 해주면 해결된다 java.lang.ClassNotFoundException : org.springframework.web.context.CointextLoaderListener 에러 발생시 1. 우선 웹프로젝트의 Deployment Assembly 에 라이브러리가 제대로 등록되지 않은 경우 프로젝트 >> properties >> Deployment Assembly를 선택한 후, "Add" >> Java Build Path Entries >> Maven Dependencies 선택한 후, "Apply"를 해준다. 2. eclipse project property에서 deploymentAssembly 카테고리가 사라졌을 경우 org.eclipse.wst.common.project.facet.core.nature 프로젝트 .project > natures 에 org.eclipse.wst nature를 추가한다. <?xml version="1.0" encoding="UTF-8"?> <projectDescription>   <name>snsbook</name>   <comm...

BoneCP(Javadatabaseconnectionpool) 설정및사용-Spring의AppContext

BoneCP 설정 및 사용 * 예제 http://jolbox.com/index.html?page=http://jolbox.com/configuration-spring.html * 설정 <default-config> <!-- Sets the name of the pool for JMX and thread names. --> <!-- <property name="poolName">(null or no default value)</property> --> <!-- Sets the minimum number of connections that will be contained in every partition.      Also refer  to {@link #setPoolAvailabilityThreshold(int)}. --> <property name="minConnectionsPerPartition">0</property> <!-- Sets the maximum number of connections that will be contained in every partition.       Setting this to 5 with 3 partitions means you will have 15      unique connections to the database.  Note that the connection pool will not      create all these connections in one go but rather start off  with      minConnectionsPerPartition and gradually increase connections as r...

프로그램에서 LinkedHashMap의 활용 방법

이미지
프로그램에서 LinkedHashMap의 활용 방법 HashTable의 단점은 의도한 대로 정렬이 되지 않는다는 것이다. 즉 넣은 순서대로 값을 가져올 수 있는 것이 아니라, 내부적으로 HashCode에 의해 임의로 정렬이 일어난다. JDK 1.4 버전부터는 LinkedHashMap 객체를 사용하면, 넣은 순서대로 값을 가져올 수 있다. LinkedHashMap의 활용에 대해서는 아래 예제를 참고하면 된다. import java.util.*; public class LinkedHashMapTest {                 public static void main(String[] args) throws Exception {                                 LinkedHashMap lhm = new LinkedHashMap();                 lhm.put("1", "One");                 lhm.put("2", "Two");                 lhm...

어쩌다 마주친 spring Error

Ambiguous mapping found. Cannot map 'providerSignInController' bean method - controller requestMapping 동일하게 등록된 경우 발생한다. BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext - xml 설정파일에서 오류가 발생한 경우 (jar 파일이 없다던지 또는 xsd 선언이 안되있다던지 등등...)

vertual-hosting : Apache Error Document 세팅

<VirtualHost _default_:80>                                                    ServerName www..xxx.com ServerAlias  www..xxx.com        DocumentRoot "C:/Project/src/xxxx/WebRoot" ErrorDocument 503 /check.html.var        <Directory "C:/Project/src/xxxx/WebRoot">                Options FollowSymLinks                AllowOverride all                Allow from all                Order allow,deny        </Directory> JkMount /CrosseditorServlet worker1 JkMount /*.vm worker1        JkMount /*.html worker1        JkMount /*.jsp worker1   ...

스프링 request 흐름도

이미지

Tomcat log정리관련 (펌글)

이미지
Tomcat 무분별하게 catalina.out 크기 커지는것 막기 서버관리/리눅스서버관리   |  2008/12/06 04:48  |  아이 Tomcat의 로그를 보다보니 날짜별로 로그 파일을 나누어 쌓고 있음과 동시에 catalina.out이라는 파일에도 중복하여 로그를 쌓는것을 알수 있다. 이 파일은 끝없이 커지는데 관리상 좋지 못한것은 자명한 일이다. 이 문제를 해결하기 위해 catalina.sh 파일을 수정한다. start 부분을 찾아 다음과 같이 수정하자. elif [ "$1" = "start" ] ; then     shift #  touch "$CATALINA_BASE"/logs/catalina.out   if [ "$1" = "-security" ] ; then     echo "Using Security Manager"     shift     "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \       - Djava . endorsed . dirs = "$JAVA_ENDORSED_DIRS" - classpath "$CLASSPATH" \       - Djava . security . manager \       - Djava . security . policy == "$CATALINA_BASE" / conf / catalina . policy \       - Dcatalina . base = "$CATALINA_BASE" \       - Dcatalina . home = "$CATALINA_HOME" \       - Djava . io . tmpdir...