[ 
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: 
> <BASE_DIR>\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: 
> <BASE_DIR>\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: 
> <BASE_DIR>\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: 
> <BASE_DIR>\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)

Reply via email to