2013-08-01 2 views
-1

다른 레이어가 포함 된 프로젝트를 개발 중입니다. 저는 Maven, JAX-WS, Spring 프레임 워크, Hibernate를 사용하고 있습니다. jax ws maven plugin을 사용하여 WSDL 파일을 생성하려고했습니다. 처음에는 JRE 7을 사용했지만 작동하지 않았습니다. 내가 JDK 1.7를 사용하는 경우이 메시지가 나타나성공적인 빌드 후에 WSDL 파일을 찾으려면 어떻게합니까?

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 
[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building BSCSwebservices Maven Webapp 0.0.1-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[WARNING] The POM for bsh:bsh:jar:1.2b3 is missing, no dependency information available 
[WARNING] The POM for com.sun.xml.stream.buffer:streambuffer:jar:0.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details 
[WARNING] The POM for org.jvnet.staxex:stax-ex:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details 
[WARNING] The artifact woodstox:wstx-asl:jar:3.2.0 has been relocated to org.codehaus.woodstox:wstx-asl:jar:3.2.0 
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ BSCSwebservices --- 
[debug] execute contextualize 
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] Copying 6 resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ BSCSwebservices --- 
[INFO] Nothing to compile - all classes are up to date 
[INFO] 
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ BSCSwebservices --- 
[debug] execute contextualize 
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] skip non existing resourceDirectory C:\Users\sayed\workspace\BSCSwebservices1\src\test\resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ BSCSwebservices --- 
[INFO] Nothing to compile - all classes are up to date 
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ BSCSwebservices --- 
[INFO] No tests to run. 
[INFO] Surefire report directory: C:\Users\sayed\workspace\BSCSwebservices1\target\surefire-reports 

------------------------------------------------------- 
    T E S T S 
------------------------------------------------------- 

Results : 

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 

[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ BSCSwebservices --- 
[INFO] Packaging webapp 
[INFO] Assembling webapp [BSCSwebservices] in [C:\Users\sayed\workspace\BSCSwebservices1\target\BSCSwebservices] 
[INFO] Processing war project 
[INFO] Copying webapp resources [C:\Users\sayed\workspace\BSCSwebservices1\src\main\webapp] 
    [INFO] Webapp assembled in [607 msecs] 
    [INFO] Building war: C:\Users\sayed\workspace\BSCSwebservices1\target\BSCSwebservices.war 
    [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored 
    (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true') 
    [INFO] 
    [INFO] --- jaxws-maven-plugin:1.11:wsgen (service_BillingAccountRead) @ BSCSwebservices --- 
    [WARNING] The POM for woodstox:wstx-asl:jar:3.2.3 is missing, no dependency information available 

warning: The apt tool and its associated API are planned to be 
removed in the next major JDK release. These features have been 
superseded by javac and the standardized annotation processing API, 
javax.annotation.processing and javax.lang.model. Users are 
recommended to migrate to the annotation processing features of 
javac; see the javac man page for more information. 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD SUCCESS 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 11.635s 
[INFO] Finished at: Thu Aug 01 20:38:29 WAT 2013 
[INFO] Final Memory: 16M/38M 
[INFO] ------------------------------------------------------------------------ 

이의 pom.xml

<plugins> 

    <plugin> 
     <groupId>org.codehaus.mojo</groupId> 
     <artifactId>jaxws-maven-plugin</artifactId> 
     <version>1.11</version> 
     <executions> 
       <execution> 
        <id>service_BillingAccountRead</id> 
        <phase>package</phase> 
        <goals> 
         <goal>wsgen</goal> 
        </goals> 
        <configuration> 
         <sei>com.ws.BillingAccountRead</sei> 
         <genwsdl>true</genwsdl> 
         <keep>true</keep> 

        </configuration> 
       </execution> 
      </executions> 
    </plugin> 
    <plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-compiler-plugin</artifactId> 
     <version>2.3.1</version> 
    </plugin> 
</plugins> 

빌드에 성공,하지만 난 WSDL 파일을 찾을 수없는의 일부? 그리고 다른 레이어를 완성한 후 경고가 적용됩니까?

경고에 나타나는 모든 병의 종속성을 추가했지만 경고는 계속 표시됩니다.

+0

여기서 WSDL을 찾으십니까? – saurav

답변

0

WSDL의 {module_root} \ 대상 \ 생성 - 소스 \ WSDL

당신은 정말 귀하의 질문에 관련 정보를 포함하여 시작해야

에 기본적으로 배치받을. 너는 너의 pom의 관련된 부분을 배치하지조차. jax-ws에게 wsdl을 생성하라고 말 했나요?

또한, Maven 빌드를 실행할 때 경고음 톤을 수정하십시오. 그게 당신이 게시하는 정보의 엉망진창에 추가됩니다.

편집 :

문서를 참조하십시오. wsdls가 끝나는 위치를 명시 적으로 지정할 수 있습니다. 귀하의 모든 질문에는 귀하가 최소한의 노력으로 자신을 발견 할 수있는 간단한 대답이 있습니다.

0

일반적으로 프로젝트를 빌드 할 때 WSDL 문서 파일과 스키마 문서 파일은 자동으로 생성되지 않습니다. 이 파일은 응용 프로그램 서버에서 배포시 생성됩니다. 내부적으로 서버는 wsgen 도구를 실행하여 파일을 생성합니다. 그런 다음 서비스 엔드 포인트에 ?wsdl을 추가하여 WSLD 문서 파일을 요청하면 즉시 애플리케이션 서버이 파일과 서비스의 서비스 URL을 업데이트합니다.

이 파일의 생성을 포함하려면 pom.xmlJAX-WS commons을 추가 할 수 있습니다. this question의 예를 참조하십시오.

관련 문제