Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple create methods inside the home interface

0 views
Skip to first unread message

Ripan

unread,
Jun 22, 2001, 6:55:16 AM6/22/01
to

Hi,

I am trying to deply an EJB having two create methods inside the home interface.
One is taking one argument and second does not take any argument. While deploying
Weblogic Server 6.0 gave the following error:
<Jun 22, 2001 3:22:34 PM GMT+05:30> <Error> <J2EE> <Error deploying EJB Component
: ejb
weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nested exception
is:

[6.8] In EJB ClauseMngr, the home interface of a stateless session bean
must have one create
method that takes no arguments.

[6.8] In EJB ClauseMngr, the home interface of a stateless session bean
must have one create
method that takes no arguments.
at weblogic.ejb20.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:220)
at weblogic.ejb20.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.j
ava:185)
at weblogic.ejb20.ejbc.EJBCompiler.complianceCheckJar(EJBCompiler.java:295)
at weblogic.ejb20.ejbc.EJBCompiler.checkCompliance(EJBCompiler.java:252)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:135)
at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:228)
at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:799)
at weblogic.j2ee.EJBComponent.deploy(EJBComponent.java:31)
at weblogic.j2ee.Application.addComponent(Application.java:126)
at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:28
3)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:2
33)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarg
et.java:194)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.jav
a:158)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:28
5)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
at $Proxy29.updateDeployments(Unknown Source)
at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBean_C
achingStub.java:2299)
at weblogic.management.mbeans.custom.ApplicationManager.startConfigManager(ApplicationManage
r.java:240)
at weblogic.management.mbeans.custom.ApplicationManager.start(ApplicationManager.java:122)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:562)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:548)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:28
5)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:437)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:178)
at $Proxy22.start(Unknown Source)
at weblogic.management.configuration.ApplicationManagerMBean_CachingStub.start(ApplicationMa
nagerMBean_CachingStub.java:435)
at weblogic.management.Admin.startApplicationManager(Admin.java:1030)
at weblogic.management.Admin.finish(Admin.java:491)
at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
at weblogic.Server.main(Server.java:35)
>
<Jun 22, 2001 3:22:34 PM GMT+05:30> <Error> <J2EE> <Error deploying application
ejb: Could not deplo
y: 'ejb':
[6.8] In EJB ClauseMngr, the home interface of a stateless session bean
must have one create
method that takes no arguments.>

Simon McQueen

unread,
Jun 22, 2001, 7:16:57 AM6/22/01
to
Ripan wrote:
<snip>

> I am trying to deply an EJB having two create methods inside the home interface.
> One is taking one argument and second does not take any argument. While deploying
> Weblogic Server 6.0 gave the following error:
> <Jun 22, 2001 3:22:34 PM GMT+05:30> <Error> <J2EE> <Error deploying EJB Component
> : ejb
> weblogic.ejb20.EJBDeploymentException: EJB Deployment errors:; nested exception
> is:
>
> [6.8] In EJB ClauseMngr, the home interface of a stateless session bean
> must have one create
> method that takes no arguments.
<snip>

As the exception says the unfinalised EJB 2 spec (section 7.8) dictates that
"The home interface of a stateless session bean must have one create method that
takes no arguments. ... There can be no other create methods in the home
interface".

Rob Woollen

unread,
Jun 22, 2001, 8:24:34 PM6/22/01
to
It's not just the EJB 2.0 spec. EJB 1.0 and 1.1 have the same requirement.

Stateless bean instances are created and removed at the whim of the container.
Calling home.create or home.remove does not make the container create or remove
instances.

Since the container is creating the bean instances when it feels it is necessary,
there is no opportunity for you to pass in parameters.

-- Rob

0 new messages