Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-13 Thread Konstantin Kolinko
2012/4/13 Matt Munz :
> Olivier,
>
>  When I try to deploy from Maven, the following message appears in the access 
> log. [1]  There are no other messages in any of the other logs for this event.
>
> [1] 127.0.0.1 - - [12/Apr/2012:21:15:59 -0700] "PUT 
> /manager/html/deploy?path=%2F HTTP/1.1" 401 2550

manager/html/deploy?

That is what is used when you use HTML GUI of the manager app.

Automated tools use Text interface, not HTML one.

It has different address (and requires different user role).

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-13 Thread Olivier Lamy
Hi,
Can you try with: mvn tomcat7:deploy -Dtomcat.username=Administrator
-Dtomcat.password=a

See Mojo documentation:
http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/tomcat7-maven-plugin/deploy-mojo.html

2012/4/13 Matt Munz :
> Olivier,
>
>  When I try to deploy from Maven, the following message appears in the access 
> log. [1]  There are no other messages in any of the other logs for this event.
>
> [1] 127.0.0.1 - - [12/Apr/2012:21:15:59 -0700] "PUT 
> /manager/html/deploy?path=%2F HTTP/1.1" 401 2550
>
>  Matt
>
> On Apr 12, 2012, at 6:46 PM, Matt Munz wrote:
>
>> Olivier,
>>
>>   Thanks for getting to this.
>>
>>> Do you have more logs/details from your tomcat instance ?
>>> Especially: $CATALINA_HOME/logs/localhost_access_log.-MM-dd.txt
>>> and entries corresponding to the deployment
>>
>>   I will collect these and send them in a subsequent email.
>>
>>> Are you passing tru a http server which is proxying/redirecting to the
>>> Tomcat instance ?
>>
>>   Nope.  This is on an OS X machine.  All I did was install Tomcat 7 in a 
>> local directory, modify tomcat-users.xml as I described below, and start 
>> Tomcat.
>>
>>> What kind of deployment are you doing ? one with contextFile parameter ?
>>
>>   No, I'm just using the parameters I mentioned previously. [1]
>>
>> [1] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
>>
>>   Matt
>>
>> On Apr 12, 2012, at 3:54 PM, Olivier Lamy wrote:
>>
>>> Hello,
>>> Currently, I cannot reproduce.
>>> Do you have more logs/details from your tomcat instance ?
>>> Especially: $CATALINA_HOME/logs/localhost_access_log.-MM-dd.txt
>>> and entries corresponding to the deployment
>>> Are you passing tru a http server which is proxying/redirecting to the
>>> Tomcat instance ?
>>> What kind of deployment are you doing ? one with contextFile parameter ?
>>>
>>>
>>> 2012/4/6 Matt Munz :
 Olivier,

  OK.  Thanks.  So with the 2.0-SNAPSHOT version I am getting the same 
 error (HTTP 401). [1]  Interestingly, the plugin output makes it look like 
 the WAR file was uploaded but when I visit the Manager, I can see that it 
 is not deployed.

  Do you have any thoughts about what I can do to debug this further?  I'd 
 really like to get this working.

 [1]
 [INFO] Deploying war to http://localhost:8080/
 Uploading: http://localhost:8080/manager/html/deploy?path=%2F
 Uploaded: http://localhost:8080/manager/html/deploy?path=%2F (9555 KB at 
 33760.1 KB/sec)
 [INFO] tomcatManager status code:401, ReasonPhrase:Unauthorized

  Matt


 On Apr 4, 2012, at 12:23 AM, Olivier Lamy wrote:

