Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 20196200B41 for ; Thu, 7 Jul 2016 19:45:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1EBE9160A4F; Thu, 7 Jul 2016 17:45:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 665EE160A68 for ; Thu, 7 Jul 2016 19:45:12 +0200 (CEST) Received: (qmail 33359 invoked by uid 500); 7 Jul 2016 17:45:11 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 33341 invoked by uid 99); 7 Jul 2016 17:45:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 17:45:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 24A9A2C02A8 for ; Thu, 7 Jul 2016 17:45:11 +0000 (UTC) Date: Thu, 7 Jul 2016 17:45:11 +0000 (UTC) From: "Bob Fields (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXFXJC-10) cxf-xjc-plugin | (Access is denied) at org.apache.cxf.maven_plugin.XJCErrorListener.error(XJCErrorListener.java:48) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Jul 2016 17:45:13 -0000 [ https://issues.apache.org/jira/browse/CXFXJC-10?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366477#comment-15366477 ] Bob Fields commented on CXFXJC-10: ---------------------------------- I am seeing the same error, same stacktrace, but not consistently. Sometimes it works with JDK7 but not with JDK8. I had Eclipse running at the same time, the maven build started working again after I shut it down, even when the maven project was not imported. And now it is broken again. I can confirm there were no file permissions issues or file locking issues when the mvn build was not running. The files are created under the target subdirectory during the wsdl2java process. Perhaps it is some synchronization issue within the code generation? We also use a binding file to replace dates with java.util.Date. Windows7 x64 with current patches JDK 1.7.0_80, 1.8.0_92 maven 3.3.3 cxf-xjc-plugin 3.0.5 > cxf-xjc-plugin | (Access is denied) at org.apache.cxf.maven_plugin.XJCErrorListener.error(XJCErrorListener.java:48) > ------------------------------------------------------------------------------------------------------------------- > > Key: CXFXJC-10 > URL: https://issues.apache.org/jira/browse/CXFXJC-10 > Project: CXF XJC Utils > Issue Type: Bug > Components: Maven Plugin > Affects Versions: 3.0.3 > Reporter: Lalit > Labels: AccessIsDenied, cxf-xjc-plugin, maven, xjctojava > Fix For: NeedMoreInfo > > > [ERROR] Failed to execute goal org.apache.cxf:cxf-xjc-plugin:3.0.3:xsdtojava (generate-sources) on project travelplanv2-ws-client: \wsdl\ABC_ws-client\target\src\main\java\com\test\ComponentPriceDetail.java (Access is denied) -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.cxf:cxf-xjc-plugin:3.0.3:xsdtojava (generate-sources) on project travelplanv2-ws-client: \wsdl\ABC_ws-client\target\src\main\java\com\test\ComponentPriceDetail.java (Access is denied) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) > at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) > at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) > at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) > at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) > Caused by: org.apache.maven.plugin.MojoExecutionException: \wsdl\ABC_ws-client\target\src\main\java\com\test\ComponentPriceDetail.java (Access is denied) > at org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.execute(AbstractXSDToJavaMojo.java:248) > at org.apache.cxf.maven_plugin.XSDToJavaMojo.execute(XSDToJavaMojo.java:41) > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) > ... 19 more > Caused by: java.io.FileNotFoundException: \wsdl\ABC_ws-client\target\src\main\java\com\test\ComponentPriceDetail.java (Access is denied) > at org.apache.cxf.maven_plugin.XJCErrorListener.error(XJCErrorListener.java:48) > at org.apache.cxf.maven_plugin.XSDToJavaRunner.run(XSDToJavaRunner.java:191) > at org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.run(AbstractXSDToJavaMojo.java:301) > at org.apache.cxf.maven_plugin.AbstractXSDToJavaMojo.execute(AbstractXSDToJavaMojo.java:235) > ... 22 more > [ERROR] -- This message was sent by Atlassian JIRA (v6.3.4#6332)