<p>You need to add the &quot;manager-script&quot; role in the roles section. I figured this out by googling:</p>
<blockquote>
<p>the username you used is not allowed to use the text based tomcat manager</p>
</blockquote>
<p>and the first result was this StackOverflow <a href="https://stackoverflow.com/questions/41675813/the-username-you-provided-is-not-allowed-to-use-the-text-based-tomcat-manager-e">post</a>.</p>

CC BY-SA 4.0
2022-10-31T07:59:19.407Z
2022-10-31T07:59:19.407Z
Levi
<p>When I was Deploying A Sample Application On Tomcat9 I Faced This Issue.</p>
<p>This is the Tomact9 Users File where I added credentials do I need to add anything more,</p>
<p><a href="https://i.sstatic.net/XSKgI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/XSKgI.png" alt="This is the Tomcat User XML File" /></a></p>
<p>Is There Any Configuration Which I have do in Tomcat or In Jenkins
<a href="https://i.sstatic.net/E78HM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/E78HM.png" alt="Can Someone help Me Out With This" /></a></p>
<p>What could be the point I might be missing? Can someone help me out with this?</p>

CC BY-SA 4.0
2022-10-31T11:37:44.157Z
Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Community
<jenkins><deployment><testing><maven>
Deploy A War/Ear To Container Marked build As failure When Deploying To Tomcat 9 Server
Prathamesh Shukla
# Deploy A War/Ear To Container Marked build As failure When Deploying To Tomcat 9 Server

(Asked by: username_0 on 2022-10-31)

When I was Deploying A Sample Application On Tomcat9 I Faced This Issue.

This is the Tomact9 Users File where I added credentials do I need to add anything more,

[![This is the Tomcat User XML File](https://i.sstatic.net/XSKgI.png)](https://i.sstatic.net/XSKgI.png)

Is There Any Configuration Which I have do in Tomcat or In Jenkins
[![Can Someone help Me Out With This](https://i.sstatic.net/E78HM.png)](https://i.sstatic.net/E78HM.png)

What could be the point I might be missing? Can someone help me out with this?

**Tags:** jenkins, deployment, testing, maven

> **Comments:**
> **username_1**: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.  

---

## 1 answers

### Answer by username_2 on 2022-10-31. Score: 0

You need to add the "manager-script" role in the roles section. I figured this out by googling:

> the username you used is not allowed to use the text based tomcat manager

and the first result was this StackOverflow [post](https://stackoverflow.com/questions/41675813/the-username-you-provided-is-not-allowed-to-use-the-text-based-tomcat-manager-e).


---

