users@glassfish.java.net

Re: Referencing error: This bundle has no bean of name

From: <hong.hz.zhang_at_oracle.com>
Date: Fri, 23 Dec 2011 10:30:43 -0500

 From the error message, it seems someone is trying to reference the
bean with name "UserManager" when no bean with that name exists. You
will need to check in your application who is referencing that name and
fix as needed.

And note we are no longer doing any active development on v2.* (any bug
fixes will need to go through support channel/sustaining engineer). You
could try with the GlassFish 3.* to see how things work there.

- Hong

On 12/23/2011 2:45 AM, forums_at_java.net wrote:
> Hi All,
>
> While deploying in Glassfish 2.1.1 with JDK 1.6.0.3 on Window XP i'm
> getting
> the error like "Referencing error: This bundle has no bean of name".
> I have
> not used any sun-ejb-jar.xml file. I have used only ejb-jar.xml.
> Please help
> on this. I stuck in this issue since last 4 days.
>
> The complete error stack is like below :-
>
> [#|2011-12-23T12:42:51.520+0530|SEVERE|sun-appserver2.1|javax.enterprise.system.tools.deployment|_ThreadID=18;_ThreadName=Thread-338;_RequestID=73831bd8-6dfc-4f54-9dec-6d6fe85be768;|Exception
>
> occured in J2EEC Phasejava.lang.IllegalArgumentException: Referencing
> error:
> This bundle has no bean of name [UserManager]
> com.sun.enterprise.deployment.backend.IASDeploymentException: Error
> loading
> deployment descriptors for module [wsc] -- Referencing error: This
> bundle has
> no bean of name [UserManager]
> at
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:406)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployerBase.loadDescriptors(AppDeployerBase.java:359)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:226)
>
> at
> com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:148)
>
> at
> com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:208)
>
> at
> com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:108)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:966)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:283)
>
> at
> com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:835)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:187)
>
> at
> com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:225)
>
> Caused by: java.lang.IllegalArgumentException: Referencing error: This
> bundle
> has no bean of name [UserManager]
> at
> com.sun.enterprise.deployment.EjbBundleDescriptor.getEjbByName(EjbBundleDescriptor.java:283)
>
> at
> com.sun.enterprise.deployment.EjbBundleDescriptor.getEjbByName(EjbBundleDescriptor.java:266)
>
> at
> com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:493)
>
> at
> com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2069)
>
> at
> com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:735)
>
> at
> com.sun.enterprise.deployment.Application.visit(Application.java:1819)
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:520)
>
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:840)
>
> at
> com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:794)
>
> at
> com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:365)
>
> ... 10 more
> |#]
>
>
>
> --
>
> [Message sent by forum member 'mohitkumarjoshi']
>
> View Post: http://forums.java.net/node/876859
>
>