This content has been marked as final. 
    
Show                 2 replies
    
- 
        1. Re: Failed to deploy ear that contains web serviceeocampos Sep 20, 2012 10:14 AM (in response to burgosjc)Could not find default constructor for interface MensajeService The error says that your implementing class needs a default constructor, try with: @Stateless @WebService(serviceName="MensajeService") public class MensajeService { public void MensajeService() {} @WebMethod public String hola(String nombre) { return "Hola " + nombre; } }
- 
        2. Re: Failed to deploy ear that contains web servicesfcoy Sep 21, 2012 3:25 AM (in response to eocampos)Indeed. The EJB spec actually makes this a requirement: {quote}4.9.2 Session Bean Class ... • The class must have a public constructor that takes no parameters. The container uses this constructor to create instances of the session bean class. {quote} 
 
     
    