> Hello,
> Have a look here:
> http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html
>
> 2012/4/4 Matt Munz :
>> Olivier,
>>
>>  I made that change to settings.xml and now I'm getting a different 
>> error. [1]  How can I find out where this plugin is stored?  Perhaps 
>> there is a problem with the repository or my repository configuration.
>>
>> [1]
>> [WARNING] The POM for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is 
>> missing, no dependency information available
>> [WARNING] Failed to retrieve plugin descriptor for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its 
>> dependencies could not be resolved: Failed to read artifact descriptor 
>> for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT
>> ...
>> [WARNING] The POM for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is 
>> missing, no dependency information available
>> ...
>> [ERROR] Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT 
>> or one of its dependencies could not be resolved: Failed to read 
>> artifact descriptor for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: Could not 
>> find artifact 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT -> [Help 1]
>>
>>  Matt Munz
>>
>> On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote:
>>
>>> Hello,
>>> With version from codehaus manager url for tomcat7 is not correct.
>>> (see 
>>> http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)
>>>
>>> Regarding the plugin prefix trouble, you have two solutions to use the
>>> correct version:
>>>
>>> * use the full cli: mvn
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
>>> * configure your settings.xml with the entry
>>>
>>>  
>>>    org.apache.tomcat.maven
>>>  
>>>
>>>
>>> HTH,
>>> --
>>> Olivier Lamy
>>> Talend: http://coders.talend.com
>>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>>
>>> 2012/4/3 Matt Munz :
 Olivier,

>>>

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-12 Thread Matt Munz
Olivier,

  When I try to deploy from Maven, the following message appears in the access 
log. [1]  There are no other messages in any of the other logs for this event.

[1] 127.0.0.1 - - [12/Apr/2012:21:15:59 -0700] "PUT 
/manager/html/deploy?path=%2F HTTP/1.1" 401 2550

  Matt

On Apr 12, 2012, at 6:46 PM, Matt Munz wrote:

> Olivier,
> 
>   Thanks for getting to this.
> 
>> Do you have more logs/details from your tomcat instance ?
>> Especially: $CATALINA_HOME/logs/localhost_access_log.-MM-dd.txt
>> and entries corresponding to the deployment
> 
>   I will collect these and send them in a subsequent email.
> 
>> Are you passing tru a http server which is proxying/redirecting to the
>> Tomcat instance ?
> 
>   Nope.  This is on an OS X machine.  All I did was install Tomcat 7 in a 
> local directory, modify tomcat-users.xml as I described below, and start 
> Tomcat.
> 
>> What kind of deployment are you doing ? one with contextFile parameter ?
> 
>   No, I'm just using the parameters I mentioned previously. [1]
> 
> [1] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
> 
>   Matt
> 
> On Apr 12, 2012, at 3:54 PM, Olivier Lamy wrote:
> 
>> Hello,
>> Currently, I cannot reproduce.
>> Do you have more logs/details from your tomcat instance ?
>> Especially: $CATALINA_HOME/logs/localhost_access_log.-MM-dd.txt
>> and entries corresponding to the deployment
>> Are you passing tru a http server which is proxying/redirecting to the
>> Tomcat instance ?
>> What kind of deployment are you doing ? one with contextFile parameter ?
>> 
>> 
>> 2012/4/6 Matt Munz :
>>> Olivier,
>>> 
>>>  OK.  Thanks.  So with the 2.0-SNAPSHOT version I am getting the same error 
>>> (HTTP 401). [1]  Interestingly, the plugin output makes it look like the 
>>> WAR file was uploaded but when I visit the Manager, I can see that it is 
>>> not deployed.
>>> 
>>>  Do you have any thoughts about what I can do to debug this further?  I'd 
>>> really like to get this working.
>>> 
>>> [1]
>>> [INFO] Deploying war to http://localhost:8080/
>>> Uploading: http://localhost:8080/manager/html/deploy?path=%2F
>>> Uploaded: http://localhost:8080/manager/html/deploy?path=%2F (9555 KB at 
>>> 33760.1 KB/sec)
>>> [INFO] tomcatManager status code:401, ReasonPhrase:Unauthorized
>>> 
>>>  Matt
>>> 
>>> 
>>> On Apr 4, 2012, at 12:23 AM, Olivier Lamy wrote:
>>> 
 Hello,
 Have a look here:
 http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html
 
 2012/4/4 Matt Munz :
