uCosminexus Application Server, Web Service Development Guide
Compile Web Services Implementation Classes by executing the javac command. For details on the javac command, see the JDK documentation.
The following example describes the execution of javac command:
> cd c:\temp\jaxws\works\addressing\server\ > mkdir WEB-INF\classes\ > javac -cp "%COSMINEXUS_HOME%\jaxws\lib\cjjaxws.jar;%COSMINEXUS_HOME%\CC\client\lib\j2ee-javax.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxb.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxp.jar;%COSMINEXUS_HOME%\jaxp\lib\csmstax.jar" -d WEB-INF\classes\ -s src src\com\sample\AddNumbers.java src\com\sample\AddNumbersImpl.java src\com\sample\AddNumbersFault. java |
On successful execution of the javac command, the compiled classes are output to the following path:
c:\temp\jaxws\works\addressing\server\WEB-INF\classes\com\sample\directory
Executing the cjwsgen command for the compiled Web Services Implementation Classes enables you to check errors in advance. For details on the cjwsgen command see 14.3 cjwsgen command and for details on error checking see 10.23 (1) Using the cjwsgen command to check errors.
> set HNTRLIB2_HOME=HNTRLib2-Installation-directory > cd c:\temp\jaxws\works\addressing\server\ > mkdir \WEB-INF\classes\ > apt -factory com.cosminexus.istack.ws.AnnotationProcessorFactoryImpl -factory com.cosminexus.istack.ws.AnnotationProcessorFactoryImpl -J-Dcosminexus.home="%COSMINEXUS_HOME%" -cp "%COSMINEXUS_HOME%\jaxws\lib\cjjaxws.jar;%COSMINEXUS_HOME%\CC\client\lib\j2ee-javax.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxb.jar;%COSMINEXUS_HOME%\jaxp\lib\csmjaxp.jar;%COSMINEXUS_HOME%\jaxp\lib\csmstax.jar;%HNTRLIB2_HOME%\classes\hntrlib2j64.jar;%HNTRLIB2_HOME%\classes\hntrlibMj64.jar" -d WEB-INF\classes\ -s src src\com\sample\AddNumbers.java src\com\sample\AddNumbersImpl.java src\com\sample\AddNumbersFault.java |
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.