Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Remove the following parent POM reference from the sample's pom.xml file, which is stored in the <PRODUCT_HOME>\samples\ directory.

    Code Block
    <parent> 
    	<groupId>org.wso2.appserver</groupId> 
    	<artifactId>wso2appserver-samples-parent</artifactId> 
    	<version>5.2.1</version> 
    </parent>
    Note

    Note that this step is necessary because of a known issue, which will be fixed in AS 6.0.0.

  2. Adding following As shown below, add the <version> and <groupid> elements to the pom.xml after the commented out parent element file, after the parent element which you commented out in the first step.

    Code Block
    <groupId>org.wso2.appserver</groupId>
    <version>5.2.1</version>

Using either UNIX or WindowsTo build and run the sample:

  1. Open the maven pom.xml file, which is in the base directory of the sample (i.e.,  <PRODUCT_HOME>\samples\Jaxws-Jaxrs\<JAX-WS-Sample-Folder>). To determine  <JAXdetermine  <JAX-WS-Sample>, see JAX-WS Sample Folder.
  2. Build the demo and create a WAR file.

    Code Block
    mvn clean install ()
  3. Start the Start the WSO2 Application Server by executing one of the following commands, where  <PRODUCT_HOME> is the directory where you installed the product distribution:

    OSCommand
    On Windows
    <PRODUCT_HOME>\bin\wso2server.bat --run
    On Linux/Solaris
    sh <PRODUCT_HOME>/bin/wso2server.sh            
  4. Deploy the generated WAR file on WSO2 AS with the related logs on the console.

    Code Block
    mvn -Pdeploy
  5. Run the client

    Code Block
    mvn -Pclient

...