glassfish
  1. glassfish
  2. GLASSFISH-3840

JAXRPC ClassCastException when deploing as EAR (but works for WAR deploy)

    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
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: PC

    • Issuezilla Id:
      3,840

      Description

      I have following problem when deploying web application with JAX-RPC web
      services as a part of EAR archive. ClassCastException occurs when invoking any
      deployed web service. However when deploying web application as a standalone WAR
      everything works fine. This strange behavior occurs only when <class-loader
      delegate="false"/> is set in sun-web.xml.

      Well, it seems that in this configuration there are different class loaders for
      SOAP serializers/deserializers and application logic.

      There should be a way to create web services in WAR when delegate parameter is
      set to "false".

      Here is my stack trace:

      JAXRPC.TIE.04: Internal Server Error (JAXRPCTIE01: caught exception while
      handling request: java.lang.ClassCastException: sample.HelloServiceImpl cannot
      be cast to sample.HelloServiceSEI)
      at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187)
      at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:108)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:254)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:224)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:117)
      at $Proxy30.hello(Unknown Source)

      This situation can be created with simple HelloWorld JAX-RPC web service and
      calling that service.

        Activity

        Hide
        wymgaz added a comment -
            • Issue 3840 has been confirmed by votes. ***
        Show
        wymgaz added a comment - Issue 3840 has been confirmed by votes. ***
        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:
            Bhakti Mehta
            Reporter:
            galet
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: