[WLS12.1.1] - weblogic.ejb.container.compliance.ComplianceException After Upgrade to WebLogic Server 12c

(Doc ID 2052663.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 12.1.1.0 and later
Information in this document applies to any platform.

Symptoms

Upon upgrading application from WebLogic Server (WLS) 10.3.0 to WLS 12.1.1, the following error is noticed:

weblogic.ejb.container.compliance.ComplianceException: In EJB SampleBean, the throws clause for method sampleInfo
in the bean class contains exceptions that are NOT in the throws clause of the remote interface.
  at weblogic.ejb.container.compliance.EJBObjectClassChecker.checkInterfaceBusinessMethodsMatchBeanMethods(EJBObjectClassChecker.java:311)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:606)
  at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:107)
  at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:96)
  at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:85)
  at weblogic.ejb.container.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:702)
  at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:179)
  at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:392)
  at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:359)
  at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:588)
  at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:499)

Cause

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