...
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.
Adding following As shown below, add the
<version>
and<groupid>
elements to thepom.xml
after 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:
- 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. Build the demo and create a WAR file.
Code Block mvn clean install ()
Start the WSO2 Application Server by executing one of the following commands, where
<PRODUCT_HOME>
is the directory where you installed the product distribution:
OS Command On Windows <PRODUCT_HOME>\bin\wso2server.bat --run
On Linux/Solaris sh <PRODUCT_HOME>/bin/wso2server.sh
Deploy the generated WAR file on WSO2 AS with the related logs on the console.
Code Block mvn -Pdeploy
Run the client
Code Block mvn -Pclient
...