JSP
-
06)MVC2 세팅JSP/공부 2021. 3. 30. 23:26
1. Dynamic web project 생성 2. 서버 연결 우클릭 → Add and Remove 3. DB 연결 WebContent/META-INF 폴더에 Servers/Tomcat에 있는context.xml 파일 넣기 4. 컨넥션 풀 사용 위한 DBCP API 파일(.jar) 4개 추가 WEB-INF/lib 폴더에 MySQL컨넥터 + commons 3형제 파일 넣기 commons.apache.org/ Collections / DBCP / Pool 5. Controller 설정 (파일 생성할 때 'class' ㄴㄴ 'servlet' ㅇㅇ)
-
-
ERR)톰캣 연동, 서버 실행JSP/에러 2021. 3. 26. 00:22
1. 에러 메시지 : The superclass "javax.servlet.http.HttpServlet" was not found on the java Build Path 영어를 잘 못해서 고양이가 길을 잃었다는건지 고양이한테 가는 길을 모른다는건지 모르겠는데 어쨌든 누가 길을 잃음 길찾는 법 : 프로젝트파일 우클릭 → properties → 아래 경로로 들어가서 고양이 길찾아주면 됨 2. 에러 메시지 : The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports. 서버의 포트번호가 없어서 발생한 에러. 지정 해주면 해결된다. 3번이 ..