+

Search Tips   |   Advanced Search

Generate code for Web service deployment



Overview

Before deploying Web services-enabled modules or any enterprise EAR files that contain Web services-enabled modules onto an appserver, generate deployment code for the application.

This article assumes we have...

  1. Assembled a module enabled with Web services
  2. Added it to an application
  3. Saved the application
  4. Verified the application
  5. Started and configured an assembly tool


Generate deployment code

  1. If we have turned automatic validation off, manually validate any modules that use Web services with the JSR109 Web services validator.

    If validating the module results in compilation errors or validation errors, fix the errors before generating deployment code. If validating 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...

    • web application WAR
    • enterprise bean JAR
    • application client JAR

    ...for which you 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).

  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 the Web services-enable module is located. Problems with the generation of code result in a window that displays error messages.

 

Next steps

Install the Java EE application on the server machine.

We can install the application onto a server using the admin console. Before installing the application, we might need to set class paths.

 

Related tasks

Install enterprise application files
Application assembly and enterprise apps
Assembling applications

 

Related

wsdeploy