Thanxs, but is not the idea, i need xwork2 because i am trying to use
Struts2 and xwork2, but really i am angry with all about this,  and really I
don’t wanna put the two .jars in Classloader, i am just need stable versions
of all

 

If I put 2.0.2 SNAPSHOT the error is:

 

 The package name 'struts-default' at locattion package -
jar:file:/E:/Proyectos/Struts2/tutorial/target/tutorial/WEB-INF/lib/struts2-
all-2.0.1.jar!/struts-default.xml:8:36 is already been used by another
package at location package -
jar:file:/E:/Repositorio/org/apache/struts/struts2-core/2.0.2-SNAPSHOT/strut
s2-core-2.0.2-SNAPSHOT.jar!/struts-default.xml:8:36 - package -
jar:file:/E:/Proyectos/Struts2/tutorial/target/tutorial/WEB-INF/lib/struts2-
all-2.0.1.jar!/struts-default.xml:8:36
 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.addPackageConfig(De
faultConfiguration.java:66)
 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage
(XmlConfigurationProvider.java:254)
 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfig
urationFiles(XmlConfigurationProvider.java:723)
 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlCo
nfigurationProvider.java:121)
 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfi
guration.java:97)
 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rationManager.java:46)
 
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.getMapping(DefaultA
ctionMapper.java:238)
 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.jav
a:227)
 
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java
:118)
 
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:
52)
 
org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCle
anUp.java:118)

 

If I put 2.0 SNAPSHOT, well references xwork packages.

 

And if I put xwork 1.2.1 and changes de HelloWord app for compile then the
error is:

 

Could not load class
org.apache.struts2.interceptor.ServletConfigInterceptor. Perhaps it exists
but certain dependencies are not available? - interceptor -
jar:file:/E:/Proyectos/Struts2/tutorial/target/tutorial/WEB-INF/lib/struts2-
core-2.0-SNAPSHOT.jar!/struts-default.xml:39:113
 
com.opensymphony.xwork.ObjectFactory.buildInterceptor(ObjectFactory.java:171
)
 
com.opensymphony.xwork.config.providers.InterceptorBuilder.constructIntercep
torReference(InterceptorBuilder.java:48)
 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.lookupInter
ceptorReference(XmlConfigurationProvider.java:702)
 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInterce
ptorStack(XmlConfigurationProvider.java:569)
 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInterce
ptorStacks(XmlConfigurationProvider.java:582)
 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadInterce
ptors(XmlConfigurationProvider.java:603)
 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addPackage(
XmlConfigurationProvider.java:204)
 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigu
rationFile(XmlConfigurationProvider.java:676)
 
com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigu
rationFile(XmlConfigurationProvider.java:679)

 

 

Wuaw man!!!…..So…im really tired of lost my time.

 

 

-----Mensaje original-----
De: Martin Gainty [mailto:[EMAIL PROTECTED] 
Enviado el: Martes, 31 de Octubre de 2006 12:18 p.m.
Para: Struts Users Mailing List
Asunto: Re: NoClassDefFoundError

 

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:13
4)

 

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

 

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

 

        at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterCon
fig.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