Struts 2
  1. Struts 2
  2. WW-3704

Could not create JarEntryRevision

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.3.1
    • Fix Version/s: 2.3.4
    • Component/s: Integration
    • Labels:
      None
    • Environment:

      jboss-as-7.1.0.Alpha2-SNAPSHOT

      Description

      13:07:06,528 WARN [com.opensymphony.xwork2.util.FileManager] (MSC service thread 1-1) Could not create JarEntryRevision for [vfs:/C:/Server/jboss-as-7.1.0.Alpha2-SNAPSHOT/standalone/deployments/egov.ear/lib/struts2-core-2.2.3.1]!: java.io.FileNotFoundException: vfs:\C:\Server\jboss-as-7.1.0.Alpha2-SNAPSHOT\standalone\deployments\egov.ear\lib\struts2-core-2.2.3.1 (The filename, directory name, or volume label syntax is incorrect)
      at java.util.zip.ZipFile.open(Native Method) [:1.6.0]
      at java.util.zip.ZipFile.<init>(ZipFile.java:114) [:1.6.0]
      at java.util.jar.JarFile.<init>(JarFile.java:133) [:1.6.0]
      at java.util.jar.JarFile.<init>(JarFile.java:97) [:1.6.0]
      at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:307) [xwork-core-2.2.3.1.jar:]
      at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:145) [xwork-core-2.2.3.1.jar:]
      at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:105) [xwork-core-2.2.3.1.jar:]
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:898) [xwork-core-2.2.3.1.jar:]
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154) [xwork-core-2.2.3.1.jar:]
      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121) [xwork-core-2.2.3.1.jar:]
      at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179) [xwork-core-2.2.3.1.jar:]
      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) [xwork-core-2.2.3.1.jar:]
      at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:380) [struts2-core-2.2.3.1.jar:]
      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424) [struts2-core-2.2.3.1.jar:]
      at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) [struts2-core-2.2.3.1.jar:]
      at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) [struts2-core-2.2.3.1.jar:]
      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:447) [jbossweb-7.0.2.Final.jar:7.1.0.Alpha2-SNAPSHOT]
      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3269) [jbossweb-7.0.2.Final.jar:7.1.0.Alpha2-SNAPSHOT]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3860) [jbossweb-7.0.2.Final.jar:7.1.0.Alpha2-SNAPSHOT]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:81) [jboss-as-web-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0]
      at java.lang.Thread.run(Thread.java:619) [:1.6.0]

      Even its warning, seems like need to be fixed.
      Struts2-Convenstional-Plugin not working due to this ?

        Activity

        Sreekanth S Nair created issue -
        Maurizio Cucchiara made changes -
        Field Original Value New Value
        Link This issue duplicates WW-3391 [ WW-3391 ]
        Lukasz Lenart made changes -
        Fix Version/s 3.x [ 12319158 ]
        Erling Molde made changes -
        Comment [ Same problem with Tomcat 7, using version numbered applications: adresse##4.4.28.war;

        11:17:43,111 [Thread-70] WARN com.opensymphony.xwork2.util.FileManager [temp\9-adresse##4.4.28]:
        Could not create JarEntryRevision!
        java.io.FileNotFoundException: C:\Tomcat\Tomcat 7.0\temp\9-adresse%23%234.4.28\WEB-INF\lib\struts2-core-2.1.8.1.jar (The system cannot find the path specified)
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at java.util.jar.JarFile.<init>(Unknown Source)
        at com.opensymphony.xwork2.util.FileManager$JarEntryRevision.build(FileManager.java:297)
        at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:133)
        at com.opensymphony.xwork2.util.FileManager.loadFile(FileManager.java:93)
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:887)
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:143)
        at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:110)
        at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:168)
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
        at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
        at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
        at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
        at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:265)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:254)
        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:372)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:98)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4584)
        at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5262)
        at org.apache.catalina.core.StandardContext$2.call(StandardContext.java:5257)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)♠
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

        (Example from xwork-2.1.6:)
        Replacing

        new File(url.getPath().replaceAll("%20", " "))

        in com.opensymphony.xwork2.util.FileManager.JarEntryRevision.build(URL) with something like:

        new File(replaceHex(url.getPath())

        where replaceHex(...) is

        private static final Pattern HEX_PATTERN = Pattern.compile("%(\\w\\w)");

        private String replaceHex(final String s)
        {
        if (s == null)
        return s;
        final Matcher m = HEX_PATTERN.matcher(s);
        final StringBuffer sb = new StringBuffer(s.length());
        while (m.find()) {
        final String digits = m.group(1);
        final String replacement =
        String.valueOf(
        (char) (Character.digit(digits.charAt(0), 16) << 4
        | Character.digit(digits.charAt(1), 16)));
        m.appendReplacement(sb, replacement);
        }
        if (sb.length() == 0)
        return s;
        m.appendTail(sb);
        return sb.toString();
        }

        would solve this (part of the) problem. ]
        Lukasz Lenart made changes -
        Fix Version/s 2.3.4 [ 12320768 ]
        Fix Version/s 2.5 [ 12319158 ]
        Lukasz Lenart made changes -
        Link This issue duplicates WW-3391 [ WW-3391 ]
        Lukasz Lenart made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Lukasz Lenart [ lukaszlenart ]
        Resolution Fixed [ 1 ]
        Lukasz Lenart made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Lukasz Lenart
            Reporter:
            Sreekanth S Nair
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development