users@glassfish.java.net

Re: No such bean

From: Cheng Fang <Cheng.Fang_at_Sun.COM>
Date: Wed, 01 Nov 2006 08:21:56 -0500

Hi Kenneth,

What does your ejb-jar.xml look like, if any? Also make sure
CompanyServiceBean.class and all referenced classes are available in the
ejb-jar.xml. If some classes are missing during packing time, ant won't
tell you. Did you run $glassfish.home/bin/verifier?

Cheng




Kenneth Clark wrote:
> Not having a good week.
>
> Last night everything was working fine but this morning everything has
> gone side ways.
>
> Deploying application in domain failed; Error loading deployment
> descriptors for module [ModuleName] -- Referencing error: This bundle
> has no bean of name [CompanyServiceBean] Error loading deployment
> descriptors for module [ModuleName] -- Referencing error: This bundle
> has no bean of name [CompanyServiceBean]
>
> sun-ejb-jar.xml (located in META-INF)
> <sun-ejb-jar>
> <enterprise-beans>
> <ejb>
> <ejb-name>CompanyServiceBean</ejb-name>
> <webservice-endpoint>
> <port-component-name>CompanyServiceBean</port-component-name>
> <login-config>
> <auth-method>BASIC</auth-method>
> </login-config>
> </webservice-endpoint>
> </ejb>
> </enterprise-beans>
> </sun-ejb-jar>
>
> EJB
>
> package com.companyname.webservices.company;
> import javax.ejb.Stateless;
> import javax.jws.WebMethod;
> import javax.jws.WebService;
>
> @Stateless
> @WebService(serviceName = "CompanyWebService")
> public class CompanyServiceBean implements CompanyService {
> public CompanyServiceBean() {
> }
>
> @WebMethod(operationName="HelloWorld")
> public String sayHello(String name){
> return "Hello there " + name;
> }
>
> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>