Issue Details (XML | Word | Printable)

Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Bhakti Mehta
Reporter: galet
Votes: 1
Watchers: 0

If you were logged in you would be able to see more operations.

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

Created: 06/Nov/07 12:24 PM   Updated: 06/Mar/12 09:58 PM
Component/s: web_services
Affects Version/s: 9.1pe
Fix Version/s: not determined

Time Tracking:
Not Specified


Operating System: All
Platform: PC

Issuezilla Id: 3,840
Participants: Bhakti Mehta, galet, Tom Mueller and wymgaz

 Description  « Hide

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 $Proxy30.hello(Unknown Source)

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

wymgaz added a comment - 09/Nov/09 07:55 PM
      • Issue 3840 has been confirmed by votes. ***

Tom Mueller added a comment - 06/Mar/12 09:58 PM

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