Ver Mensaje Individual
  #3 (permalink)  
Antiguo 05/08/2013, 19:22
Avatar de HackmanC
HackmanC
 
Fecha de Ingreso: enero-2008
Ubicación: Guatemala
Mensajes: 1.817
Antigüedad: 16 años, 2 meses
Puntos: 260
Sonrisa Respuesta: Error aplicación web struts2-spring-hibernate

Hola,

Posiblemente,

Cita:
Iniciado por aldreya Ver Mensaje
org.springframework.beans.factory.BeanCreationExce ption:
Error creating bean with name 'ListingEventos' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Could not resolve matching constructor
(hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)

Código:
    <bean id="ListingEventos" class="com.app.struts.actions.eventos.ListingEventos">
		<constructor-arg name="eventoService"  ref="eventoService" />	
	</bean>
Cita:
Iniciado por aldreya Ver Mensaje
ListingEventos.java
Código:
...
public class ListingEventos extends ActionSupport {
    
 protected IEventoService serviceEvento;    
@Override
    public String execute() throws Exception
    {
        eventos = serviceEvento.getEvents();
        return "success";
    }

    
    List<Evento> eventos;
    public List<Evento> getEvents() { 
        return eventos; 
    }
    
    public void setServices(IEventoService value) {
        serviceEvento=value;
    }
}
¿Y el constructor?

Saludos,