archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: webdav upload error for jar project (XP -> Solaris 8)
Date Sat, 19 Jun 2010 00:59:26 GMT
That error from Java is not very helpful :)

You can try putting dav: on the front of the http:// URL, it'll use a different upload client
and give a different error message that might help (you shouldn't need to use it all the time
though).

- Brett

On 19/06/2010, at 7:46 AM, Marc Northover wrote:

> Originally I set up archiva for testing on windows XP machine and ran maven from the
same computer
> mvn deploy
> mvn scm:bootstrap
> 
> works fine for both mvn project types:  pom and jar
> 
> Installed the archiva server on a remote machine (solaris 8).  Now pom projects will
upload just fine, but jar projects fail.  I can log into the web using the "upload" user and
add the jar thru the web and it works just fine as well so it appears it isn't related to
user role permission.
> 
> maven:  2.2.1
> wagon-maven-plugin: 1.0-beta-3
> 
> Running deploy with -X here are the stacktrace:
> [DEBUG] Error writing to server
> java.io.IOException: Error writing to server
>        at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:438)
>        at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:450)
>        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:998)
>        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
>        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185)
>        at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413)
>        at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392)
>        at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365)
>        at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163)
>        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317)
>        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227)
>        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
>        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>        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)
> [DEBUG] Using Wagon implementation lightweight from default mapping for protocol http
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error deploying artifact: Error transferring file
> 
> Error writing to server
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error deploying artifact: Error
transferring file
>        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: Error deploying artifact:
Error transferring file
>        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:195)
>        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>        ... 17 more
> Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying
artifact: Error transferring file
>        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121)
>        at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:173)
>        ... 19 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Error transferring file
>        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:213)
>        at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413)
>        at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392)
>        at org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365)
>        at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163)
>        at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317)
>        at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227)
>        at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107)
>        ... 20 more
> Caused by: java.io.IOException: Error writing to server
>        at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:438)
>        at sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:450)
>        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:998)
>        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373)
>        at org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185)
>        ... 27 more
> 
> 
> 

--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/





Mime
View raw message