Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-1753

cxf-codegen:wsdl2java java.util.zip.ZipException: The system cannot find the path specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.8, 2.1.2
    • 2.0.9, 2.1.3
    • Build system
    • None
    • Windows XP, Maven inside Eclipse

    • Moderate

    Description

      While running the Maven plugin, I get the following exception below. The source of this exception is that on my Windows machine, the path property of the URL object includes a '/' character at the beginning and '%20' where the spaces are as in a URL. If I remove these elements in the debugger, the code executes fine. The path looks like:

      /C:/Documents%20and%20Settings/user/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-core/2.0.8/cxf-tools-wsdlto-core-2.0.8.jar

      Exception:

      [INFO] cxf-codegen:wsdl2java
      java.util.zip.ZipException: The system cannot find the path specified
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:203)
      at java.util.jar.JarFile.<init>(JarFile.java:132)
      at java.util.jar.JarFile.<init>(JarFile.java:70)
      at org.apache.cxf.maven_plugin.CodegenUtils.getClassTime(CodegenUtils.java:74)
      at org.apache.cxf.maven_plugin.CodegenUtils.getCodegenTimestamp(CodegenUtils.java:48)
      at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:221)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:578)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:328)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220)
      at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813)
      at org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85)

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            vianetman Austin Lowry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: