Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Assembling applications


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, generate deployment code for the application. This article 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. We can use an assembly tool to generate deployment code for the web services-enabled module or for the EAR file that contains the web services-enabled module.


Procedure

  1. If we have turned automatic validation off, manually validate any modules that use web services with the JSR109 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, you 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 to generate code for deployment.

  3. Click Deploy. Alternatively, you 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.

  5. If errors such as Unbound classpath variable: WAS_50_PLUGINDIR display in the Tasks list, change the Java build path libraries properties to define that variable to be the WAS installation directory.


Results

Code is generated into the folder where your 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 your server machine. We can install the application onto a server using the admin console. Before installing the application, you might need to set class paths.
Application assembly and enterprise applications
Install enterprise application files
Assembling applications


Related


wsdeploy command

+

Search Tips   |   Advanced Search