Compile and Deploy the Service
Introduction
In this step of the tutorial, the filesystem example code and the generated classes are compiled and deployed to the WSRF Web application. An Ant script is provided for compiling and deploying. Detailed instructions for using the Ant script are provided in the Developer Guide.
Run the Compile/Deploy Ant Script
To compile and deploy the service:
- Copy INSTALL_DIR/examples/filesystem/src/java/example to WORK_DIR/generated/filesystem/src/java.
- From a command prompt, change directories to WORK_DIR/generated/filesystem.
- Using a text editor, open build.properties.
- Uncomment the wsrf.webapp.dir property and set it to the location where the WSRF Web application is installed. If you are using Tomcat and have CATALINA_HOME set, you do not need to modify this property.
- Uncomment and modify the proxy settings if you require a proxy to connect to external Web sites.
- Save and close build.properties.
- Run ant compile deploy. The service is compiled and deployed to the WSRF Web application.
- Start Tomcat if it is not already started.
- Using a browser, go to http://localhost:8080/wsrf/services and verify that the filesystem service is deployed.