Category Archives: Java/JSP

Eclipse JDT Icons (Outline View)

  Outline View 을 볼때 아이콘이 자꾸 헷걸려서… 참고 : http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-icons.htm JDT Icons Object adornments compilation unit (*.java file) Java file which is not on a build path class file generic file (unknown content type) unknown object Java scrapbook page … Continue reading

Posted in Development, Java/JSP | Tagged , , | Leave a comment

쓰레드 덤프보는 JSP (threaddump.jsp)

  Notice : 해당 자료가 저작권등에 의해서 문제가 있다면 바로 삭제하겠습니다. 연구목적으로 사용하지 않고 악의적인 목적으로 이용할 경우 발생할 수 있는 법적은 책임은 모두 본인에게 있습니다. 쓰레드 덤프보는 JSP (threaddump.jsp) 완전 멋지다!ㅋ <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> … Continue reading

Posted in Java/JSP, Util/Tools | Tagged , | Leave a comment

paros-customize 를 위한 github 저장소 생성

  paros customize를 위한 개발환경 설정 – github에 가입하고 로그인 한다.(생략) – 상단의 Create a new repo 버튼으로 새로운 저장소를 생성한다 입력할게 없이 간단하다. 저장소 생성 결과화면 – 콘솔에서 생성한 git의 clone 을 만든다 – paros의 원본 소스를 받는다. http://www.parosproxy.org/download.shtml … Continue reading

Posted in Java/JSP, SCM/ITS, Security/Hacking | Tagged , , | Leave a comment

mybatis sql injection 취약점

  Notice : 해당 자료가 저작권등에 의해서 문제가 있다면 바로 삭제하겠습니다. 연구목적으로 사용하지 않고 악의적인 목적으로 이용할 경우 발생할 수 있는 법적은 책임은 모두 본인에게 있습니다. 참고 : ibatis (ibatis.apache.org) 는 google code 쪽으로 이전했으며, 이름을 mybatis.org으로 바꿨다 1. myBatis 개요 MyBatis … Continue reading

Posted in Java/JSP, Security/Hacking | Tagged , , , | Leave a comment

maven-dependency-plugin (goals “copy-dependencies”,”unpack”) is not supported by m2e 에러..

  pom.xml 부분 jar를 작성하기 위해서는 maven-jar-plugin 이 필요하며, 의존성 jar 파일들을 제어하기 위해서는 maven-dependency-plugin이 필요하다. 그러나 maven-dependency-plugin 설정을 하여 m2eclipse로 package하게 되면 다음과 같은 메세지의 에러가 발생된다. maven-dependency-plugin (goals “copy-dependencies”,”unpack”) is not supported by m2e 이를 해결하기 위하여 구글링해보면, … Continue reading

Posted in Java/JSP, Util/Tools | Tagged , , | Leave a comment

Java DateUtil

  Java DateUtil package com.apollo89.java.util; import java.text.DateFormat; import java.text.ParsePosition; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.Locale; import java.util.TimeZone; import java.util.Vector; public class DateUtil { public static String getDate2String(String date, String originFormat, String targetFormat, String locale) { SimpleDateFormat … Continue reading

Posted in Java/JSP, Util/Tools | Tagged , | Leave a comment

Oracle 서버와 JDBC Driver 버전 확인

  JDBC Driver 버전 확인 ]$ jar -xvf ojdbc14.jar ]$ cat META-INF/MANIFEST.MF Oracle 서버 버전확인 > select * from product_component_version; JDBC Driver 다운받는곳 http://www.oracle.com/technetwork/database/features/jdbc/ 관련 에러 SQLException java.sql.SQLException: OALL8 is in an inconsistent state.  

Posted in Database, Java/JSP | Tagged , , , | Leave a comment

tomcat 7으로 패치시 주의

  기존 서비스를 tomcat 5.5에서 tomcat7으로 대폭 올렸다ㅋㅋ 그랬더니 아래와 같은 에러가…ㅋㅋ java.lang.IllegalArgumentException: taglib definition not consistent with specification version 구글님께 물어보니 web.xml을 아래와 같이 변경하란다.. <?xml version=”1.0″ encoding=”UTF-8″?> <web-app xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd” version=”2.5″> 그래도 에러가 나서 보니… web.xml의 … Continue reading

Posted in Java/JSP, WEB/WAS | Tagged , , , | Leave a comment