Java.util.zip.zipexception Error In Opening Zip File In Ant Build
here for a quick ant build error in opening zip file overview of the site Help Center Detailed answers ant javac error in opening zip file to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up java.uti.zip.ZipException error while calling a ant target up vote 2 down vote favorite 1 While calling a ANT target, I am getting the below error. I tried my level best solve the issue but not. Unable to obtain resource from C:\uiunit\log4j.properties: java.util.zip.ZipException: error in opening zip file [junit] Unable to obtain resource from C:\uiunit\log4j.properties: [junit] java.util.zip.ZipException: error in opening zip file [junit] at java.util.zip.ZipFile.open(Native Method) [junit] at java.util.zip.ZipFile.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Not able to run test http://stackoverflow.com/questions/17248991/java-uti-zip-zipexception-error-while-calling-a-ant-target through ANT up vote 2 down vote favorite 1 I have a test class, all the tests of this class runs fine if I run in eclipse. (right click on the file , run as jUnit) but when I am trying to run using Ant Script it fails. Actually this test is to be run against 2 browsers. This test runs fine against IE Chrome. It http://stackoverflow.com/questions/8655193/not-able-to-run-test-through-ant runs fine against IE. But test is not able to run against Chrome. I am not sure what's happening. All the driver related information I have placed under allresources/drivers/ of the project path. And browser profiles i have kept under browserProfiles folder of the project. I am not sure why tests are not able to be picked up for Chrome. I have attached test code and the code where I am trying to create webdriver and seldriver in the source code. package com.mytests; public class MyParamTest { private MyWrapperForBrowser browser; @Before public void setup(){ b = new MyWrapperForBrowser("chrome"); b.start(); } @Test public void testCURDOnEntity() { MyEntity e = new MyEntity(browser); Assert.assertTrue(e.createMessage("message", "text")); // more business logic.. } } And source code package com.mysrc; import java.util.*; import org.openqa.selenium.*; public class MyWrapperForBrowser { private final WebDriver webDriver; private WebDriverBackedSelenium selDriver; public MyWrapperForBrowser(String driver) { if (driver.equalsIgnoreCase("IE") { // create webDriver , selDriver } else{ System.setProperty("webdriver.chrome.driver", "allresources/drivers/chromedriver.exe"); DesiredCapabilities broserCapabilities = DesiredCapabilities.chrome(); broserCapabilities.setCapability("chrome.switches", Arrays.asList("--start-minimized")); String url = this.getClass().getClassLoader().getResource("browserProfiles/ChromeProfile").getPath() .substring(1); broserCapabilities.setCapability("chrome.switches", Arrays.asList("--user-data-dir=" + url)); webDriver = new ChromeDriver(broserCapabilities); selDriver = new WebDriverBackedSelenium(webDriver, ""); } } public void start() { webDriver.get(getURL()); selDriver.windowMaximize(); } } The stack trace which I am getting
Certification https://discuss.gradle.org/t/java-util-zip-zipexception-error-in-opening-zip-file/2245 Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Object Relational Mapping java.util.zip.ZipException: error in opening zip file error in sandy sean Ranch Hand Posts: 69 posted 5 years ago Hi! While running ant script for building and running a simple hibernate program i m getting following exception. can anyone guide error in opening on this please? build file output follows:- Buildfile: build.xml clean: init: compile: [javac] Compiling 3 source files to E:\prac java progs\hiber\build run: [java] java.util.zip.ZipException: error in opening zip file [java] at java.util.zip.ZipFile.open(Native Method) [java] at java.util.zip.ZipFile.
java.util.zip.ZipException: error in opening zip file Unable to obtain resource from C:\Users\ask\.gradle\caches\artifacts-24\filestore\javax.xml\saaj-api.3\pom\c1a67ab98154ee9a2068b5d3c8b7dbfe120441d\s aaj-api-1.3.pom: java.util.zip.ZipException: error in opening zip file :webui:widgetset FAILED I see this dependency in one of my build.gradle files: compile(group: 'javax.xml', name: 'saaj-api', version: '1.3', ext: 'pom') { transitive = true } and here's my webui/build.gradle script: /* Can also use this Vaadin plugin. See https://github.com/johndevs/gradle-vaadin-plugin#readme apply from: 'http://plugins.jasoft.fi/vaadin.plugin' vaadin { version = vaadinVersion widgetset = 'com.taskadapter.webui.widgetset.Vaadin1Widgetset' } */ apply plugin: 'war' dependencies { compile "org.apache.httpcomponents:httpclient:$httpClientVersion" compile "org.apache.httpcomponents:httpcore:$httpClientVersion" compile "com.vaadin:vaadin-server:$vaadinVersion" compile "com.vaadin:vaadin-client-compiled:$vaadinVersion" compile "com.vaadin:vaadin-themes:$vaadinVersion" compile 'org.vaadin.addons:googleanalyticstracker:2.0.0' // for widgetset compilation compile "com.vaadin:vaadin-client-compiler:$vaadinVersion" compile libraries.slf4j compile project(":common") compile project(":mainapp") compile project(":webshared") compile project(":connectors:connector-msp") compile project(":connectors-editors:basecamp-editor") compile project(":connectors-editors:github-editor") compile project(":connectors-editors:jira-editor") compile project(":connectors-editors:mantis-editor") compile project(":connectors-editors:msp-editor") compile project(":connectors-editors:redmine-editor") testCompile project(":test-utilities") } dependencies{ compile group:'com.google.gwt', name:'gwt-user', version:'2.5.0' compile group:'com.google.gwt', name:'gwt-dev', version:'2.5.0' } ext { webAppDirName = "src/main/webapp" vaadinDir = webAppDirName + '/VAADIN' gwtBuildDir = vaadinDir + '/widgetsets' widgetsetClass = 'com.taskadapter.webui.widgetset.Vaadin1Widgetset' } task widgetset << { // Create widgetset directory (if needed) def created = (new File(gwtBuildDir)).mkdirs() // Compile ant.java(classname: 'com.google.gwt.dev.Compiler', failOnError: 'yes', /*fork: 'true', */ maxmemory: '1000m') { classpath { pathElement(path: configurations.compile.asPath) pathElement(path: sourceSets.main.runtimeClasspath.asPath) sourceSets.main.java.srcDirs.each { pathelement(location: it.absolutePath) } } arg(line: '-war ' + gwtBuildDir) arg(line: '-logLevel INFO') arg(line: '-style OBF') ar