users@glassfish.java.net

Re: No such bean

From: Kenneth Clark <kenneth_at_rabiddog.co.za>
Date: Wed, 01 Nov 2006 16:03:55 +0200

I resolved the issue. While trying to fix another problem I was having
with wsgen I added a whole heap of environment variables. When I removed
these environment variables it built and deployed fine. I think it might
have been caching the objects somewhere and had funny referneces
floating around.

I am back to the good ol' wsgen compile with no descriptors :)

Cheng Fang wrote:
> 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
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>