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????
|
- NoClassDefFoundError Mariano Stampella
- Re: NoClassDefFoundError Martin Gainty
- RE: NoClassDefFoundError Mariano Stampella