> Olivier,
> 
>  I made that change to settings.xml and now I'm getting a different 
> error. [1]  How can I find out where this plugin is stored?  Perhaps 
> there is a problem with the repository or my repository configuration.
> 
> [1]
> [WARNING] The POM for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, 
> no dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin 
> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its 
> dependencies could not be resolved: Failed to read artifact descriptor 
> for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT
> ...
> [WARNING] The POM for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, 
> no dependency information available
> ...
> [ERROR] Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT 
> or one of its dependencies could not be resolved: Failed to read artifact 
> descriptor for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: Could not 
> find artifact 
> org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT -> [Help 1]
> 
>  Matt Munz
> 
> On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote:
> 
>> Hello,
>> With version from codehaus manager url for tomcat7 is not correct.
>> (see 
>> http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)
>> 
>> Regarding the plugin prefix trouble, you have two solutions to use the
>> correct version:
>> 
>> * use the full cli: mvn
>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
>> * configure your settings.xml with the entry
>> 
>>  
>>org.apache.tomcat.maven
>>  
>> 
>> 
>> HTH,
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>> 
>> 2012/4/3 Matt Munz :
>>> Olivier,
>>> 
>>>  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I 
>>> got an error saying that the tomcat7 prefix was not found. [1]  Then I 
>>> tried "mvn  tomcat:deploy -Dusername=Administrator -Dpassword=a" and I 
>>> got a 403 response from the manager.
>>> 
>>> [1]
>>> [ERROR] No plugin found 

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-12 Thread Matt Munz
Olivier,

  Thanks for getting to this.

> Do you have more logs/details from your tomcat instance ?
> Especially: $CATALINA_HOME/logs/localhost_access_log.-MM-dd.txt
> and entries corresponding to the deployment

  I will collect these and send them in a subsequent email.

> Are you passing tru a http server which is proxying/redirecting to the
> Tomcat instance ?

  Nope.  This is on an OS X machine.  All I did was install Tomcat 7 in a local 
directory, modify tomcat-users.xml as I described below, and start Tomcat.

> What kind of deployment are you doing ? one with contextFile parameter ?

  No, I'm just using the parameters I mentioned previously. [1]

[1] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a

  Matt

On Apr 12, 2012, at 3:54 PM, Olivier Lamy wrote:

> Hello,
> Currently, I cannot reproduce.
> Do you have more logs/details from your tomcat instance ?
> Especially: $CATALINA_HOME/logs/localhost_access_log.-MM-dd.txt
> and entries corresponding to the deployment
> Are you passing tru a http server which is proxying/redirecting to the
> Tomcat instance ?
> What kind of deployment are you doing ? one with contextFile parameter ?
> 
> 
> 2012/4/6 Matt Munz :
>> Olivier,
>> 
>>  OK.  Thanks.  So with the 2.0-SNAPSHOT version I am getting the same error 
>> (HTTP 401). [1]  Interestingly, the plugin output makes it look like the WAR 
>> file was uploaded but when I visit the Manager, I can see that it is not 
>> deployed.
>> 
>>  Do you have any thoughts about what I can do to debug this further?  I'd 
>> really like to get this working.
>> 
>> [1]
>> [INFO] Deploying war to http://localhost:8080/
>> Uploading: http://localhost:8080/manager/html/deploy?path=%2F
>> Uploaded: http://localhost:8080/manager/html/deploy?path=%2F (9555 KB at 
>> 33760.1 KB/sec)
>> [INFO] tomcatManager status code:401, ReasonPhrase:Unauthorized
>> 
>>  Matt
>> 
>> 
>> On Apr 4, 2012, at 12:23 AM, Olivier Lamy wrote:
>> 
>>> Hello,
>>> Have a look here:
>>> http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html
>>> 
>>> 2012/4/4 Matt Munz :
 Olivier,
 
  I made that change to settings.xml and now I'm getting a different error. 
 [1]  How can I find out where this plugin is stored?  Perhaps there is a 
 problem with the repository or my repository configuration.
 
 [1]
 [WARNING] The POM for 
 org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, 
 no dependency information available
 [WARNING] Failed to retrieve plugin descriptor for 
 org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin 
 org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its 
 dependencies could not be resolved: Failed to read artifact descriptor for 
 org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT
 ...
 [WARNING] The POM for 
 org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, 
 no dependency information available
 ...
 [ERROR] Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT 
 or one of its dependencies could not be resolved: Failed to read artifact 
 descriptor for 
 org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: Could not 
 find artifact 
 org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT -> [Help 1]
 
  Matt Munz
 
 On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote:
 
