An error occurred attempting to copy a file to the JNLP output directory.
-------------------------------------------------------------------------

                 Key: MWEBSTART-143
                 URL: http://jira.codehaus.org/browse/MWEBSTART-143
             Project: Maven 2.x Webstart Plugin
          Issue Type: Bug
          Components: jnlp-download-servlet
    Affects Versions: 1.0-alpha-2
         Environment: Windows XP, JDK 1.6.0_17
            Reporter: Joseph Hitt



When generating output in the target directory during either "mvn clean 
install" or "mvn clean" followed by "mvn install", the plexus FileUtils class 
evaluates false for both isDirectory AND isFile on one of the "unprocessed_" 
jars.  This causes that code to throw IOException: Unknown file type.  I 
believe this has to do with the file being non-existent at that point in the 
process.  If I run "mvn install" after the failure, the build succeeds.  This 
may be some multithreading or timing issue, not sure.  I would love to submit a 
patch, but when I try to debug it with mvnDebug, it just works (the file exists 
at that point due to slower timing).


<code>
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An error occurred attempting to copy a file to the JNLP output directory.

Embedded error: Unknown file type: 
C:\dev\Newton\trunk\Services\PdfMappingTool\target\jnlp\unprocessed_openjpa-all-2.0.0-M3.jar
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error occurred 
attempting to copy a file to the JNLP output directory.
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at 
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error occurred 
attempting to copy a file to the JNLP output directory.
        at 
org.codehaus.mojo.webstart.JnlpDownloadServletMojo.copyWorkingDirToOutputDir(JnlpDownloadServletMojo.java:732)
        at 
org.codehaus.mojo.webstart.JnlpDownloadServletMojo.execute(JnlpDownloadServletMojo.java:148)
        at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        ... 17 more
Caused by: java.io.IOException: Unknown file type: 
C:\dev\Newton\trunk\Services\PdfMappingTool\target\jnlp\unprocessed_openjpa-all-2.0.0-M3.jar
        at 
org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java:1846)
        at 
org.codehaus.plexus.util.FileUtils.copyDirectoryStructure(FileUtils.java:1755)
        at 
org.codehaus.mojo.webstart.JnlpDownloadServletMojo.copyWorkingDirToOutputDir(JnlpDownloadServletMojo.java:728)
        ... 20 more
</code>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to