Mariano

include xwork.jar from OpenSymphony in /WEB-INF/lib

M-
This e-mail communication and any attachments may contain confidential and 
privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you 
are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, 
distribution or copying of it or its 
contents
  ----- Original Message ----- 
  From: Mariano Stampella 
  To: user@struts.apache.org 
  Sent: Tuesday, October 31, 2006 9:10 AM
  Subject: NoClassDefFoundError


  Hi, My name is Mariano Stampella, im working with the tutorial demo, and have 
this problem when tomcat startup:

   

   

  GRAVE: Excepción arrancando filtro action2

  java.lang.NoClassDefFoundError: 
com/opensymphony/xwork/config/ConfigurationException

        at 
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:134)

        at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)

        at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)

        at 
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)

   

  well, searching in the library folder found in struts2-core-2.0-SNAPSHOT.jar 
the next code:

   

  package org.apache.struts2.dispatcher;

   

  import com.opensymphony.xwork.ActionContext;

  import java.io.IOException;

  import javax.servlet.*;

  import javax.servlet.http.HttpServletRequest;

  import javax.servlet.http.HttpServletResponse;

  import org.apache.commons.logging.Log;

  import org.apache.commons.logging.LogFactory;

   

  // Referenced classes of package org.apache.struts2.dispatcher:

  //            DispatcherUtils

   

  public class ActionContextCleanUp

   

  And in the last code from repository:

   

  package org.apache.struts2.dispatcher;

   

  import java.io.IOException;

   

  import javax.servlet.Filter;

  import javax.servlet.FilterChain;

  import javax.servlet.FilterConfig;

  import javax.servlet.ServletContext;

  import javax.servlet.ServletException;

  import javax.servlet.ServletRequest;

  import javax.servlet.ServletResponse;

  import javax.servlet.http.HttpServletRequest;

  import javax.servlet.http.HttpServletResponse;

   

  import org.apache.commons.logging.Log;

  import org.apache.commons.logging.LogFactory;

   

  import com.opensymphony.xwork2.ActionContext;

  import com.opensymphony.xwork2.util.profiling.UtilTimerStack;

   

  /**

   * <!-- SNIPPET START: description -->

   * Special filter designed to work with the [EMAIL PROTECTED] 
FilterDispatcher} and allow

   * for easier integration with SiteMesh. Normally, ordering your filters to 
have

   * SiteMesh go first, and then [EMAIL PROTECTED] FilterDispatcher} go second 
is perfectly fine.

   * However, sometimes you may wish to access Struts features, including the

   * value stack, from within your SiteMesh decorators. Because [EMAIL 
PROTECTED] FilterDispatcher}

   * cleans up the [EMAIL PROTECTED] ActionContext}, your decorator won't have 
access to the

   * date you want.

   * <p/>

   * <p/>

   * By adding this filter, the [EMAIL PROTECTED] FilterDispatcher} will know 
to not clean up and

   * instead defer cleanup to this filter. The ordering of the filters should 
then be:

   * <p/>

   * <ul>

   * <li>this filter</li>

   * <li>SiteMesh filter</li>

   * <li>[EMAIL PROTECTED] FilterDispatcher}</li>

   * </ul>

   * <!-- SNIPPET END: description -->

   *

   * @version $Date: 2006-10-10 09:31:52 -0300 (Mar, 10 Oct 2006) $ $Id: 
ActionContextCleanUp.java 454720 2006-10-10 12:31:52Z tmjee $

   *

   * @see FilterDispatcher

   */

  public class ActionContextCleanUp implements Filter {

   

  Somebody knows what happened????

   

   

         
        
        
       
         
        
        
       

         
       Mariano Stampella
        [EMAIL PROTECTED]

        www.fdvsolutions.com
       
         
        
        
       
         
        
        
       
        Billinghurst 1712, 8vo D (CP1425) :: Buenos Aires, Argentina :: (54-11) 
4826-9464
       

   

   

Reply via email to