At first glance it looks like you have an old version of xwork library
(xwork-core-2.1.6.jar, it would be xwork-core-2.2.1.jar).
Check your dependency.

Buon pranzo :)

Maurizio Cucchiara

2010/10/6 Andrea Ceccanti (JIRA) <[email protected]>:
> Upgrade from Struts 2.1.8.1 to Struts 2.2.1 breaks web application
> ------------------------------------------------------------------
>
>                 Key: WW-3510
>                 URL: https://issues.apache.org/jira/browse/WW-3510
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>            Reporter: Andrea Ceccanti
>
>
> I tried to upgrade struts from 2.1.8.1 to 2.2.1 for the web application I 
> develop, and it fails to start:
>
> 0:31:30.633 [main] - ERROR o.a.c.c.C.[.[.[/voms/mysql] - Exception starting 
> filter struts2
> java.lang.NoSuchMethodError: 
> com.opensymphony.xwork2.util.finder.ClassFinder.<init>(Lcom/opensymphony/xwork2/util/finder/ClassLoaderInterface;Ljava/util/Collection;ZLjava/util/Set;Lcom/opensymphony/xwork2/util/finder/Test;)V
>        at 
> org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(PackageBasedActionConfigBuilder.java:377)
>  [struts2-convention-plugin-2.2.1.jar:2.2.1]
>        at 
> org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:335)
>  [struts2-convention-plugin-2.2.1.jar:2.2.1]
>        at 
> org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
>  [struts2-convention-plugin-2.2.1.jar:2.2.1]
>        at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
>  [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
>  [xwork-core-2.1.6.jar:na]
>        at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
>  [struts2-core-2.2.1.jar:2.2.1]
>        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415) 
> [struts2-core-2.2.1.jar:2.2.1]
>        at 
> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
>  [struts2-core-2.2.1.jar:2.2.1]
>        at 
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
>  [struts2-core-2.2.1.jar:2.2.1]
>        at 
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) 
> [catalina.jar:na]
>        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) 
> [catalina.jar:na]
>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardService.start(StandardService.java:448) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700) 
> [catalina.jar:na]
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 
> [catalina.jar:na]
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [na:1.6.0_20]
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> [na:1.6.0_20]
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  [na:1.6.0_20]
>        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_20]
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) 
> [bootstrap.jar:na]
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 
> [bootstrap.jar:na]
>
> XWork also now prints a lot of warnings like:
>
> 10:31:30.076 [main] - WARN  c.o.xwork2.util.FileManager - Could not create 
> JarEntryRevision!
> java.util.zip.ZipException: error in opening zip file
>        at java.util.zip.ZipFile.open(Native Method) [na:1.6.0_20]
>        at java.util.zip.ZipFile.<init>(ZipFile.java:114) [na:1.6.0_20]
>        at java.util.jar.JarFile.<init>(JarFile.java:135) [na:1.6.0_20]
>        at java.util.jar.JarFile.<init>(JarFile.java:99) [na:1.6.0_20]
>        at 
> com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:297)
>  [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:133) 
> [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:93) 
> [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:887)
>  [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
>  [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
>  [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
>  [xwork-core-2.1.6.jar:na]
>        at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
>  [xwork-core-2.1.6.jar:na]
>        at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
>  [struts2-core-2.2.1.jar:2.2.1]
>        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415) 
> [struts2-core-2.2.1.jar:2.2.1]
>        at 
> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
>  [struts2-core-2.2.1.jar:2.2.1]
>        at 
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
>  [struts2-core-2.2.1.jar:2.2.1]
>        at 
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) 
> [catalina.jar:na]
>        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>  [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) 
> [catalina.jar:na]
>        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardService.start(StandardService.java:448) 
> [catalina.jar:na]
>        at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700) 
> [catalina.jar:na]
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 
> [catalina.jar:na]
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> [na:1.6.0_20]
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> [na:1.6.0_20]
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  [na:1.6.0_20]
>        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_20]
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) 
> [bootstrap.jar:na]
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 
> [bootstrap.jar:na]
>
>
> The struts dependecies in my project are as follows:
>
> <dependency>
>      <groupId>org.apache.struts</groupId>
>      <artifactId>struts2-core</artifactId>
>      <version>2.2.1</version>
>    </dependency>
>    <dependency>
>      <groupId>org.apache.struts</groupId>
>      <artifactId>struts2-convention-plugin
>      </artifactId>
>      <version>2.2.1</version>
>    </dependency>
>    <dependency>
>      <groupId>org.apache.struts</groupId>
>      <artifactId>struts2-tiles-plugin</artifactId>
>      <version>2.2.1</version>
>    </dependency>
>    <dependency>
>      <groupId>org.apache.struts</groupId>
>      <artifactId>struts2-json-plugin
>      </artifactId>
>      <version>2.2.1</version>
>    </dependency>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to