블로그 이미지
올해목표 // 10월 어학연수 떠나자~ 자수씨

카테고리

전체글 (1457)
Brand New! (28)
주절주절 (213)
MOT (11)
해외쇼핑 (49)
쇼핑노트 (150)
취미생활 (94)
iPhone (4)
Eclipse (121)
Google (83)
Spring (31)
JAVA (176)
JavaScript (59)
WEB (49)
Database (20)
OS (26)
Tools (8)
Tips (26)
IT정보 (1)
Book (21)
Programming (37)
외부행사 (43)
주변인들 (17)
여행노트 (60)
학교생활 (30)
회사생활 (52)
사회생활 (5)
외국어공부 (12)
잡동사니 (30)
Total
Today
Yesterday
 
04-25 08:38
 

달력

« » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
 

최근에 올라온 글

최근에 달린 댓글

새로운 서비스를 개발하면서 코딩하랴... 로그보랴... 구현된거 확인하랴... 창을 수 없이 옮겨가며 작업하고 있습니다. 


줄일 수 있는 건 최대로 줄이는 것이 좋을 것 같아서 로그를 볼 수 있는 플러그인을 찾아보았고, eclipselabs.org 에서 진행 중인 logviewer 플러그인을 받아서 사용해 보았습니다.


프로젝트 홈: https://code.google.com/a/eclipselabs.org/p/logviewer/





"Log Viewer" 라는 뷰를 띄우고 로그 파일을 추가하면... 아래와 같이 로그를 확인할 수 있습니다.









Posted by 자수씨
, |

오랜만에 예전에 만들었던 소스를 정리하는데, 웹 프로젝트에서 아래와 같은 문제가 발생했습니다.


CHKJ3008E: Missing or invalid WAR file.



검색을 해보니 WEB-INF 와 WEB-INF/web.xml 이 없거나 문제가 있을 때 발생한다고 합니다.

 CHKJ3008
 Missing or invalid WAR file.

The web.xml file cannot be loaded. The project metadata cannot be initialized from the web.xml file.

    1. Ensure the following:

        - that the WEB-INF folder exists in the web project

        - that WEB-INF contains the web.xml file

        - that WEB-INF is in the project's classpath.

    2. Validate the syntax of the web.xml file: in the Navigator view, highlight the web.xml file, right-click, and select Validate XML file.

    3. If both 1) and 2) are okay, close the project, reopen the project, and rebuild the project. The project metadata will refresh.

출처: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jst.j2ee.doc.user%2Ftopics%2Frvalerr.html



위에 2) 에서 설명한 대로 web.xml 을 Valaidate 시켰더니 문제가 해결되네요 =ㅁ=!!!


 


Posted by 자수씨
, |

http://mail-archives.apache.org/mod_mbox/james-server-user/201106.mbox/%3C4DFBC41D.9060107@gmx.de%3E


위의 내용을 참고하여 이클립스에 James를 띄우는 것은 성공...




security 쪽이 문제가 되서 "-Djava.security.manager" 옵션을 빼니깐 바로 되는군...


이제부터 IMAP 시작!!





Posted by 자수씨
, |

 

이클립스에서 사용하는 메이븐 플러그인은 Sonatype 에서 만든 m2eclipse 플러그인과 이클립스 공식 플러그인으로 합쳐진 m2e 플러그인이 있습니다.

 

어차피 둘 다 태생이 같기 때문에 사용법이나 다른 큰 문제는 없으나, 프로젝트 시에는 문제가 될 수 있습니다.

 

 

[프로젝트 홈]/.project

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
 <name>vicki-common</name>
 <comment></comment>
 <projects>
 </projects>
 <buildSpec>
  <buildCommand>
   <name>org.eclipse.jdt.core.javabuilder</name>
   <arguments>
   </arguments>
  </buildCommand>
  <buildCommand>
   <name>org.maven.ide.eclipse.maven2Builder</name>
   <arguments>
   </arguments>
  </buildCommand>
  <buildCommand>
   <name>org.eclipse.m2e.core.maven2Builder</name>
   <arguments>
   </arguments>
  </buildCommand>

 </buildSpec>
 <natures>
  <nature>org.eclipse.jdt.core.javanature</nature>
  <nature>org.maven.ide.eclipse.maven2Nature</nature>

  <nature>org.eclipse.m2e.core.maven2Nature</nature> 
 </natures>
</projectDescription>

 

org.maven.ide.eclipse.maven2Nature 는 이전의 sonatype 에서 제공했던 메이븐 플러그인 네이처이며, org.eclipse.m2e.core.maven2Nature 는 eclipse 에 통합된 m2e 플러그인 네이처입니다.

 

SI가 아닌 이상 각자 자신의 개발환경을 셋팅할 것이고, 이전의 개발환경을 가지고 있는 사람과 새로 개발환경을 셋팅한 사람 모두를 아우르기 위해서는 위와 같은 설정이 필요합니다.

 

 

Posted by 자수씨
, |

간만에 뭐 좀 해볼려고 Indigo 를 켜보았더니 폰트가 아주 맘에 안들게 표시되고 있었습니다.
(한글이 작게나오는...)



Preferences 에서 폰트를 바꾸려고 해도 원하는 Courier New 는 보이지 않았습니다.


구글링을 해보니 바로 해결책이 나오는 군요~


해결방법

탐색기에서 C:\Windows\Fonts 디렉토리로 이동합니다.

"Courier New" 폰트가 숨겨진 상태입니다. 마우스 오른쪽 클릭 후 "표시" 를 선택합니다.
(표시를 선택하면 아래와 같이 활성화 표시가 됩니다.)



다시 이클립스에서 폰트를 선택하게 되면 "Courier New" 가 보이게 됩니다.



위와 같이 설정하면 한글이 정상 크기로 보이게 됩니다.



Windows 7 에서만 발생하는 문제로 생각되네요...

참고자료

http://aquua.tistory.com/167


 

Posted by 자수씨
, |



http://update.aptana.com/update/studio/


위의 페이지에 있는 업데이트 사이즈 주소로 인스톨하거나 압축파일을 내려받아 설치할 수 있습니다.

용량이 커서 (약 70MB??) 시간이 오래걸리니 압축파일을 다운받아 설치하는 것을 권장합니다.

Posted by 자수씨
, |


이클립스 Tasks 에서 Jira 에 연결하여 작업을 하는데 내용을 변경하고 Submit 을 하려니 날짜가 안 맞는다고 징징거립니다.

그럴 때는 이렇게 해줍니다.

ㅁ Task Repositories >> Jira Repository >> Properties





ㅁ Additional Settings >> Advanced Configuration 에서 Date Picker Format 과 Date Time Picker Format 을 변경해줍니다.
징징거리는 포멧으로~






Posted by 자수씨
, |

메이븐을 이용하여 기본적으로 제공해주는 webapp archetype 으로 프로젝트를 생성하게 되면 이클립스에서 웹 프로젝트로 인식이 되지 않습니다.

프로젝트도 아래와 같이 단순하게 구성되어 있습니다.



pom.xml 에 wtp 와 관련된 plugin 설정을 합니다.



그런 후에 eclipse:eclipse 를 goal 로 빌드를 하게 되면~




[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building gwtbuilder-webapp Maven Webapp
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: D:\**********
[INFO] no substring wtp server match.
[INFO] Using as WTP server : Tomcat v6.0 as wiseOne
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] @@@ TRUE - Manifests are equal
[INFO] Not writing Manifest file as it is unchanged: D:\**********\gwtbuilder-webapp\src\main\webapp\META-INF\MANIFEST.MF
[INFO] File D:\**********\gwtbuilder-webapp\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "gwtbuilder-webapp-0.0.1-SNAPSHOT" to D:\**********\gwtbuilder-webapp.
[INFO]
       Sources for some artifacts are not available.
       Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.
       List of artifacts without a source archive:
         o junit:junit:3.8.1
       Javadoc for some artifacts is not available.
       Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.
       List of artifacts without a javadoc archive:
         o junit:junit:3.8.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Jan 12 16:09:35 KST 2011
