glassfish
  1. glassfish
  2. GLASSFISH-2929

HTTP_BINDING causes Web Services panel in Admin UI to fail (does not show other deployed service)

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1pe
    • Fix Version/s: not determined
    • Component/s: web_services_mgmt
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Linux

    • Issuezilla Id:
      2,929

      Description

      I have two API services being deployed through the Glassfish Autodeploy. One is
      a standard SOAP service. IF deployed by itself, it will show up in the Web
      Services page on the Admin server.

      If I deploy my REST based service which is using HTTP_BINDING, neither service
      will show up in the Admin page. Error messages about Descriptors shows up in
      the log files..

      Both services are still able to be invoked.

      Version: Glassfish V2 b43

      Example Code:
      @WebServiceProvider(serviceName = "TestService")
      @ServiceMode(value = Service.Mode.PAYLOAD)
      @BindingType(value = HTTPBinding.HTTP_BINDING)
      public class TestService implements Provider<Source>
      {
      public Source invoke(Source source)

      { return source; }

      }

      Logs:
      [#|2007-04-26T15:33:29.872-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=20;_ThreadName=httpWorkerThread-8023-3;_RequestID=13949758-cfa7-40f0-9387-9c5b294e1e66;|com.sun.enterprise.admin.mbeans.J2EEModule:ge
      tStringForDDxml FileNotFoundException
      /u/cparis/devel.p4/api/glassfish/domains/api/generated/xml/j2ee-modules/platform/null|#]

      [#|2007-04-26T15:33:29.880-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=20;_ThreadName=httpWorkerThread-8023-3;_RequestID=13949758-cfa7-40f0-9387-9c5b294e1e66;|com.sun.enterprise.admin.mbeans.J2EEModule:ge
      tStringForDDxml FileNotFoundException
      /u/cparis/devel.p4/api/glassfish/domains/api/generated/xml/j2ee-modules/platform/null|#]

      [#|2007-04-26T15:33:29.881-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=20;_ThreadName=httpWorkerThread-8023-3;_RequestID=13949758-cfa7-40f0-9387-9c5b294e1e66;|Descriptors
      could not be loaded for module pl
      atform : null.|#]

        Activity

        Hide
        gfbugbridge added a comment -

        <BT6550920>

        Show
        gfbugbridge added a comment - <BT6550920>
        Hide
        sirajg added a comment -

        Discussed with Anissa, transferring to admin gui for evaluation. If there is no
        WSDL, certain functions, such as show WSDL and test, will not work. However the
        list of non-REST services should be displayed.

        Show
        sirajg added a comment - Discussed with Anissa, transferring to admin gui for evaluation. If there is no WSDL, certain functions, such as show WSDL and test, will not work. However the list of non-REST services should be displayed.
        Hide
        Anissa Lam added a comment -

        Please attach the app if possible. This will help us debug and ensure the fix.

        Show
        Anissa Lam added a comment - Please attach the app if possible. This will help us debug and ensure the fix.
        Hide
        Anissa Lam added a comment -

        Admin GUI calls the backend to get the list of web services for displaying the
        tree node and also to construct the web services table.
        The API used is:
        return AMXUtil.getWebServiceMgr().getWebServiceEndpointKeys();

        I see that once i call this API, the following error is logged

        [#|2007-05-15T15:13:34.230-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=0acb9608-f7b2-45fb-9ec8-608452baa2ba;|com.sun.enterprise.admin.mbeans.J2EEModule:getStringForDDxml
        FileNotFoundException
        /Users/anilam/Awork/as91/publish/glassfish/domains/domain1/generated/xml/j2ee-modules/restful-web/null|#]

        [#|2007-05-15T15:13:34.254-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=0acb9608-f7b2-45fb-9ec8-608452baa2ba;|Descriptors
        could not be loaded for module restful-web : null.|#]

        and the restful-web is not returned as one of the web services.
        This is like the error reported by the submitter.

        GUI displays whatever is returned by the backend. Transferring this to web
        services mgt.

        Show
        Anissa Lam added a comment - Admin GUI calls the backend to get the list of web services for displaying the tree node and also to construct the web services table. The API used is: return AMXUtil.getWebServiceMgr().getWebServiceEndpointKeys(); I see that once i call this API, the following error is logged [#|2007-05-15T15:13:34.230-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=0acb9608-f7b2-45fb-9ec8-608452baa2ba;|com.sun.enterprise.admin.mbeans.J2EEModule:getStringForDDxml FileNotFoundException /Users/anilam/Awork/as91/publish/glassfish/domains/domain1/generated/xml/j2ee-modules/restful-web/null|#] [#|2007-05-15T15:13:34.254-0700|WARNING|sun-appserver9.1|javax.enterprise.system.tools.admin|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=0acb9608-f7b2-45fb-9ec8-608452baa2ba;|Descriptors could not be loaded for module restful-web : null.|#] and the restful-web is not returned as one of the web services. This is like the error reported by the submitter. GUI displays whatever is returned by the backend. Transferring this to web services mgt.
        Hide
        Anissa Lam added a comment -

        Created an attachment (id=915)
        web services war to reproduce this error

        Show
        Anissa Lam added a comment - Created an attachment (id=915) web services war to reproduce this error
        Hide
        Anissa Lam added a comment -

        The war file is from
        glassfish/appserv-tests/devtests/web service/annotation/restful

        Show
        Anissa Lam added a comment - The war file is from glassfish/appserv-tests/devtests/web service/annotation/restful
        Hide
        sirajg added a comment -

        Standard SOAP services are displayed but REST services are not. This is because
        the code fails looking for descriptors

        Show
        sirajg added a comment - Standard SOAP services are displayed but REST services are not. This is because the code fails looking for descriptors
        Hide
        sirajg added a comment -

        This is partially fixed. The non REST web services are displayed in admin gui.
        REST services are not displayed because the code :
        public Map getWebServicesMap() {
        ....
        ....

        try

        { wsInfoListInMod = wsInfoPvdr.getWebServiceInfo(descLoc, propMap); }

        catch ( Exception e)

        { // log warnin String msg =_stringMgr.getString("ModInfoNotFound",appName + " : " + e.getMessage()); _logger.log(Level.WARNING, msg); }

        ....
        ..

        in com.sun.enterprise.admin.wsmgmt.WebServiceMgrBackEnd
        results in the above exception, when xml files are not found, which would be the
        case with REST services. Fixing this could potentially cause some regressions.
        So downgrading to P4 for now, and also because non REST services are being
        displayed. Please raise priority if this is considered a show stopper.
        in

        Show
        sirajg added a comment - This is partially fixed. The non REST web services are displayed in admin gui. REST services are not displayed because the code : public Map getWebServicesMap() { .... .... try { wsInfoListInMod = wsInfoPvdr.getWebServiceInfo(descLoc, propMap); } catch ( Exception e) { // log warnin String msg =_stringMgr.getString("ModInfoNotFound",appName + " : " + e.getMessage()); _logger.log(Level.WARNING, msg); } .... .. in com.sun.enterprise.admin.wsmgmt.WebServiceMgrBackEnd results in the above exception, when xml files are not found, which would be the case with REST services. Fixing this could potentially cause some regressions. So downgrading to P4 for now, and also because non REST services are being displayed. Please raise priority if this is considered a show stopper. in
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

          People

          • Assignee:
            sirajg
            Reporter:
            cparis
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: