Which version you use for Tomcat? If you use Tomcat 7, in Tomcat 7 role names 
of 
manager applications have changed

Examples work for Tomcat 6 stack. Put the following into conf/tomcat-users.xml

<tomcat-users>
<role rolename="manager"/>
<user username="admin" password="" roles="manager"/>
</tomcat-users>

Regards;


--Gurkan




________________________________
From: Lu Jiang <[email protected]>
To: [email protected]
Sent: Tue, August 10, 2010 11:46:51 AM
Subject: Re: How to run the ejb-sample?

Hi Gurkan
Thanks a lot for your guidance!
But I  got trapped in step6 now,when running "mvn clean
tomcat:deploy".It will result in a BUILD ERROR.
[INFO] Deploying war to http://localhost:8080/ejb-sample
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot invoke Tomcat manager

Embedded error: Server returned HTTP response code: 401 for URL:
http://localhost:8080/manager/deploy?path=%2Fejb-sample&war=

I have set user name and password for
http://localhost:8080/manager/html in tomcat-users.xml. Do I need to
configure somewhere,then it's authorized to visit
http://localhost:8080/manager? Thanks in advance!


Reply via email to