IBM Support

WebServices Feature Pack profile is not selected when starting a Websphere Application Server to execute a WebServices application

Troubleshooting


Problem

In IBM® Rational® Application Developer and Rational Software Architect, when creating a WebServices Application in a project with WebServices Feature Pack Facet added, the WebServices wizards pick the default profile of WebSphere® 6.1 Server, not the profile with the Feature Pack installed.

Cause

Because the server requires the WebSphere Application Server Version 6.1 Feature Pack and because the default profile, Application Server profile, is used for publishing, the following error occurs:

 
!MESSAGE Publishing failed
!SUBENTRY 1 com.ibm.ws.ast.st.common.core 4 4 2008-01-24 11:35:01.101
!MESSAGE WebSphere Server Error
!SUBENTRY 2 com.ibm.ws.ast.st.v61.core 4 4 2008-01-24 11:35:01.101
!MESSAGE WebSphere Server Error
!SUBENTRY 3 com.ibm.ws.ast.st.v61.core 4 4 2008-01-24 11:35:01.101
!MESSAGE The project, TestAddress, requires the IBM WebSphere
Application Server Version 6.1 Feature Pack for Web Services installed
on the server.  To get the feature pack, see
http://www.ibm.com/software/webservers/appserv/was/support/
!SUBENTRY 1 com.ibm.ws.ast.st.common.core 4 4 2008-01-24 11:35:01.101

Diagnosing The Problem

The following steps reproduce the problem:

  1. Open RSA and go to Window > Preferences > Capabilities > Enable All

  2. Go to File > New Project > Web > Dynamic Web Project > Next and type the following:

    Project name: TestTech
    Target Runtime: Websphere Application Server v6.1

  3. Click Next > Project Facets

  4. Check WebSphere 6.1 Feature Pack for Web Services 1.0 and Finish

    Review the below link Creating a dynamic Web project for more help on how to create a new project.

  5. Go to File > New > Web Services > WSDL and click Next > Next > Finish

  6. Right click Web Services > Generate Java bean skeleton underTestTech > Select NewWSDL

  7. Click Web service runtime: under Configuration and select IBM WebSphere JAX-WS > OK > Next > Finish.
    Refer the below link Creating a Java bean skeleton from a WSDL for more help on how to generate a Java bean skeleton.

    The error will then appear as follows:
       
      Publishing failed
        WebSphere Server Error
          WebSphere Server Error
            The project, TestTech, requires the IBM WebSphere Application Server Version 6.1 Feature Pack for Web Services installed on the server.  To get the feature pack, see http://www.ibm.com/software/webservers/appserv/was/support/
        WebSphere Server Error
          WebSphere Server Error
            The project, TestTech, requires the IBM WebSphere Application Server Version 6.1 Feature Pack for Web Services installed on the server.  To get the feature pack, see http://www.ibm.com/software/webservers/appserv/was/support/
        WebSphere Server Error
          WebSphere Server Error
            The project, TestTech, requires the IBM WebSphere Application Server Version 6.1 Feature Pack for Web Services installed on the server.  To get the feature pack, see http://www.ibm.com/software/webservers/appserv/was/support/

    Resolving The Problem

    In order to prevent this error, you have to configure the correct WebSphere Server Profile and add your project to it.

    Before Step 7. from above, do the following two steps:

    Step A

    1. Go to the Servers tab, right click, and choose New > Server : IBM > WebSphere v6.1 Server

    2. Select > Next > Websphere profile name

    3. Select the profile which is with WebServices Feature Pack (by default it is called AppSrvWSFP01) and click Next > Finish

    Step B
    1. Right click on the new server, select Add and Remove Projects ..., and add your project to the server.

    No publishing error will appear anymore after executing Step 7.

    [{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Server Tooling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.0.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSYK2S","label":"Rational Software Architect Designer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Server Tooling","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.0.0.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

    Document Information

    Modified date:
    10 September 2020

    UID

    swg21294284