...
2. In a command prompt, switch to the MTOM directory.
For example, in Windows, cd <AS_HOME>\samples\MTOM
...
The generated service (MTOMSample.aar) gets copied to <AS_HOME>/repository/deployment/server/axis2services automatically. Start the Application Server using <AS_HOME>/bin/wso2server.sh (in Linux) or <AS_HOME>/\bin/\wso2server.bat (in Windows).
...