Operating Systems: i5/OS
Personalize the table of contents and search results
Generating 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 you have assembled a module enabled with Web
services, added it to an application, saved the application, and verified
the application. It also assumes that you have started and configured an assembly
tool.
Overview
You 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
- If you 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.
- 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 you want to generate code for deployment.
- 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.
- If messages indicate that automatic file overwriting is not enabled,
click Yes to All so the generated files are added to the module.
- If errors such as Unbound classpath variable: WAS_50_PLUGINDIR appear
in the Tasks list, change the Java build path libraries properties to define
that variable to be the WebSphere Application Server 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 J2EE application
on your server machine. You can install
the application onto a server using the administrative console. Before
installing the application, you might need to set class paths.
}
Application assembly and J2EE applications
Related tasks
Assembling applications
Related Reference
wsdeploy command
|