tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sim IJskes <...@nyx.xs4all.nl>
Subject tomcat-users.xml
Date Sat, 01 Apr 2000 18:59:41 GMT
I have the file:

<tomcat-users>
  <user name="tomcat" password="tomcat" roles="tomcat" />
  <user name="sim" password="pass" roles="kiwiadmin" />
</tomcat-users>

But when i try to list or modify this file with:

java org.apache.tomcat.security.file.FileRealmTool

i get:

Exception in thread "main" java.lang.IllegalArgumentException: Bad
hexadecimal digit
        at org.apache.tomcat.util.HexUtils.convert(HexUtils.java:135)
        at
org.apache.tomcat.security.file.FileRealmDatabase.readUser(FileRealmDatabase.java:422)
        at
org.apache.tomcat.security.file.FileRealmDatabase.read(FileRealmDatabase.java:327)
        at
org.apache.tomcat.security.file.FileRealmDatabase.<init>(FileRealmDatabase.java:143)
        at
org.apache.tomcat.security.file.FileRealmTool.open(FileRealmTool.java:530)
        at
org.apache.tomcat.security.file.FileRealmTool.main(FileRealmTool.java:167)

When i remove the users and recreate the file with the tool, it creates
a <user> element without the 'roles' attribute. This tomcat itself does
not like. It complains about a null pointer.

Any ideas? Is it a bug?

Gr. Sim

Mime
View raw message