You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Thomas Chang <th...@yahoo.de> on 2008/01/11 13:27:39 UTC

Error: Cannot invoke Tomcat manager by running tomcat:deploy

Hi all,

I try to deploy a WAR to Tomcat using "
mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager". But I got error as follow. What's wrong?

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot invoke Tomcat manager

Embedded error: Server returned HTTP response code: 401 for URL: http://localhos
t:8585/manager/deploy?path=%2FTestWeb&war=
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
[INFO] Final Memory: 6M/11M
[INFO] ------------------------------------------------------------------------

C:\Projects\eclipse_workspace\TestWeb>

       
---------------------------------
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Dennis Lundberg <de...@apache.org>.
Please have a look at the documentation for the Tomcat Manager Application:

http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html

Thomas Chang wrote:
> Yes. I can open  http://localhost:8080/manager/html. In this page this is a table where there is "/manager". If I click it, I got the error. It seems it will call up the manager app but failed.
> 
> 
> 
> Jeff MAURY <je...@jeffmaury.com> schrieb: What url do you use ?
> The URL to use is http://localhost:8080/manager/html
> and not *http://localhost:8080/manager*
> 
> Jeff
> 
> 
> On Jan 11, 2008 3:04 PM, Thomas Chang  wrote:
> 
>> You are right. I change the "tomcat-users.xml" as you wrote, it runs.
>> Thank!
>>
>> But, if I open the Tomcat and go into the Manager page. When I click the
>> link "manager", I will get error of "HTTP Status 404 - /manager/".
>>
>> Do you know why?
>>
>>
>>
>> Jeff MAURY  schrieb: By default, the tomcat
>> plugin uses admin as a user name and no password.
>> If you don't specify them in your POM, your use modify your
>> tomcat-users.xmlfile as follows:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  **
>>
>>
>> Jeff
>>
>>
>>
>> On Jan 11, 2008 2:36 PM, Thomas Chang  wrote:
>>
>>> Now I change the "tomcat-users.xml" as follow, but it's the same.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Jeff MAURY  schrieb: You must have the manager
>>> role so supply tomcat as user and password.
>>>
>>> Regards
>>> Jeff
>>>
>>>
>>> On Jan 11, 2008 2:03 PM, Thomas Chang  wrote:
>>>
>>>> Sure. My "tomcat-users.xml" looks as follow. Is it OK?
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Jeff MAURY  schrieb: You must specify user and
>>>> password because the manager application is
>>>> protected by default.
>>>>
>>>> Jeff
>>>>
>>>>
>>>> On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I try to deploy a WAR to Tomcat using "
>>>>> mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager".
>>> But
>>>> I
>>>>> got error as follow. What's wrong?
>>>>>
>>>>> [ERROR] BUILD ERROR
>>>>> [INFO]
>>>>>
>>> ------------------------------------------------------------------------
>>>>> [INFO] Cannot invoke Tomcat manager
>>>>>
>>>>> Embedded error: Server returned HTTP response code: 401 for URL:
>>>>> http://localhos
>>>>> t:8585/manager/deploy?path=%2FTestWeb&war=
>>>>> [INFO]
>>>>>
>>> ------------------------------------------------------------------------
>>>>> [INFO] For more information, run Maven with the -e switch
>>>>> [INFO]
>>>>>
>>> ------------------------------------------------------------------------
>>>>> [INFO] Total time: 10 seconds
>>>>> [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
>>>>> [INFO] Final Memory: 6M/11M
>>>>> [INFO]
>>>>>
>>> ------------------------------------------------------------------------
>>>>> C:\Projects\eclipse_workspace\TestWeb>
>>>>>
>>>>>
>>>>> ---------------------------------
>>>>> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
>>>> Sie´s
>>>>> mit dem  neuen Yahoo! Mail.
>>>>>
>>>>
>>>>
>>>> --
>>>> La mélancolie c'est communiste
>>>> Tout le monde y a droit de temps en temps
>>>> La mélancolie n'est pas capitaliste
>>>> C'est même gratuit pour les perdants
>>>> La mélancolie c'est pacifiste
>>>> On ne lui rentre jamais dedans
>>>> La mélancolie oh tu sais ça existe
>>>> Elle se prend même avec des gants
>>>> La mélancolie c'est pour les syndicalistes
>>>> Il faut juste sa carte de permanent
>>>>
>>>> Miossec (2006)
>>>>
>>>> http://www.jeffmaury.com
>>>> http://riadiscuss.jeffmaury.com
>>>>
>>>>
>>>>
>>>> ---------------------------------
>>>> Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo!
>> zu
>>>> Ihrer Startseite!
>>>>
>>>
>>>
>>> --
>>> La mélancolie c'est communiste
>>> Tout le monde y a droit de temps en temps
>>> La mélancolie n'est pas capitaliste
>>> C'est même gratuit pour les perdants
>>> La mélancolie c'est pacifiste
>>> On ne lui rentre jamais dedans
>>> La mélancolie oh tu sais ça existe
>>> Elle se prend même avec des gants
>>> La mélancolie c'est pour les syndicalistes
>>> Il faut juste sa carte de permanent
>>>
>>> Miossec (2006)
>>>
>>> http://www.jeffmaury.com
>>> http://riadiscuss.jeffmaury.com
>>>
>>>
>>>
>>> ---------------------------------
>>> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
>> Sie´s
>>> mit dem  neuen Yahoo! Mail.
>>>
>>
>>
>> --
>> La mélancolie c'est communiste
>> Tout le monde y a droit de temps en temps
>> La mélancolie n'est pas capitaliste
>> C'est même gratuit pour les perdants
>> La mélancolie c'est pacifiste
>> On ne lui rentre jamais dedans
>> La mélancolie oh tu sais ça existe
>> Elle se prend même avec des gants
>> La mélancolie c'est pour les syndicalistes
>> Il faut juste sa carte de permanent
>>
>> Miossec (2006)
>>
>> http://www.jeffmaury.com
>> http://riadiscuss.jeffmaury.com
>>
>>
>>
>> ---------------------------------
>> Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu
>> Ihrer Startseite!
>>
> 
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Thomas Chang <th...@yahoo.de>.
Yes. I can open  http://localhost:8080/manager/html. In this page this is a table where there is "/manager". If I click it, I got the error. It seems it will call up the manager app but failed.



Jeff MAURY <je...@jeffmaury.com> schrieb: What url do you use ?
The URL to use is http://localhost:8080/manager/html
and not *http://localhost:8080/manager*

Jeff


On Jan 11, 2008 3:04 PM, Thomas Chang  wrote:

> You are right. I change the "tomcat-users.xml" as you wrote, it runs.
> Thank!
>
> But, if I open the Tomcat and go into the Manager page. When I click the
> link "manager", I will get error of "HTTP Status 404 - /manager/".
>
> Do you know why?
>
>
>
> Jeff MAURY  schrieb: By default, the tomcat
> plugin uses admin as a user name and no password.
> If you don't specify them in your POM, your use modify your
> tomcat-users.xmlfile as follows:
>
>
>
>
>
>
>
>
>
>
>  **
>
>
> Jeff
>
>
>
> On Jan 11, 2008 2:36 PM, Thomas Chang  wrote:
>
> > Now I change the "tomcat-users.xml" as follow, but it's the same.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Jeff MAURY  schrieb: You must have the manager
> > role so supply tomcat as user and password.
> >
> > Regards
> > Jeff
> >
> >
> > On Jan 11, 2008 2:03 PM, Thomas Chang  wrote:
> >
> > > Sure. My "tomcat-users.xml" looks as follow. Is it OK?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Jeff MAURY  schrieb: You must specify user and
> > > password because the manager application is
> > > protected by default.
> > >
> > > Jeff
> > >
> > >
> > > On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:
> > >
> > > > Hi all,
> > > >
> > > > I try to deploy a WAR to Tomcat using "
> > > > mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager".
> > But
> > > I
> > > > got error as follow. What's wrong?
> > > >
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Cannot invoke Tomcat manager
> > > >
> > > > Embedded error: Server returned HTTP response code: 401 for URL:
> > > > http://localhos
> > > > t:8585/manager/deploy?path=%2FTestWeb&war=
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] For more information, run Maven with the -e switch
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Total time: 10 seconds
> > > > [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> > > > [INFO] Final Memory: 6M/11M
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > C:\Projects\eclipse_workspace\TestWeb>
> > > >
> > > >
> > > > ---------------------------------
> > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> > > Sie´s
> > > > mit dem  neuen Yahoo! Mail.
> > > >
> > >
> > >
> > >
> > > --
> > > La mélancolie c'est communiste
> > > Tout le monde y a droit de temps en temps
> > > La mélancolie n'est pas capitaliste
> > > C'est même gratuit pour les perdants
> > > La mélancolie c'est pacifiste
> > > On ne lui rentre jamais dedans
> > > La mélancolie oh tu sais ça existe
> > > Elle se prend même avec des gants
> > > La mélancolie c'est pour les syndicalistes
> > > Il faut juste sa carte de permanent
> > >
> > > Miossec (2006)
> > >
> > > http://www.jeffmaury.com
> > > http://riadiscuss.jeffmaury.com
> > >
> > >
> > >
> > > ---------------------------------
> > > Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo!
> zu
> > > Ihrer Startseite!
> > >
> >
> >
> >
> > --
> > La mélancolie c'est communiste
> > Tout le monde y a droit de temps en temps
> > La mélancolie n'est pas capitaliste
> > C'est même gratuit pour les perdants
> > La mélancolie c'est pacifiste
> > On ne lui rentre jamais dedans
> > La mélancolie oh tu sais ça existe
> > Elle se prend même avec des gants
> > La mélancolie c'est pour les syndicalistes
> > Il faut juste sa carte de permanent
> >
> > Miossec (2006)
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
> >
> >
> >
> > ---------------------------------
> > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> Sie´s
> > mit dem  neuen Yahoo! Mail.
> >
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
>
>
>
> ---------------------------------
> Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu
> Ihrer Startseite!
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


       
---------------------------------
Ihr erstes Fernweh? Wo gibt es den schönsten Strand. 

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Jeff MAURY <je...@jeffmaury.com>.
What url do you use ?
The URL to use is http://localhost:8080/manager/html
and not *http://localhost:8080/manager*

Jeff


On Jan 11, 2008 3:04 PM, Thomas Chang <th...@yahoo.de> wrote:

> You are right. I change the "tomcat-users.xml" as you wrote, it runs.
> Thank!
>
> But, if I open the Tomcat and go into the Manager page. When I click the
> link "manager", I will get error of "HTTP Status 404 - /manager/".
>
> Do you know why?
>
>
>
> Jeff MAURY <je...@jeffmaury.com> schrieb: By default, the tomcat
> plugin uses admin as a user name and no password.
> If you don't specify them in your POM, your use modify your
> tomcat-users.xmlfile as follows:
>
>
>
>
>
>
>
>
>
>
>  **
>
>
> Jeff
>
>
>
> On Jan 11, 2008 2:36 PM, Thomas Chang  wrote:
>
> > Now I change the "tomcat-users.xml" as follow, but it's the same.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Jeff MAURY  schrieb: You must have the manager
> > role so supply tomcat as user and password.
> >
> > Regards
> > Jeff
> >
> >
> > On Jan 11, 2008 2:03 PM, Thomas Chang  wrote:
> >
> > > Sure. My "tomcat-users.xml" looks as follow. Is it OK?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Jeff MAURY  schrieb: You must specify user and
> > > password because the manager application is
> > > protected by default.
> > >
> > > Jeff
> > >
> > >
> > > On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:
> > >
> > > > Hi all,
> > > >
> > > > I try to deploy a WAR to Tomcat using "
> > > > mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager".
> > But
> > > I
> > > > got error as follow. What's wrong?
> > > >
> > > > [ERROR] BUILD ERROR
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Cannot invoke Tomcat manager
> > > >
> > > > Embedded error: Server returned HTTP response code: 401 for URL:
> > > > http://localhos
> > > > t:8585/manager/deploy?path=%2FTestWeb&war=
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] For more information, run Maven with the -e switch
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > > [INFO] Total time: 10 seconds
> > > > [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> > > > [INFO] Final Memory: 6M/11M
> > > > [INFO]
> > > >
> > ------------------------------------------------------------------------
> > > >
> > > > C:\Projects\eclipse_workspace\TestWeb>
> > > >
> > > >
> > > > ---------------------------------
> > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> > > Sie´s
> > > > mit dem  neuen Yahoo! Mail.
> > > >
> > >
> > >
> > >
> > > --
> > > La mélancolie c'est communiste
> > > Tout le monde y a droit de temps en temps
> > > La mélancolie n'est pas capitaliste
> > > C'est même gratuit pour les perdants
> > > La mélancolie c'est pacifiste
> > > On ne lui rentre jamais dedans
> > > La mélancolie oh tu sais ça existe
> > > Elle se prend même avec des gants
> > > La mélancolie c'est pour les syndicalistes
> > > Il faut juste sa carte de permanent
> > >
> > > Miossec (2006)
> > >
> > > http://www.jeffmaury.com
> > > http://riadiscuss.jeffmaury.com
> > >
> > >
> > >
> > > ---------------------------------
> > > Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo!
> zu
> > > Ihrer Startseite!
> > >
> >
> >
> >
> > --
> > La mélancolie c'est communiste
> > Tout le monde y a droit de temps en temps
> > La mélancolie n'est pas capitaliste
> > C'est même gratuit pour les perdants
> > La mélancolie c'est pacifiste
> > On ne lui rentre jamais dedans
> > La mélancolie oh tu sais ça existe
> > Elle se prend même avec des gants
> > La mélancolie c'est pour les syndicalistes
> > Il faut juste sa carte de permanent
> >
> > Miossec (2006)
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
> >
> >
> >
> > ---------------------------------
> > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> Sie´s
> > mit dem  neuen Yahoo! Mail.
> >
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
>
>
>
> ---------------------------------
> Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu
> Ihrer Startseite!
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Thomas Chang <th...@yahoo.de>.
You are right. I change the "tomcat-users.xml" as you wrote, it runs. Thank!

But, if I open the Tomcat and go into the Manager page. When I click the link "manager", I will get error of "HTTP Status 404 - /manager/".

Do you know why?



Jeff MAURY <je...@jeffmaury.com> schrieb: By default, the tomcat plugin uses admin as a user name and no password.
If you don't specify them in your POM, your use modify your
tomcat-users.xmlfile as follows:


 
 
 
 
 
 
 
 
 **


Jeff



On Jan 11, 2008 2:36 PM, Thomas Chang  wrote:

> Now I change the "tomcat-users.xml" as follow, but it's the same.
>
> 
> 
>  
>  
>  
>  
>  
>  
>  
>  
>  
> 
>
>
>
> Jeff MAURY  schrieb: You must have the manager
> role so supply tomcat as user and password.
>
> Regards
> Jeff
>
>
> On Jan 11, 2008 2:03 PM, Thomas Chang  wrote:
>
> > Sure. My "tomcat-users.xml" looks as follow. Is it OK?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Jeff MAURY  schrieb: You must specify user and
> > password because the manager application is
> > protected by default.
> >
> > Jeff
> >
> >
> > On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:
> >
> > > Hi all,
> > >
> > > I try to deploy a WAR to Tomcat using "
> > > mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager".
> But
> > I
> > > got error as follow. What's wrong?
> > >
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Cannot invoke Tomcat manager
> > >
> > > Embedded error: Server returned HTTP response code: 401 for URL:
> > > http://localhos
> > > t:8585/manager/deploy?path=%2FTestWeb&war=
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 10 seconds
> > > [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> > > [INFO] Final Memory: 6M/11M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > C:\Projects\eclipse_workspace\TestWeb>
> > >
> > >
> > > ---------------------------------
> > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> > Sie´s
> > > mit dem  neuen Yahoo! Mail.
> > >
> >
> >
> >
> > --
> > La mélancolie c'est communiste
> > Tout le monde y a droit de temps en temps
> > La mélancolie n'est pas capitaliste
> > C'est même gratuit pour les perdants
> > La mélancolie c'est pacifiste
> > On ne lui rentre jamais dedans
> > La mélancolie oh tu sais ça existe
> > Elle se prend même avec des gants
> > La mélancolie c'est pour les syndicalistes
> > Il faut juste sa carte de permanent
> >
> > Miossec (2006)
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
> >
> >
> >
> > ---------------------------------
> > Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu
> > Ihrer Startseite!
> >
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
>
>
>
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
> mit dem  neuen Yahoo! Mail.
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


       
---------------------------------
Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Jeff MAURY <je...@jeffmaury.com>.
By default, the tomcat plugin uses admin as a user name and no password.
If you don't specify them in your POM, your use modify your
tomcat-users.xmlfile as follows:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
 <role rolename="tomcat"/>
 <role rolename="role1"/>
 <role rolename="manager"/>
 <role rolename="admin"/>
 <user username="tomcat" password="tomcat" roles="tomcat"/>
 <user username="both" password="tomcat" roles="tomcat,role1"/>
 <user username="role1" password="tomcat" roles="role1"/>
 <user username="manager" password="manager" roles="manager"/>
 *<user username="admin" password="" roles="admin,manager"/>*
</tomcat-users>

Jeff



On Jan 11, 2008 2:36 PM, Thomas Chang <th...@yahoo.de> wrote:

> Now I change the "tomcat-users.xml" as follow, but it's the same.
>
> <?xml version='1.0' encoding='utf-8'?>
> <tomcat-users>
>  <role rolename="tomcat"/>
>  <role rolename="role1"/>
>  <role rolename="manager"/>
>  <role rolename="admin"/>
>  <user username="tomcat" password="tomcat" roles="tomcat"/>
>  <user username="both" password="tomcat" roles="tomcat,role1"/>
>  <user username="role1" password="tomcat" roles="role1"/>
>  <user username="manager" password="manager" roles="manager"/>
>  <user username="admin" password="admin" roles="admin"/>
> </tomcat-users>
>
>
>
> Jeff MAURY <je...@jeffmaury.com> schrieb: You must have the manager
> role so supply tomcat as user and password.
>
> Regards
> Jeff
>
>
> On Jan 11, 2008 2:03 PM, Thomas Chang  wrote:
>
> > Sure. My "tomcat-users.xml" looks as follow. Is it OK?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Jeff MAURY  schrieb: You must specify user and
> > password because the manager application is
> > protected by default.
> >
> > Jeff
> >
> >
> > On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:
> >
> > > Hi all,
> > >
> > > I try to deploy a WAR to Tomcat using "
> > > mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager".
> But
> > I
> > > got error as follow. What's wrong?
> > >
> > > [ERROR] BUILD ERROR
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Cannot invoke Tomcat manager
> > >
> > > Embedded error: Server returned HTTP response code: 401 for URL:
> > > http://localhos
> > > t:8585/manager/deploy?path=%2FTestWeb&war=
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] For more information, run Maven with the -e switch
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > > [INFO] Total time: 10 seconds
> > > [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> > > [INFO] Final Memory: 6M/11M
> > > [INFO]
> > >
> ------------------------------------------------------------------------
> > >
> > > C:\Projects\eclipse_workspace\TestWeb>
> > >
> > >
> > > ---------------------------------
> > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> > Sie´s
> > > mit dem  neuen Yahoo! Mail.
> > >
> >
> >
> >
> > --
> > La mélancolie c'est communiste
> > Tout le monde y a droit de temps en temps
> > La mélancolie n'est pas capitaliste
> > C'est même gratuit pour les perdants
> > La mélancolie c'est pacifiste
> > On ne lui rentre jamais dedans
> > La mélancolie oh tu sais ça existe
> > Elle se prend même avec des gants
> > La mélancolie c'est pour les syndicalistes
> > Il faut juste sa carte de permanent
> >
> > Miossec (2006)
> >
> > http://www.jeffmaury.com
> > http://riadiscuss.jeffmaury.com
> >
> >
> >
> > ---------------------------------
> > Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu
> > Ihrer Startseite!
> >
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
>
>
>
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
> mit dem  neuen Yahoo! Mail.
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Thomas Chang <th...@yahoo.de>.
Now I change the "tomcat-users.xml" as follow, but it's the same.

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="manager" password="manager" roles="manager"/>
  <user username="admin" password="admin" roles="admin"/>
</tomcat-users>



Jeff MAURY <je...@jeffmaury.com> schrieb: You must have the manager role so supply tomcat as user and password.

Regards
Jeff


On Jan 11, 2008 2:03 PM, Thomas Chang  wrote:

> Sure. My "tomcat-users.xml" looks as follow. Is it OK?
>
> 
> 
>  
>  
>  
>  
>  
>  
>  
> 
>
>
> Jeff MAURY  schrieb: You must specify user and
> password because the manager application is
> protected by default.
>
> Jeff
>
>
> On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:
>
> > Hi all,
> >
> > I try to deploy a WAR to Tomcat using "
> > mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager". But
> I
> > got error as follow. What's wrong?
> >
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Cannot invoke Tomcat manager
> >
> > Embedded error: Server returned HTTP response code: 401 for URL:
> > http://localhos
> > t:8585/manager/deploy?path=%2FTestWeb&war=
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 10 seconds
> > [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> > [INFO] Final Memory: 6M/11M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > C:\Projects\eclipse_workspace\TestWeb>
> >
> >
> > ---------------------------------
> > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> Sie´s
> > mit dem  neuen Yahoo! Mail.
> >
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
>
>
>
> ---------------------------------
> Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu
> Ihrer Startseite!
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


       
---------------------------------
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem  neuen Yahoo! Mail. 

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Jeff MAURY <je...@jeffmaury.com>.
You must have the manager role so supply tomcat as user and password.

Regards
Jeff


On Jan 11, 2008 2:03 PM, Thomas Chang <th...@yahoo.de> wrote:

> Sure. My "tomcat-users.xml" looks as follow. Is it OK?
>
> <?xml version='1.0' encoding='utf-8'?>
> <tomcat-users>
>  <role rolename="tomcat"/>
>  <role rolename="role1"/>
>  <role rolename="manager"/>
>  <role rolename="admin"/>
>  <user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/>
>  <user username="role1" password="tomcat" roles="role1"/>
>  <user username="both" password="tomcat" roles="tomcat,role1"/>
> </tomcat-users>
>
>
> Jeff MAURY <je...@jeffmaury.com> schrieb: You must specify user and
> password because the manager application is
> protected by default.
>
> Jeff
>
>
> On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:
>
> > Hi all,
> >
> > I try to deploy a WAR to Tomcat using "
> > mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager". But
> I
> > got error as follow. What's wrong?
> >
> > [ERROR] BUILD ERROR
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Cannot invoke Tomcat manager
> >
> > Embedded error: Server returned HTTP response code: 401 for URL:
> > http://localhos
> > t:8585/manager/deploy?path=%2FTestWeb&war=
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] For more information, run Maven with the -e switch
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 10 seconds
> > [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> > [INFO] Final Memory: 6M/11M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > C:\Projects\eclipse_workspace\TestWeb>
> >
> >
> > ---------------------------------
> > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
> Sie´s
> > mit dem  neuen Yahoo! Mail.
> >
>
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
>
>
>
> ---------------------------------
> Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu
> Ihrer Startseite!
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Thomas Chang <th...@yahoo.de>.
Sure. My "tomcat-users.xml" looks as follow. Is it OK?

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <role rolename="manager"/>
  <role rolename="admin"/>
  <user username="tomcat" password="tomcat" roles="tomcat,admin,manager"/>
  <user username="role1" password="tomcat" roles="role1"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
</tomcat-users>


Jeff MAURY <je...@jeffmaury.com> schrieb: You must specify user and password because the manager application is
protected by default.

Jeff


On Jan 11, 2008 1:27 PM, Thomas Chang  wrote:

> Hi all,
>
> I try to deploy a WAR to Tomcat using "
> mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager". But I
> got error as follow. What's wrong?
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Cannot invoke Tomcat manager
>
> Embedded error: Server returned HTTP response code: 401 for URL:
> http://localhos
> t:8585/manager/deploy?path=%2FTestWeb&war=
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> [INFO] Final Memory: 6M/11M
> [INFO]
> ------------------------------------------------------------------------
>
> C:\Projects\eclipse_workspace\TestWeb>
>
>
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
> mit dem  neuen Yahoo! Mail.
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com


       
---------------------------------
Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!

Re: Error: Cannot invoke Tomcat manager by running tomcat:deploy

Posted by Jeff MAURY <je...@jeffmaury.com>.
You must specify user and password because the manager application is
protected by default.

Jeff


On Jan 11, 2008 1:27 PM, Thomas Chang <th...@yahoo.de> wrote:

> Hi all,
>
> I try to deploy a WAR to Tomcat using "
> mvn tomcat:deploy -Dmaven.tomcat.url=http://localhost:8585/manager". But I
> got error as follow. What's wrong?
>
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Cannot invoke Tomcat manager
>
> Embedded error: Server returned HTTP response code: 401 for URL:
> http://localhos
> t:8585/manager/deploy?path=%2FTestWeb&war=
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 10 seconds
> [INFO] Finished at: Fri Jan 11 13:19:55 CET 2008
> [INFO] Final Memory: 6M/11M
> [INFO]
> ------------------------------------------------------------------------
>
> C:\Projects\eclipse_workspace\TestWeb>
>
>
> ---------------------------------
> Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
> mit dem  neuen Yahoo! Mail.
>



-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com