WLS 9.0 - WssConfiguration on WS based on EJB causes ClassCastException during deployment - CR241878 (Doc ID 776811.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 9.0 to 9.0
Information in this document applies to any platform.
Information in this document applies to any platform

Goal

On exposing an EJB as a WebService you might run into the below issue.
When the JWS gets an annotation added for WssConfiguration, the deployment fails
with a ClassCastException like:

Unable to deploy EJB: de/foo/bar/webservice/MySystem.jar from de/foo/bar/webservice/MySystem.jar: weblogic.wsee.deploy.EJBDeployInfo
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:371)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:90)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:318)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:53)
Truncated. see log file for complete stacktrace.java.lang.ClassCastException: weblogic.wsee.deploy.EJBDeployInfo
at weblogic.wsee.deploy.WsEJBDeployListener.updateWssConfigInfo(WsEJBDeployListener.java:797)
at weblogic.wsee.deploy.WsEJBDeployListener.doprepare(WsEJBDeployListener.java:209)
at weblogic.wsee.deploy.WsEJBDeployListener.prepare(WsEJBDeployListener.java:118)
at weblogic.ejb20.deployer.EJBDeployer.prepare(EJBDeployer.java:1237)
at weblogic.ejb20.deployer.EJBModule.prepare(EJBModule.java:344)
Truncated. see log file for complete stacktrace

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms