 
			
				13/06/2006, 17:35
			
			
			     |  
      |    |    |    Fecha de Ingreso: abril-2006  
						Mensajes: 36
					  Antigüedad: 19 años, 5 meses Puntos: 0     |        |  
  |      problema con log4j        hola a todos, espero me puedan ayudar, les cuento:   
tengo una aplicacion web con struts, en la cual quiero usar log4j para guardar los eventos que los usuarios realicen, entonces declare un logger en una accion , pero me tira el siguiente error      java.lang.NoClassDefFoundError: org/apache/log4j/Logger:   
mi codigo es el siguiente:   
public class EvaluarEntregaAction extends Action {   
	static Logger logger = Logger.getLogger(EvaluarEntregaAction.class);   
	public ActionForward execute( 
		ActionMapping mapping, 
		ActionForm form, 
		HttpServletRequest request, 
		HttpServletResponse response) 
		throws Exception {   
		ActionErrors errors = new ActionErrors(); 
		ActionForward forward = new ActionForward(); // return value 
		FbEntrega fbEntrega = (FbEntrega) form;   
		HttpSession session = request.getSession();   
/*===========================================*/		    PropertyConfigurator.configure("log4j.properties")  ; 
		logger.info("Entrando a la Accion");   
/*===========================================*/ 
		String v_rut; 
		String mensaje = null; 
		int v_polizas; 
		long v_campana; 
		int v_tipoDoc; 
		int v_despacho; 
		Collection solicitudPoliza = new ArrayList();   
		try {   
			// do something here 
			//System.out.println(fbEntrega.getCampanas()); 
			v_rut = "11111111K"; 
			v_polizas  = fbEntrega.getCantidadPolizas(); 
			v_campana  = Integer.parseInt(fbEntrega.getCampanas()); 
			v_tipoDoc  = Integer.parseInt(fbEntrega.getTipoDocumentos()); 
			v_despacho = Integer.parseInt(fbEntrega.getDespacho());     
			mensaje = iData.prueba.setRealizarSolicitarPolizas(v_polizas  ,v_rut,v_campana,v_tipoDoc,v_despacho);   
			solicitudPoliza = iData.prueba.setSolicitudPolizasByVendedor("111111  11K");   
			session.setAttribute("solPoliza",solicitudPoliza);   
			fbEntrega.setCantidadPolizas(0);//a cero 
			request.setAttribute("mensaje",mensaje);     
		} catch (Exception e) {   
			// Report the error using the appropriate name and ID. 
			errors.add("name", new ActionError("id"));   
		}   
		// If a message is required, save the specified key(s) 
		// into the request for use by the <struts:errors> tag.   
		if (!errors.isEmpty()) { 
			saveErrors(request, errors); 
		} 
		// Write logic determining how the user should be forwarded. 
		forward = mapping.findForward("lanza");   
		// Finish with 
		return (forward);   
	} 
}     
y mi property es el siguiente se llama "log4j.properties":     
log4j.rootCategory=ALL, Default 
log4j.appender.Default=org.apache.log4j.FileAppend  er 
log4j.appender.Default.file=server.log 
log4j.appender.Default.layout=org.apache.log4j.xml  .XMLLayout 
log4j.appender.Default.append=false     
de antemano, gracias por la ayuda.....           |