| Do not use JBoss web services deployment descriptor |
|
This rule flags any existing webservices.xml to detect the presence of a J2EE web services
deployment descriptor file for JBoss.
To generate JAX-RPC Web services based on JBoss Java Platform, Enterprise Edition (Java EE) web service deployment descriptors, the automated fix will create an Ant script that uses the appropriate IBM Ant tasks. This involves scanning the web services deployment descriptors and configuring the Ant script to generate the required artifacts. Conditions for triggering the rule: This rule detects the presence of JAX-RPC web services based on the following criteria: a. The presence of the J2EE web services deployment descriptor file webservices.xml b. Binary scanner detects that the IBM Ant generated file does not already exist in the root folder of the project. Rule properties: You must provide correct values for the rule properties. To change the values of the properties for this rule, select the rule in the Software Analyzer Configurations window. Then use the fields in the Properties tab. The properties for this rule are:
Ant classpath:
IBM WebSphere Application Server Ant tasks IBM WebSphere(R) Application Server includes Ant tasks like java2wsdl and wsdl2java to generate the necessary artifacts for JAX-RPC services. The generated Ant script uses these tasks to build the service. Additional information on these tasks can be obtained from the WebSphere Application Server documentation. Running the Ant script After the automated fix generates the Ant script, review it and add any necessary customizations. Refer to the WebSphere Application Server documentation for guidance on customizing the IBM Ant tasks. You must run the script using the Ant tools provided by IBM, which are included with IBM WebSphere Application Server The IBM Ant script can be run from:
When the Ant targets are run, the produced artifacts reside in the generation folder. You can inspect the generated code, deployment descriptors, and then add these artifacts to their modules. |