tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zahi Fail <>
Subject Re: Tomcat question
Date Mon, 23 Apr 2018 13:38:56 GMT

I'm working with Tomcat 9.0.6 version as my servlet,
Throughout my jax-rs project i have tried to create basic authentication.

While i'm trying to access a post method without the basic auth. it all
working well (I got the 200 message from the HTTP server). But, after
adding the basic auth. my user name and password doesn't work from some

This is the following code from my web.xml file:

<?xml version = "1.0" encoding = "UTF-8"?>
<web-app xmlns:xsi=""
id="WebApp_ID" version="3.0">
<display-name>User Management</display-name>
<servlet-name>Jersey RESTful Application</servlet-name>
<servlet-name>Jersey RESTful Application</servlet-name>
<web-resource-name>simple web resource</web-resource-name>

*and in the tomcat-user.xml i have updated the code as below: *

  <role rolename="manager-gui"/>
  <role rolename="manager-status"/>
  <role rolename="manager-script"/>
  <role rolename="manager"/>
  <user username="tomcat" password="s3cret" roles="manager-gui"/>
  <user username="admin" password="falcon" roles="manager"/>

On Mon, Apr 23, 2018 at 4:34 PM, Olaf Kock <> wrote:

> On 23.04.2018 14:49, Zahi Fail wrote:
>> This is the following code from my web.xml file:
> Images are the least popular medium to communicate code. And on this list,
> this is actually enforced: Images are stripped. Please post the actual text
> - that should be even easier than creating screenshots.
> Olaf
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message