Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4490

Could not create JarEntryRevision - Struts app migrated from Tomcat 6 to Tomcat 8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.3.16
    • Fix Version/s: 2.3.24
    • Component/s: Dispatch Filter
    • Labels:
      None
    • Environment:

      Tomcat 8.0.18

      Description

      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

      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)
       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aliasdhacker Andrew Carr
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: