Hello.

I have problem to run Maven Archiva 1.0 Alpha 2 on Apache Tomcat
(5.5.23). I can not deploy artifact to Archiva by webdav.

I followed instructions at
<http://maven.apache.org/archiva/guides/getting-started.html> and
<http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat>.
But when I deploy artifact (mvn deploy) to repository it ends with
following error on client side:
--
WAGON_VERSION: 1.0-beta-2
Uploading: 
http://localhost:8090/archiva/repository/snapshots/gdf4j/maven/maven-parent-pom/1.0.0-SNAPSHOT/maven-parent-pom-1.0.0-20070723.122953-4.pom
23.7.2007 14:29:54 org.apache.commons.httpclient.HttpMethodBase
processRedirectResponse
INFO: Redirect requested but followRedirects is disabled
23.7.2007 14:29:54 org.apache.commons.httpclient.HttpMethodBase
processAuthenticationResponse
INFO: Already tried to authenticate with 'Repository Archiva Managed
Snapshot Repository' authentication realm at localhost, but still
receiving: HTTP/1.1 401 Authorization Denied.
23.7.2007 14:29:54 org.apache.commons.httpclient.HttpMethodBase
processAuthenticationResponse
INFO: Already tried to authenticate with 'Repository Archiva Managed
Snapshot Repository' authentication realm at localhost, but still
receiving: HTTP/1.1 401 Authorization Denied.
23.7.2007 14:29:54 org.apache.commons.httpclient.HttpMethodBase
processAuthenticationResponse
INFO: Already tried to authenticate with 'Repository Archiva Managed
Snapshot Repository' authentication realm at localhost, but still
receiving: HTTP/1.1 401 Authorization Denied.
23.7.2007 14:29:54 org.apache.commons.httpclient.HttpMethodBase
processAuthenticationResponse
INFO: Already tried to authenticate with 'Repository Archiva Managed
Snapshot Repository' authentication realm at localhost, but still
receiving: HTTP/1.1 401 Authorization Denied.
23.7.2007 14:29:54 org.apache.commons.httpclient.HttpMethodBase
processAuthenticationResponse
INFO: Already tried to authenticate with 'Repository Archiva Managed
Snapshot Repository' authentication realm at localhost, but still
receiving: HTTP/1.1 401 Authorization Denied.
org.apache.commons.httpclient.HttpException: Unbuffered entity
enclosing request can not be repeated.
       at 
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:436)
       at 
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2316)
       at 
org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2651)
       at 
org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1087)
       at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
       at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
       at 
org.apache.maven.wagon.providers.webdav.CorrectedWebdavResource.putMethod(CorrectedWebdavResource.java:156)
       at 
org.apache.maven.wagon.providers.webdav.WebDavWagon.put(WebDavWagon.java:287)
       at 
org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:180)
       at 
org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:109)
       at 
org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:77)
       at org.apache.maven.plugin.deploy.DeployMojo.execute(DeployMojo.java:152)
       at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
       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:585)
       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)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: PUT request for:
gdf4j/maven/maven-parent-pom/1.0.0-SNAPSHOT/maven-parent-pom-1.0.0-20070723.122953-4.pom
to pom.xml failed

--
and following error on server side (12 times):
--
166147 [http-8080-Processor25] DEBUG
org.codehaus.plexus.redback.rbac.RBACManager:cached  - using cached
user permission map
166147 [http-8080-Processor25] INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/archiva]
- RepositoryServlet: Authorization Denied
[ip=172.16.60.118,isWriteRequest=true,permission=archiva-upload-repository,repo=snapshots]
: no matching permissions
--

But when I use standalone Archiva instance running on Plexus I have NO
problem. It runs well with same configuration.

My question is: does anybody run Archiva 1.0 alpha 2 on Tomcat and use
WebDAV to deploy artifacts to? Is mentioned documentation about
running Archiva on Tomcat up-to-date?

Thank you very much for your answers.

Best regards,
Libor

Reply via email to