Re: WLS 9.1 compliance exception

"Gwyn Evans" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
What does the Home interface actually contain, though?
Do you have a "public void ejbCreate() throws CreateException {...}"
in the main Bean class?

/Gwyn

On 24/04/06, Doug Tanner <[email protected]> wrote:
>
>
>
> I am stumped at the moment.  Our program creates an ActionFrame EJB which
> handles the creation of all other EJBs.  However, I am seeing the following
> error during the build process:
>
>
>
>      [java] There are 1 nested errors:
>
>
>
>      [java] <Apr 24, 2006 1:41:53 PM EDT> <Error> <J2EE> <BEA-160187>
> <weblogic.appc failed to compile your application. Recompile with the
> -verbose option for more details. Please see the error message(s) below.>
>
>      [java]
> weblogic.ejb.container.compliance.ComplianceException: In
> EJB
> cbm.persistence.generic.sponsorCheckListItem.SponsorCheckListItem,
> the home interface of a stateless session bean must have one create method
> that takes no arguments.
>
>      [java]            at
> weblogic.ejb.container.compliance.SessionHomeInterfaceChecker.checkStatelessNoArgCreate(SessionHomeInterfaceChecker.java:82)
>
>      [java]            at
> jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
> Source)
>
>      [java]            at
> java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
> Source)
>
>      [java]            at
> weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:261)
>
>      [java]            at
> weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:215)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:868)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:836)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:228)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:494)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:434)
>
>      [java]            at
> weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:292)
>
>      [java]            at
> weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:95)
>
>      [java]            at
> weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:113)
>
>      [java]            at
> weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
>
>      [java]            at
> weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:55)
>
>      [java]            at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
>
>      [java]            at
> weblogic.application.compiler.FlowDriver.run(FlowDriver.java:24)
>
>      [java]            at
> weblogic.application.compiler.Appc.runBody(Appc.java:151)
>
>      [java]            at
> weblogic.utils.compiler.Tool.run(Tool.java:158)
>
>      [java]            at
> weblogic.utils.compiler.Tool.run(Tool.java:115)
>
>      [java]            at
> weblogic.application.compiler.Appc.main(Appc.java:162)
>
>      [java]            at weblogic.appc.main(appc.java:14)
>
>
>
>      [java] There are 1 nested errors:
>
>
>
>      [java]
> weblogic.ejb.container.compliance.ComplianceException: In
> EJB
> cbm.persistence.generic.sponsorCheckListItem.SponsorCheckListItem,
> the home interface of a stateless session bean must have one create method
> that takes no arguments.
>
>      [java]            at
> weblogic.ejb.container.compliance.SessionHomeInterfaceChecker.checkStatelessNoArgCreate(SessionHomeInterfaceChecker.java:82)
>
>      [java]            at
> jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
> Source)
>
>      [java]            at
> java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
> Source)
>
>      [java]            at
> weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:261)
>
>      [java]            at
> weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:215)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:868)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:836)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:228)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:494)
>
>      [java]            at
> weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:434)
>
>      [java]            at
> weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:292)
>
>      [java]            at
> weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:95)
>
>      [java]            at
> weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:113)
>
>      [java]            at
> weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
>
>      [java]            at
> weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:55)
>
>      [java]            at
> weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
>
>      [java]            at
> weblogic.application.compiler.FlowDriver.run(FlowDriver.java:24)
>
>      [java]            at
> weblogic.application.compiler.Appc.runBody(Appc.java:151)
>
>      [java]            at
> weblogic.utils.compiler.Tool.run(Tool.java:158)
>
>      [java]            at
> weblogic.utils.compiler.Tool.run(Tool.java:115)
>
>      [java]            at
> weblogic.application.compiler.Appc.main(Appc.java:162)
>
>      [java]            at weblogic.appc.main(appc.java:14)
>
>
>
> However, the Bean in question is a Stateless EJB and so according to the
> Xdoclet website:
>
>
>
> "The method is an ejbCreate method and will be included in the home
> interface. It is applicable to Session and Entity beans. In Stateless
> Session beans the ejbCreate will be created if it is not in the code."
>
>
>
> So why is this error being thrown?  We have over 100 ejbs that this error is
> not thrown for.
>
>
>
> Thanks for the help.
>
>
>
> Doug Tanner
>
> Operations Engineer
>
> Benefitfocus.com, Inc.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.