My Oracle Support Banner

Deployment Fails 0n 10.3.5 (Doc ID 1463760.1)

Last updated on MAY 14, 2018

Applies to:

Oracle Weblogic Server - Version 10.3.3 to 12.1.1.0
Information in this document applies to any platform.

Symptoms

After updating WLS from 10.3.0 to 10.3.5 the deployment of an application fails with
"weblogic.ejb.container.compliance.ComplianceException: In EJB SvcMyDummy, the return type for method method() in the local interface does not match the return type in the bean class."

Changes

In WLS 10.3.0, 10.3.1, and 10.3.2 the covariant return type is supported. It seems to be a regression in WLS 10.3.3 to WLS 12.1.1.


EJB:
===
public class SvcMyDummyBeanImpl extends SvcMyDummyBean {
...

    @Override
    public List<String> method() {
        // TODO Auto-generated method stub
        return null;
    }

}

EJB local interface:
===============
public interface SvcMyDummy extends SvcSuperMyDummy
{
    public abstract void tueWas();
}

public interface SvcSuperMyDummy extends EJBLocalObject
{
    public abstract Collection method();
    public abstract void tueWasSuper();
}

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.