12.07.2015 Views

Anyframe CXF Plugin

Anyframe CXF Plugin

Anyframe CXF Plugin

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

JAX-WS FrontendEclipse에서 압축 해제 프로젝트를 import한 후, 해당 프로젝트에 대해 마우스 오른쪽 버튼을 클릭하고 컨텍스트 메뉴에서 Maven > Enable Dependency Management를 선택하여 컴파일 에러를해결한다. (위와 같이 했음에도 컴파일 에러가 사라지지 않으면 컨텍스트 메뉴에서 Properties >JavaEE Module Dependencies를 클릭하고, 오른쪽 JAR/Module 목록에서 Maven Dependencies 항목을 체크하도록 한다.) 그리고 해당 프로젝트에 대해 마우스 오른쪽 버튼을 클릭한 후, 컨텍스트메뉴에서 Run As > Run on Server (Tomcat 기반)를 클릭한다. Tomcat Server가 정상적으로 시작되었으면 브라우저를 열고 주소창에 http://localhost:8080/anyframe.sample.cxf.jaxws를 입력하여 실행 결과를 확인한다.• Eclipse 기반 실행 - WTP 활용Eclipse에서 압축 해제 프로젝트를 import한 후, build.xml 파일을 실행하여 참조 라이브러리를 src/main/webapp 폴더의 WEB-INF/lib내로 복사시킨다. 해당 프로젝트를 선택하고 마우스 오른쪽 버튼을 클릭한 후, 컨텍스트 메뉴에서 Run As > Run on Server를 클릭한다. Tomcat Server가 정상적으로 시작되었으면 브라우저를 열고 주소창에 http://localhost:8080/anyframe.sample.cxf.jaxws를입력하여 실행 결과를 확인한다. (* build.xml 파일 실행을 위해서는 ${ANT_HOME}/lib 내에 mavenant-task-2.0.10.jar파일이 있어야 한다.)• [참고] Eclipse 내 프로젝트에서 Validation Error 발생 시 대처Eclipse에서 압축 해체 프로젝트를 import한 후, Eclipse Preferences 화면의 Validation 메뉴에서XML Validator 항목의 체크 박스를 제거하고 Apply 버튼을 선택하여 적용하면 src/main/resources소스폴더의 spring/context-cxf.xml 파일과 springmvc/cxf-servlet.xml 파일에서 나타나던 ValidationError가 없어질 것이다. 기능 동작 상에는 전혀 문제가 없다.표 4.1. Download ListNamehsqldb.movie.zipanyframe.sample.cxf.jaxws.zipmaven-ant-tasks-2.0.10.jarDownloadDownload [http://dev.anyframejava.org/docs/anyframe/plugin/foundation/4.6.0/reference/sample/hsqldb.movie.zip]Download [http://dev.anyframejava.org/docs/anyframe/plugin/cxf/4.5.2/reference/sample/anyframe.sample.cxf.jaxws.zip]Download [http://dev.anyframejava.org/docs/anyframe/plugin/foundation/4.6.0/reference/sample/maven-ant-tasks-2.0.10.jar]• 참고자료• JAX-WS 2.0 Specification [http://jcp.org/en/jsr/detail?id=224]• Building Web Services with JAX-WS [http://java.sun.com/javaee/5/docs/tutorial/doc/bnayl.html]• JAX-WS Spring Configuration [http://cwiki.apache.org/<strong>CXF</strong>20DOC/jax-ws-configuration.html]36

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!