Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Role in tomcat-users.xml
Role in tomcat-users.xml [message #167210] Fri, 21 April 2006 18:34 Go to next message
Eclipse User
Originally posted by: gjblajian.sol2charon.no-ip.org

Greetings,

I ran into a small problem today and last night that I was hoping
someone could answer/explain for me. I was trying to add a new role to
tomcat-users.xml to test some basic authentication in a small web app I am
playing with. I made the change in the base tomcat directory then tried
logging in with the new role. Nothing seemed to work. This afternoon I
discovered that Eclipse created a new tomcat-users.xml when I created the
server instance a month or two ago so I figured I would just add my new
user there and everything would be fine; however, when I changed
tomcat-users.xml I could no longer use the server instance I had
configured in Eclipse. It kept telling me the server config was out of
synch with the file system and could not start. I finally ended up
deleting the server instance and installing a fresh one in Eclipse which
imported the latest tomcat-users.xml and allowed me to start the server
and test it. Problem solved, essentially. My question is, do I need to
delete and reinstall the tomcat instance, in Eclipse, any time I make a
change to tomcat-users.xml? Or is there some way to edit it from within
Eclipse/WTP that will not give me the "out of synch" error? I doubt it is
of any consequence but I always configure the Eclipse instance to run on a
different set of ports than the base instance so I can test on one port
and install on another. Thankyou.
Re: Role in tomcat-users.xml [message #167259 is a reply to message #167210] Mon, 24 April 2006 08:24 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1296
Registered: July 2009
Senior Member
Greg,

When you create a new server, a set of configuration files are imported
from your Tomcat installation into a corresponding folder under the
Servers project in your workspace. Among them is tomcat-users.xml.
If you modify this one (which doesn't seem to be the case below), I
don't think you will have a problem. Note that these files are never
used directly by a running server. They are copied to the appropriate
location to be used at runtime.

Cheers,
Larry

Greg Blajian wrote:
> Greetings,
>
> I ran into a small problem today and last night that I was hoping
> someone could answer/explain for me. I was trying to add a new role to
> tomcat-users.xml to test some basic authentication in a small web app I
> am playing with. I made the change in the base tomcat directory then
> tried logging in with the new role. Nothing seemed to work. This
> afternoon I discovered that Eclipse created a new tomcat-users.xml when
> I created the server instance a month or two ago so I figured I would
> just add my new user there and everything would be fine; however, when I
> changed tomcat-users.xml I could no longer use the server instance I had
> configured in Eclipse. It kept telling me the server config was out of
> synch with the file system and could not start. I finally ended up
> deleting the server instance and installing a fresh one in Eclipse which
> imported the latest tomcat-users.xml and allowed me to start the server
> and test it. Problem solved, essentially. My question is, do I need to
> delete and reinstall the tomcat instance, in Eclipse, any time I make a
> change to tomcat-users.xml? Or is there some way to edit it from within
> Eclipse/WTP that will not give me the "out of synch" error? I doubt it
> is of any consequence but I always configure the Eclipse instance to run
> on a different set of ports than the base instance so I can test on one
> port and install on another. Thankyou.
>
Previous Topic:IWAB0489E Error
Next Topic:dynamic web project
Goto Forum:
  


Current Time: Thu Jul 24 09:09:23 EDT 2014

Powered by FUDForum. Page generated in 0.01969 seconds