Java 9

[Jenkins] 원격지에서 Maven 빌드를 할때

Jenkins 세팅에서 원격지 서버에서 Maven을 빌드 해서 적용하고 싶을 경우가 있다 기본적으로 Ubuntu 터미널에서 Maven 사용할때는 mvn clean package 하면 ./target 폴더가 생성되면서 완료 되지만 Jenkins에서 Build Steps 에서 Send files or execute commands over SSH 하위에 Exec command 에서 사용하려면 ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [127]] Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE..

Java 2023.05.25

[에러] Unable to read TLD "META-INF/c.tld" from JAR file

maven 으로 세팅하던 중 아무런 이상이 없는데 실행해서 페이지를 열려고 하면 Unable to read TLD "META-INF/c.tld" from JAR file ..... 이라고 에러가 떨어진다. 처리 방법1. WEB-INF\lib를 jar 파일 확인 -> 대다수 있을것이다.2. 현재 was가 tomcat 6.x 인지 확인 tomcat 7.x 로 하면 될것이다.3. jar 속성이 중복 되는 현상으로 중복되는 jar를 제거 4. pom.xml 파일에서 servlet-api, jsp-api 주석 처리 저 같은 경우는 tomcat 6.x 버전이라서 4번으로 처리하니 되더군요 아무래도 제일 깔끔한 방법은 톰캣 버전을 올리는것인데 그렇지 못할 경우 4번 을 해보세요

Java 2012.07.24

소스에서 네트워크(http) 데이터 가져오기

JAVA 소스 에서 외부 HTTP의 내용을 가져올 경우가 있다. 이럴 경우에는 소스상에 openConnection을 이용해서 커넥션해서 정보를 가져오면 된다. private String server ="http://www.test.co.kr/test.jsp"; private String userId = "?user_id="; private String userPw = "&user_passwd="; /** * useUrl * @Note : URL커넥션 사용 * @throws IOException * @throws Exception * * */ public void useUrl() throws IOException, Exception { String testVal = getReturnString( getUr..

Java 2012.03.19