> Hello,
> With version from codehaus manager url for tomcat7 is not correct.
> (see 
> http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)
> 
> Regarding the plugin prefix trouble, you have two solutions to use the
> correct version:
> 
> * use the full cli: mvn
> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
> * configure your settings.xml with the entry
> 
>  
>org.apache.tomcat.maven
>  
> 
> 
> HTH,
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
> 
> 2012/4/3 Matt Munz :
>> Olivier,
>> 
>>  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I 
>> got an error saying that the tomcat7 prefix was not found. [1]  Then I 
>> tried "mvn  tomcat:deploy -Dusername=Administrator -Dpassword=a" and I 
>> got a 403 response from the manager.
>> 
>> [1]
>> [ERROR] No plugin found for prefix 'tomcat7' in the current project and 
>> in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] 
>> available from the repositories [local (/Users/mattmunz/.m2/repository), 
>> central (http://repo1.maven.org/maven2)] -> [Help 1]
>> [2]
>> [ERROR] Failed to execute goal 
>> org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on 
>> project ...: Cannot invoke Tomcat manager: Server returned HTTP response 
>> co

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-12 Thread Olivier Lamy
Hello,
Currently, I cannot reproduce.
Do you have more logs/details from your tomcat instance ?
Especially: $CATALINA_HOME/logs/localhost_access_log.-MM-dd.txt
and entries corresponding to the deployment
Are you passing tru a http server which is proxying/redirecting to the
Tomcat instance ?
What kind of deployment are you doing ? one with contextFile parameter ?


2012/4/6 Matt Munz :
> Olivier,
>
>  OK.  Thanks.  So with the 2.0-SNAPSHOT version I am getting the same error 
> (HTTP 401). [1]  Interestingly, the plugin output makes it look like the WAR 
> file was uploaded but when I visit the Manager, I can see that it is not 
> deployed.
>
>  Do you have any thoughts about what I can do to debug this further?  I'd 
> really like to get this working.
>
> [1]
> [INFO] Deploying war to http://localhost:8080/
> Uploading: http://localhost:8080/manager/html/deploy?path=%2F
> Uploaded: http://localhost:8080/manager/html/deploy?path=%2F (9555 KB at 
> 33760.1 KB/sec)
> [INFO] tomcatManager status code:401, ReasonPhrase:Unauthorized
>
>  Matt
>
>
> On Apr 4, 2012, at 12:23 AM, Olivier Lamy wrote:
>
>> Hello,
>> Have a look here:
>> http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html
>>
>> 2012/4/4 Matt Munz :
>>> Olivier,
>>>
>>>  I made that change to settings.xml and now I'm getting a different error. 
>>> [1]  How can I find out where this plugin is stored?  Perhaps there is a 
>>> problem with the repository or my repository configuration.
>>>
>>> [1]
>>> [WARNING] The POM for 
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, 
>>> no dependency information available
>>> [WARNING] Failed to retrieve plugin descriptor for 
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin 
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its 
>>> dependencies could not be resolved: Failed to read artifact descriptor for 
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT
>>> ...
>>> [WARNING] The POM for 
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, 
>>> no dependency information available
>>> ...
>>> [ERROR] Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or 
>>> one of its dependencies could not be resolved: Failed to read artifact 
>>> descriptor for 
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: Could not 
>>> find artifact org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT 
>>> -> [Help 1]
>>>
>>>  Matt Munz
>>>
>>> On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote:
>>>
 Hello,
 With version from codehaus manager url for tomcat7 is not correct.
 (see 
 http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)

 Regarding the plugin prefix trouble, you have two solutions to use the
 correct version:

 * use the full cli: mvn
 org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
 * configure your settings.xml with the entry

  
    org.apache.tomcat.maven
  


 HTH,
 --
 Olivier Lamy
 Talend: http://coders.talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

 2012/4/3 Matt Munz :
> Olivier,
>
>  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I 
> got an error saying that the tomcat7 prefix was not found. [1]  Then I 
> tried "mvn  tomcat:deploy -Dusername=Administrator -Dpassword=a" and I 
> got a 403 response from the manager.
>
> [1]
> [ERROR] No plugin found for prefix 'tomcat7' in the current project and 
> in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] 
> available from the repositories [local (/Users/mattmunz/.m2/repository), 
> central (http://repo1.maven.org/maven2)] -> [Help 1]
> [2]
> [ERROR] Failed to execute goal 
> org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project 
> ...: Cannot invoke Tomcat manager: Server returned HTTP response code: 
> 403 for URL: http://localhost:8080/manager/deploy?path=%2F...&war= -> 
> [Help 1]
>
>  Matt
>
> On Apr 2, 2012, at 4:16 AM, Olivier Lamy wrote:
>
>> Hello,
>> I have fixed few things related to deployment in trunk.
>> Could you test with current 2.0-SNAPSHOT ?
>>
>> Thanks
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>> 2012/4/2 Matt Munz :
>>> Hi all,
>>>
>>>  I'm trying to get the Tomcat 7 Maven plugin to work and I'm getting an 
>>> authorization problem.[1]  Here's the command that I'm running. [2]  
>>> Here's the relevant snippet from tomcat-users.xml. [3]  From the 
>>> browser I am able to log on to the Manager with this account without 
>>> problems.
>>>
>>>  Any help you could provide would be greatly appreciated.
>>>
>>> 

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-05 Thread Matt Munz
Olivier,

  OK.  Thanks.  So with the 2.0-SNAPSHOT version I am getting the same error 
(HTTP 401). [1]  Interestingly, the plugin output makes it look like the WAR 
file was uploaded but when I visit the Manager, I can see that it is not 
deployed.

  Do you have any thoughts about what I can do to debug this further?  I'd 
really like to get this working.

[1]
[INFO] Deploying war to http://localhost:8080/  
Uploading: http://localhost:8080/manager/html/deploy?path=%2F
Uploaded: http://localhost:8080/manager/html/deploy?path=%2F (9555 KB at 
33760.1 KB/sec)
[INFO] tomcatManager status code:401, ReasonPhrase:Unauthorized

  Matt


On Apr 4, 2012, at 12:23 AM, Olivier Lamy wrote:

> Hello,
> Have a look here:
> http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html
> 
> 2012/4/4 Matt Munz :
>> Olivier,
>> 
>>  I made that change to settings.xml and now I'm getting a different error. 
>> [1]  How can I find out where this plugin is stored?  Perhaps there is a 
>> problem with the repository or my repository configuration.
>> 
>> [1]
>> [WARNING] The POM for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no 
>> dependency information available
>> [WARNING] Failed to retrieve plugin descriptor for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its 
>> dependencies could not be resolved: Failed to read artifact descriptor for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT
>> ...
>> [WARNING] The POM for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no 
>> dependency information available
>> ...
>> [ERROR] Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or 
>> one of its dependencies could not be resolved: Failed to read artifact 
>> descriptor for 
>> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: Could not 
>> find artifact org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT 
>> -> [Help 1]
>> 
>>  Matt Munz
>> 
>> On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote:
>> 
>>> Hello,
>>> With version from codehaus manager url for tomcat7 is not correct.
>>> (see 
>>> http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)
>>> 
>>> Regarding the plugin prefix trouble, you have two solutions to use the
>>> correct version:
>>> 
>>> * use the full cli: mvn
>>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
>>> * configure your settings.xml with the entry
>>> 
>>>  
>>>org.apache.tomcat.maven
>>>  
>>> 
>>> 
>>> HTH,
>>> --
>>> Olivier Lamy
>>> Talend: http://coders.talend.com
>>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>> 
>>> 2012/4/3 Matt Munz :
 Olivier,
 
  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I 
 got an error saying that the tomcat7 prefix was not found. [1]  Then I 
 tried "mvn  tomcat:deploy -Dusername=Administrator -Dpassword=a" and I got 
 a 403 response from the manager.
 
 [1]
 [ERROR] No plugin found for prefix 'tomcat7' in the current project and in 
 the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available 
 from the repositories [local (/Users/mattmunz/.m2/repository), central 
 (http://repo1.maven.org/maven2)] -> [Help 1]
 [2]
 [ERROR] Failed to execute goal 
 org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project 
 ...: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 
 for URL: http://localhost:8080/manager/deploy?path=%2F...&war= -> [Help 1]
 
  Matt
 
 On Apr 2, 2012, at 4:16 AM, Olivier Lamy wrote:
 
> Hello,
> I have fixed few things related to deployment in trunk.
> Could you test with current 2.0-SNAPSHOT ?
> 
> Thanks
> --
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
> 
> 2012/4/2 Matt Munz :
>> Hi all,
>> 
>>  I'm trying to get the Tomcat 7 Maven plugin to work and I'm getting an 
>> authorization problem.[1]  Here's the command that I'm running. [2]  
>> Here's the relevant snippet from tomcat-users.xml. [3]  From the browser 
>> I am able to log on to the Manager with this account without problems.
>> 
>>  Any help you could provide would be greatly appreciated.
>> 
>> [1] tomcatManager status code:401, ReasonPhrase:Unauthorized
>> [2] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
>> [3]
>> 
>> 
>> 
>> > roles="manager-gui,manager-script,manager-jmx"/>
>> 
>>  Matt Munz
>>  matt.m.m...@gmail.com
>> 
>> 
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.ap

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-04 Thread Olivier Lamy
Hello,
Have a look here:
http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/snapshot-test.html

2012/4/4 Matt Munz :
> Olivier,
>
>  I made that change to settings.xml and now I'm getting a different error. 
> [1]  How can I find out where this plugin is stored?  Perhaps there is a 
> problem with the repository or my repository configuration.
>
> [1]
> [WARNING] The POM for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no 
> dependency information available
> [WARNING] Failed to retrieve plugin descriptor for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin 
> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its 
> dependencies could not be resolved: Failed to read artifact descriptor for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT
> ...
> [WARNING] The POM for 
> org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no 
> dependency information available
> ...
> [ERROR] Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or 
> one of its dependencies could not be resolved: Failed to read artifact 
> descriptor for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: 
> Could not find artifact 
> org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT -> [Help 1]
>
>  Matt Munz
>
> On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote:
>
>> Hello,
>> With version from codehaus manager url for tomcat7 is not correct.
>> (see 
>> http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)
>>
>> Regarding the plugin prefix trouble, you have two solutions to use the
>> correct version:
>>
>> * use the full cli: mvn
>> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
>> * configure your settings.xml with the entry
>>
>>  
>>    org.apache.tomcat.maven
>>  
>>
>>
>> HTH,
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>> 2012/4/3 Matt Munz :
>>> Olivier,
>>>
>>>  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I got 
>>> an error saying that the tomcat7 prefix was not found. [1]  Then I tried 
>>> "mvn  tomcat:deploy -Dusername=Administrator -Dpassword=a" and I got a 403 
>>> response from the manager.
>>>
>>> [1]
>>> [ERROR] No plugin found for prefix 'tomcat7' in the current project and in 
>>> the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available 
>>> from the repositories [local (/Users/mattmunz/.m2/repository), central 
>>> (http://repo1.maven.org/maven2)] -> [Help 1]
>>> [2]
>>> [ERROR] Failed to execute goal 
>>> org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project 
>>> ...: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 
>>> for URL: http://localhost:8080/manager/deploy?path=%2F...&war= -> [Help 1]
>>>
>>>  Matt
>>>
>>> On Apr 2, 2012, at 4:16 AM, Olivier Lamy wrote:
>>>
 Hello,
 I have fixed few things related to deployment in trunk.
 Could you test with current 2.0-SNAPSHOT ?

 Thanks
 --
 Olivier Lamy
 Talend: http://coders.talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

 2012/4/2 Matt Munz :
> Hi all,
>
>  I'm trying to get the Tomcat 7 Maven plugin to work and I'm getting an 
> authorization problem.[1]  Here's the command that I'm running. [2]  
> Here's the relevant snippet from tomcat-users.xml. [3]  From the browser 
> I am able to log on to the Manager with this account without problems.
>
>  Any help you could provide would be greatly appreciated.
>
> [1] tomcatManager status code:401, ReasonPhrase:Unauthorized
> [2] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
> [3]
> 
> 
> 
>  roles="manager-gui,manager-script,manager-jmx"/>
>
>  Matt Munz
>  matt.m.m...@gmail.com
>
>
>
>

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org

>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

-
To unsubscribe, e-mail: u

Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-03 Thread Matt Munz
Olivier,

  I made that change to settings.xml and now I'm getting a different error. [1] 
 How can I find out where this plugin is stored?  Perhaps there is a problem 
with the repository or my repository configuration.

[1]
[WARNING] The POM for 
org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no 
dependency information available
[WARNING] Failed to retrieve plugin descriptor for 
org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT: Plugin 
org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one of its 
dependencies could not be resolved: Failed to read artifact descriptor for 
org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT
...
[WARNING] The POM for 
org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT is missing, no 
dependency information available
...
[ERROR] Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT or one 
of its dependencies could not be resolved: Failed to read artifact descriptor 
for org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.0-SNAPSHOT: Could not 
find artifact org.apache.tomcat.maven:tomcat7-maven-plugin:pom:2.0-SNAPSHOT -> 
[Help 1]

  Matt Munz

On Apr 2, 2012, at 11:48 PM, Olivier Lamy wrote:

> Hello,
> With version from codehaus manager url for tomcat7 is not correct.
> (see 
> http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)
> 
> Regarding the plugin prefix trouble, you have two solutions to use the
> correct version:
> 
> * use the full cli: mvn
> org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
> * configure your settings.xml with the entry
> 
>  
>org.apache.tomcat.maven
>  
> 
> 
> HTH,
> -- 
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
> 
> 2012/4/3 Matt Munz :
>> Olivier,
>> 
>>  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I got 
>> an error saying that the tomcat7 prefix was not found. [1]  Then I tried 
>> "mvn  tomcat:deploy -Dusername=Administrator -Dpassword=a" and I got a 403 
>> response from the manager.
>> 
>> [1]
>> [ERROR] No plugin found for prefix 'tomcat7' in the current project and in 
>> the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available 
>> from the repositories [local (/Users/mattmunz/.m2/repository), central 
>> (http://repo1.maven.org/maven2)] -> [Help 1]
>> [2]
>> [ERROR] Failed to execute goal 
>> org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project 
>> ...: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 
>> for URL: http://localhost:8080/manager/deploy?path=%2F...&war= -> [Help 1]
>> 
>>  Matt
>> 
>> On Apr 2, 2012, at 4:16 AM, Olivier Lamy wrote:
>> 
>>> Hello,
>>> I have fixed few things related to deployment in trunk.
>>> Could you test with current 2.0-SNAPSHOT ?
>>> 
>>> Thanks
>>> --
>>> Olivier Lamy
>>> Talend: http://coders.talend.com
>>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>> 
>>> 2012/4/2 Matt Munz :
 Hi all,
 
  I'm trying to get the Tomcat 7 Maven plugin to work and I'm getting an 
 authorization problem.[1]  Here's the command that I'm running. [2]  
 Here's the relevant snippet from tomcat-users.xml. [3]  From the browser I 
 am able to log on to the Manager with this account without problems.
 
  Any help you could provide would be greatly appreciated.
 
 [1] tomcatManager status code:401, ReasonPhrase:Unauthorized
 [2] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
 [3]
 
 
 
 >>> roles="manager-gui,manager-script,manager-jmx"/>
 
  Matt Munz
  matt.m.m...@gmail.com
 
 
 
 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-02 Thread Olivier Lamy
Hello,
With version from codehaus manager url for tomcat7 is not correct.
(see 
http://mojo.codehaus.org/tomcat-maven-plugin/examples/deployment-tomcat7.html)

Regarding the plugin prefix trouble, you have two solutions to use the
correct version:

* use the full cli: mvn
org.apache.tomcat.maven:tomcat7-maven-plugin:2.0-SNAPSHOT:deploy
* configure your settings.xml with the entry

  
org.apache.tomcat.maven
  


HTH,
-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

2012/4/3 Matt Munz :
> Olivier,
>
>  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I got 
> an error saying that the tomcat7 prefix was not found. [1]  Then I tried "mvn 
>  tomcat:deploy -Dusername=Administrator -Dpassword=a" and I got a 403 
> response from the manager.
>
> [1]
> [ERROR] No plugin found for prefix 'tomcat7' in the current project and in 
> the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available 
> from the repositories [local (/Users/mattmunz/.m2/repository), central 
> (http://repo1.maven.org/maven2)] -> [Help 1]
> [2]
> [ERROR] Failed to execute goal 
> org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy (default-cli) on project 
> ...: Cannot invoke Tomcat manager: Server returned HTTP response code: 403 
> for URL: http://localhost:8080/manager/deploy?path=%2F...&war= -> [Help 1]
>
>  Matt
>
> On Apr 2, 2012, at 4:16 AM, Olivier Lamy wrote:
>
>> Hello,
>> I have fixed few things related to deployment in trunk.
>> Could you test with current 2.0-SNAPSHOT ?
>>
>> Thanks
>> --
>> Olivier Lamy
>> Talend: http://coders.talend.com
>> http://twitter.com/olamy | http://linkedin.com/in/olamy
>>
>> 2012/4/2 Matt Munz :
>>> Hi all,
>>>
>>>  I'm trying to get the Tomcat 7 Maven plugin to work and I'm getting an 
>>> authorization problem.[1]  Here's the command that I'm running. [2]  Here's 
>>> the relevant snippet from tomcat-users.xml. [3]  From the browser I am able 
>>> to log on to the Manager with this account without problems.
>>>
>>>  Any help you could provide would be greatly appreciated.
>>>
>>> [1] tomcatManager status code:401, ReasonPhrase:Unauthorized
>>> [2] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
>>> [3]
>>> 
>>> 
>>> 
>>> >> roles="manager-gui,manager-script,manager-jmx"/>
>>>
>>>  Matt Munz
>>>  matt.m.m...@gmail.com
>>>
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-02 Thread Matt Munz
Olivier,

  After switching to 2.0-SNAPSHOT, I am still getting errors :(  First I got an 
error saying that the tomcat7 prefix was not found. [1]  Then I tried "mvn  
tomcat:deploy -Dusername=Administrator -Dpassword=a" and I got a 403 response 
from the manager.

[1]
[ERROR] No plugin found for prefix 'tomcat7' in the current project and in the 
plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the 
repositories [local (/Users/mattmunz/.m2/repository), central 
(http://repo1.maven.org/maven2)] -> [Help 1]
[2]
[ERROR] Failed to execute goal org.codehaus.mojo:tomcat-maven-plugin:1.1:deploy 
(default-cli) on project ...: Cannot invoke Tomcat manager: Server returned 
HTTP response code: 403 for URL: 
http://localhost:8080/manager/deploy?path=%2F...&war= -> [Help 1]

  Matt

On Apr 2, 2012, at 4:16 AM, Olivier Lamy wrote:

> Hello,
> I have fixed few things related to deployment in trunk.
> Could you test with current 2.0-SNAPSHOT ?
> 
> Thanks
> -- 
> Olivier Lamy
> Talend: http://coders.talend.com
> http://twitter.com/olamy | http://linkedin.com/in/olamy
> 
> 2012/4/2 Matt Munz :
>> Hi all,
>> 
>>  I'm trying to get the Tomcat 7 Maven plugin to work and I'm getting an 
>> authorization problem.[1]  Here's the command that I'm running. [2]  Here's 
>> the relevant snippet from tomcat-users.xml. [3]  From the browser I am able 
>> to log on to the Manager with this account without problems.
>> 
>>  Any help you could provide would be greatly appreciated.
>> 
>> [1] tomcatManager status code:401, ReasonPhrase:Unauthorized
>> [2] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
>> [3]
>> 
>> 
>> 
>> > roles="manager-gui,manager-script,manager-jmx"/>
>> 
>>  Matt Munz
>>  matt.m.m...@gmail.com
>> 
>> 
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 7 Maven plugin: deploy fails with tomcatManager status code:401, ReasonPhrase:Unauthorized

2012-04-02 Thread Olivier Lamy
Hello,
I have fixed few things related to deployment in trunk.
Could you test with current 2.0-SNAPSHOT ?

Thanks
-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

2012/4/2 Matt Munz :
> Hi all,
>
>  I'm trying to get the Tomcat 7 Maven plugin to work and I'm getting an 
> authorization problem.[1]  Here's the command that I'm running. [2]  Here's 
> the relevant snippet from tomcat-users.xml. [3]  From the browser I am able 
> to log on to the Manager with this account without problems.
>
>  Any help you could provide would be greatly appreciated.
>
> [1] tomcatManager status code:401, ReasonPhrase:Unauthorized
> [2] mvn tomcat7:deploy -Dusername=Administrator -Dpassword=a
> [3]
> 
> 
> 
>  roles="manager-gui,manager-script,manager-jmx"/>
>
>  Matt Munz
>  matt.m.m...@gmail.com
>
>
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org