struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4490) Could not create JarEntryRevision - Struts app migrated from Tomcat 6 to Tomcat 8
Date Fri, 17 Apr 2015 06:16:59 GMT

    [ https://issues.apache.org/jira/browse/WW-4490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499330#comment-14499330
] 

Lukasz Lenart commented on WW-4490:
-----------------------------------

Double checked with an example app on Tomcat 8.0.3 and 8.0.21 - no issue spotted in the latest
version of Struts. I assume 2.3.20 is fine as well.

> Could not create JarEntryRevision - Struts app migrated from Tomcat 6 to Tomcat 8
> ---------------------------------------------------------------------------------
>
>                 Key: WW-4490
>                 URL: https://issues.apache.org/jira/browse/WW-4490
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Dispatch Filter
>    Affects Versions: 2.3.16
>         Environment: Tomcat 8.0.18
>            Reporter: Andrew Carr
>             Fix For: 2.3.24
>
>
> It looks like deploying an application on Tomcat 8.0.18 using Struts 2.3.16 generates
a warning:
> com.opensymphony.xwork2.util.fs.JarEntryRevision [localhost-startStop-1] ,  - Could not
create JarEntryRevision for [jar:war:file:/apps/tg/test/webapps/gateway-pilot-admin.war^/WEB-INF/lib/struts2-core-2.3.16.jar]!
> I am in the process of additional testing, any thoughts are welcome.
> Full Stack Trace below
> {noformat}
> 2015-04-06 17:12:13,165 WARN  com.opensymphony.xwork2.util.fs.JarEntryRevision [localhost-startStop-1]
,  - Could not create JarEntryRevision for [jar:war:file:/apps/tg/test/webapps/gateway-pilot-admin.war^/WEB-INF/lib/struts2-core-2.3.16.jar]!
> java.io.FileNotFoundException: war:file:/apps/tg/test/webapps/gateway-pilot-admin.war^/WEB-INF/lib/struts2-core-2.3.16.jar
(No such file or directory)
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:220)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:150)
>         at java.util.jar.JarFile.<init>(JarFile.java:166)
>         at java.util.jar.JarFile.<init>(JarFile.java:130)
>         at com.opensymphony.xwork2.util.fs.JarEntryRevision.build(JarEntryRevision.java:50)
>         at com.opensymphony.xwork2.util.fs.DefaultFileManager.monitorFile(DefaultFileManager.java:97)
>         at com.opensymphony.xwork2.util.fs.DefaultFileManager.loadFile(DefaultFileManager.java:74)
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1011)
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:165)
>         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:132)
>         at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:233)
>         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
>         at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
>         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
>         at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
>         at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
>         at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
>         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
>         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
>         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4565)
>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5180)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917)
>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>  {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message