WLS 10.0 - appc fails on EJB3.0 jar file when the size of the EJB class file is more (>40kb) on Windows platform (Doc ID 1106173.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 10.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

After migrating from EJB2.1 to EJB3.0 at compilation time the below error appears:

weblogic.ejb.container.compliance.ComplianceException: No EJBs found in the ejb-jar file 'foo-1.0-SNAPSHOT.jar'. Please ensure the ejb-jar contains EJB declarations via an ejb-jar.xml deployment descriptor or at least one class annotated with the @Stateless, @Stateful or @MessageDriven EJB annotation.
at weblogic.ejb.container.compliance.WeblogicJarChecker.validateEnterpriseBeansMinimalConfiguration(WeblogicJarChecker.java:198)
at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:191)
at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)

Changes

None.

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