+

Search Tips   |   Advanced Search

Generate code for web service deployment

Before deploying web services-enabled modules or any enterprise application archive (EAR) files that contain web services-enabled module onto an application server, we must generate deployment code for the application.

This topic assumes we have assembled a module enabled with web services, added it to an application, saved the application, and verified the application. It also assumes that we have started and configured an assembly tool.

Use an assembly tool to generate deployment code for the web services-enabled module or for the EAR file containing the web services-enabled module.


Tasks

  1. If we have turned automatic validation off, manually validate any modules that use web services with the JSR 109 web services validator before generating deployment code for them. If validating your module results in compilation errors or validation errors, fix the errors before generating deployment code. However, if validating your module results in warning or information messages, we can generate deployment code.

  2. In the Project Explorer view of the assembly tool, right-click on the web services-enabled module (WAR, enterprise bean JAR, or application client JAR file) for which we want to generate code for deployment.

  3. Click Deploy. Alternatively, we can generate deployment code for web services-enabled modules using the deployment tool for web services (wsdeploy) from a command prompt.

  4. If messages indicate that automatic file overwriting is not enabled, click Yes to All so the generated files are added to the module.

Code is generated into the folder where the web services-enable module is located. Problems with the generation of code result in a window that displays error messages.


What to do next

Install the Java EE application on the server machine. We can install the application onto a server using the administrative console. Before installing the application, we might need to set class paths.


Related:

  • Application assembly and enterprise applications
  • Install enterprise application files
  • Assemble applications
  • wsdeploy command