WLS 10.3.2: WebLogic won't compile EJB's with Generic Interfaces.

(Doc ID 1147899.1)

Last updated on FEBRUARY 22, 2017

Applies to:

Oracle WebLogic Server - Version 10.3.2 to 10.3.3
Information in this document applies to any platform.

Symptoms

On deploying a bean DAO, that implements a generic interface, as a jar on WLS 11gR1 Patch1 results in the below error:

<Mar 11, 2010 1:40:06 PM PST> <Error> <EJB> <BEA-012036> <Compiling generated EJB classes produced the following Java compiler error message:
<Compilation Error> MyBeanDAO_da06v4_GenericDAOImpl.java: The method contains(MyBean) in the type MyBeanDAO_da06v4_Intf is not applicable for the arguments (Object)
<Compilation Error> MyBeanDAO_da06v4_GenericDAOImpl.java: The method remove(MyBean) in the type MyBeanDAO_da06v4_Intf is not applicable for the arguments (Object)
<Compilation Error> MyBeanDAO_da06v4_GenericDAOImpl.java: The method findById(Integer) in the type MyBeanDAO_da06v4_Intf is not applicable for the arguments (Serializable)
<Compilation Error> MyBeanDAO_da06v4_GenericDAOImpl.java: The method persist(MyBean) in the type MyBeanDAO_da06v4_Intf is not applicable for the arguments (Object)>
<Mar 11, 2010 1:40:06 PM PST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1268343605390' for task '25'. Error is: 'weblogic.application.ModuleException: Exception preparing module: EJBModule(ejb3-test-1.0-SNAPSHOT-jar-with-dependencies)

Unable to deploy EJB: ejb3-test-1.0-SNAPSHOT-jar-with-dependencies.jar from ejb3-test-1.0-SNAPSHOT-jar-with-dependencies.jar:

There are 1 nested errors:
java.io.IOException: JDT compilation error!
at weblogic.ejb.container.ejbc.CompilerForJDT.compile(CompilerForJDT.java:66)
at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:358)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:556)
at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:523)
at weblogic.ejb.container.deployer.EJBDeployer.runEJBC(EJBDeployer.java:441)
at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:766)

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