[INFO] Final Memory: 8M/19M

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building gwtbuilder-webapp Maven Webapp
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: D:\**********
[INFO] no substring wtp server match.
[INFO] Using as WTP server : Tomcat v6.0 as *******
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] File D:\**********\gwtbuilder-webapp\.project already exists.
       Additional settings will be preserved, run mvn eclipse:clean if you want old settings to be removed.
[INFO] Wrote Eclipse project for "gwtbuilder-webapp-0.0.1-SNAPSHOT" to D:\**********\gwtbuilder-webapp.
[INFO]
       Sources for some artifacts are not available.
       Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.
       List of artifacts without a source archive:
         o junit:junit:3.8.1
       Javadoc for some artifacts is not available.
       Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.
       List of artifacts without a javadoc archive:
         o junit:junit:3.8.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Jan 12 16:27:06 KST 2011
[INFO] Final Memory: 8M/19M
[INFO] ------------------------------------------------------------------------



웹 프로젝트와 관련된 설정들이 추가되게 됩니다.




이제 개발 고고씽~

Posted by 자수씨
, |

Ant 에서 기본적으로 제공해주는 scp task 를 이용하여 ssh 가 열려있는 서버에 업로드와 다운로드를 처리할 수 있습니다.
저는 기본적으로 이클립스를 쓰기 때문에 이클립스 환경 기준으로 작성을 하겠습니다.

실제적으로 처리를 진행할 라이브러리를 다운받아 Ant 런타임 라이브러리에 추가합니다.
JCraft 홈페이지

"jsch-0.1.42.jar" 를 내려 받아서 이클립스 Preferences > Ant > Runtime 을 선택합니다.
"Global Entries" 를 선택한 후 "Add JARs..." 버튼을 클릭하여 다운받은 "jsch-0.1.42.jar" 를 추가합니다.



사용 예
08라인은 서버의 "/home/workflow.jar" 파일을 03~06 라인을 통해 생성된 로컬 디렉토리에 다운로드 합니다.
10~12라인은 서버의 "/home" 에 로컬 "/home/workflow.jar" 파일을 업로드 합니다.

scp task 사용시 trust="true" 가 없으면 " com.jcraft.jsch.JSchException: reject HostKey: <호스트>" 라는 익셉션이 발생하니 꼭 확인하시기 바랍니다.

참고자료
SCP TASK

Posted by 자수씨
, |

알아두면 좋은 사항을 간단하게 정리합니다.

이클립스 갈릴레오에서 Dynamic Web Project 를 생성하면 아래와 같이 프로젝트가 만들어 집니다.


빌드 패스를 보면 예전에는 Default output folder 가 /WEB-INF/classes 였는데 /build/classes 로 설정이 되어 있습니다.
그래서 강제적으로 /WEB-INF/classes 로 바꾸곤 했습니다.



하지만 그렇게 바꿀 필요가 없었습니다.
/.settings/org.eclipse.wst.common.component 를 보면 답을 알 수 있습니다.



저런 식으로 <wb-resource /> 엘리먼트로 설정을 하게 되면 알아서 WTP 가 인식을 해준 다는 점
(<wb-resource /> 를 활용하여 자신이 원하는 가상 디렉토리를 구성할 수 있습니다.)



이제는 /WEB-INF/classes 에 properties, xml 과 같은 파일들을 직접 넣고 커밋을 할 수 있습니다.
예전에는 다시 빌드하게 되면 다 날라가버려서 src 밑에 properties 나 xml 을 직접 넣었는데 이제는 그럴 필요가 없습니다.


이미 사용하고 있었으나 얼마전에 깨달아 버린...



Posted by 자수씨
, |

글 보관함

최근에 받은 트랙백