Re: Unable to open Tomcat Manager?

2005-10-21 Thread andy gordon
Just a couple of other thoughts...
 
I presume you are using tomcat 5.5x 
 
THere is a default resource definition under global naming resources for an in 
memory database that points to conf/tomcat-users.xml. Without having testing 
myself, if it still exists in you server.xml file i am wondering if it is 
getting in your way. There is a resource link in manager.xml that points to the 
resource definition in the server.xml. There is also a resource-env-ref that 
references the userdatabase in the web.xml for the manager. Both those files 
are under the manager webapp directory. Hope this helps. also have been able to 
reach MySQL in general from Tomcat?
 
- andy
 


±ç¬±³õ [EMAIL PROTECTED] wrote:
Yes, Andy.
I use MySQL and JDBCRealm.
If tomcat-users.xml is ignored, it is fine.

But I have entered records in table of user and user role.
I have tried input the password in both plain text and MD5 encrypted
in user table. Still not okay.



2005/10/21, Caldarale, Charles R :
  From: Giorgio Clavelli [mailto:[EMAIL PROTECTED]
  Subject: Re: Unable to open Tomcat Manager?
 
  I solved it by deleting the all Server files and re-unzip
  them back in the same location (possibly not required this
  deletion but who knows?).

 I seriously doubt that had anything to do with it. Note that you cannot
 manually edit tomcat-users.xml while Tomcat is running, since Tomcat
 rewrites it at some point (probably at termination, but I haven't
 verified that). You can update it on the fly with the Admin app; of
 course you have to login with a userid that has the admin role to do so.

 - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: Unable to open Tomcat Manager?

2005-10-21 Thread Paul Singleton

Caldarale, Charles R wrote:


...  Note that you cannot
manually edit tomcat-users.xml while Tomcat is running, since Tomcat
rewrites it at some point (probably at termination, but I haven't
verified that).


Does anyone else find that 5.5.9 rewrites it with these
permissions under Linux?

-rw-rw-r--  1 tomcat tomcat   439 Oct  2 20:01 tomcat-users.xml

Since it contains a plaintext password this is a security
risk.

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/Oct/2005


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to open Tomcat Manager?

2005-10-21 Thread andy gordon
Confine to a certain directory: yes since that is a context. 
 
i noticed the connection url you are using is different than mine. Mine is from 
the 5.5. doc and includes the password and user name in it.I am presuming the 
database with your users and users_roles tables is named ERP. I am also 
presuming the userid and password for the connection is not supposed to come 
from ERP. 
 
some additional thoughts and questions if you haven't already solved the 
problem:
 
In the server xml where did you place the realm statement? 
if you placed it in the at the engine level then did did you comment out the 
realm statement for the userdatabaserealm in the engine level.  if 
userdatabasrealm comes after jdbc realm then it take precedence over jdbc.
 
hope this helps
 
-andy

±ç¬±³õ [EMAIL PROTECTED] wrote:
I have server.xml, no resource-env-ref nor manager.xml
My context.xml is within meta-inf directory.

The problem still persists.
Can I confine the prompt of username and password of JDBCRealm to
certain directory only?

such as
http://localhost:8080/welcome.jsp, does not prompt
http://localhost:8080/erp, prompt
http://localhost:8080/quotation, does not prompt

Thanks


2005/10/21, Paul Singleton 
:
 Caldarale, Charles R wrote:

  ... Note that you cannot
  manually edit tomcat-users.xml while Tomcat is running, since Tomcat
  rewrites it at some point (probably at termination, but I haven't
  verified that).

 Does anyone else find that 5.5.9 rewrites it with these
 permissions under Linux?

 -rw-rw-r-- 1 tomcat tomcat 439 Oct 2 20:01 tomcat-users.xml

 Since it contains a plaintext password this is a security
 risk.

 Paul Singleton


 --
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.344 / Virus Database: 267.12.4/143 - Release Date: 19/Oct/2005


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: Unable to open Tomcat Manager?

2005-10-20 Thread andy gordon
hi, 
 
If you are intending on using MySQL and a JDBC Realm for access control, then 
the Tomcat-users.xml file is not used. I am wondering if in your role table you 
have two rows for user name admin? if not then this could be your problem as 
there has to be one row for each role a specific user name performs.
 
- andy  

±ç¬±³õ [EMAIL PROTECTED] wrote:
My tomcat-users.xml

 My tomcat-users.xml
 ?xml version='1.0' encoding='utf-8'?
 tomcat-users
 role rolename=tomcat/
 role rolename=role1/
 role rolename=manager/
 role rolename=admin/
 user username=tomcat password=tomcat roles=tomcat/
 user username=role1 password=tomcat roles=role1/
 user username=both password=tomcat roles=tomcat,role1/
 user username=admin password=abc123 roles=admin,manager/
 /tomcat-users



My server.xml
driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://localhost:3306/erp
connectionName=root connectionPassword=abc123 digest=MD5
userTable=user_profile userNameCol=usernm userCredCol=passwd
userRoleTable=user_role roleNameCol=role_name /

I have inputted username and user role in tables.

Still receive this message

HTTP Status 403 - Access to the requested resource has been denied

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
 Yahoo! FareChase - Search multiple travel sites in one click.  

RE: Unable to open Tomcat Manager?

2005-10-20 Thread Caldarale, Charles R
 From: Giorgio Clavelli [mailto:[EMAIL PROTECTED] 
 Subject: Re: Unable to open Tomcat Manager?
 
 I solved it by deleting the all Server files and re-unzip 
 them back in the same location (possibly not required this
 deletion but who knows?).

I seriously doubt that had anything to do with it.  Note that you cannot
manually edit tomcat-users.xml while Tomcat is running, since Tomcat
rewrites it at some point (probably at termination, but I haven't
verified that).  You can update it on the fly with the Admin app; of
course you have to login with a userid that has the admin role to do so.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to open Tomcat Manager?

2005-10-20 Thread 梁炳場
Yes, Andy.
I use MySQL and JDBCRealm.
If tomcat-users.xml is ignored, it is fine.

But I have entered records in table of user and user role.
I have tried input the password in both plain text and MD5 encrypted
in user table. Still not okay.



2005/10/21, Caldarale, Charles R [EMAIL PROTECTED]:
  From: Giorgio Clavelli [mailto:[EMAIL PROTECTED]
  Subject: Re: Unable to open Tomcat Manager?
 
  I solved it by deleting the all Server files and re-unzip
  them back in the same location (possibly not required this
  deletion but who knows?).

 I seriously doubt that had anything to do with it.  Note that you cannot
 manually edit tomcat-users.xml while Tomcat is running, since Tomcat
 rewrites it at some point (probably at termination, but I haven't
 verified that).  You can update it on the fly with the Admin app; of
 course you have to login with a userid that has the admin role to do so.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]