You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Libor Kramoliš <li...@gmail.com> on 2007/07/23 15:03:45 UTC

Problem to deploy by WebDAV to Archiva 1.0 alpha 2 running on Tomcat 5.5

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

Re: Problem to deploy by WebDAV to Archiva 1.0 alpha 2 running on Tomcat 5.5

Posted by sgargan <sg...@qualcomm.com>.
This seems to be a problem with the  
http://jira.codehaus.org/browse/REDBACK-41 Plexus redback xwork integration
module . The problem has been fixed in the alpha-3 version. Bump the redback
version in the properties section of the top level pom, rebuild and you
should be good

<redback.version>1.0-alpha-3</redback.version>

rgds,

ste


Joakim Erdfelt-2 wrote:
> 
> We have many reports of issues with Tomcat (especially the combo of 
> Tomcat + Windows)
> 
> Please provide some details on your environment to help us reproduce 
> these problems.
> See http://jira.codehaus.org/browse/MRM-333
> 
> - Joakim
> 
> Libor Kramoliš wrote:
>> 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
>>
> 
> 
> -- 
> - Joakim Erdfelt
>   joakim@erdfelt.com
>   Open Source Software (OSS) Developer
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problem-to-deploy-by-WebDAV-to-Archiva-1.0-alpha-2-running-on-Tomcat-5.5-tf4129545.html#a12606167
Sent from the archiva-users mailing list archive at Nabble.com.


Re: Problem to deploy by WebDAV to Archiva 1.0 alpha 2 running on Tomcat 5.5

Posted by Joakim Erdfelt <jo...@erdfelt.com>.
We have many reports of issues with Tomcat (especially the combo of 
Tomcat + Windows)

Please provide some details on your environment to help us reproduce 
these problems.
See http://jira.codehaus.org/browse/MRM-333

- Joakim

Libor Kramoliš wrote:
> 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
>


-- 
- Joakim Erdfelt
  joakim@erdfelt.com
  Open Source Software (OSS) Developer