Re: Can`t resolve JDBCRealm problem

2006-06-05 Thread Nenad Bosanac
Thanks Martin for zour response!
I will track that link and try to follow that
instructions, and after i do it i will response zou
back again.
Thanks again.

--- Martin Gainty [EMAIL PROTECTED] wrote:

 Good Morning Nenad
 
 If you follow these instructions

http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html?page=2
 specifically.. populating with JDBCRealm these
 attributes must be populated
 
 className The fully qualified name of the Realm
 attribute e.g. 
 org.apache.catalina.realm.JDBCRealm
 driverNameThe specific driver used to connect to
 the DB e.g. 
 org.gjt.mm.mysql.Driver
 connectionURL  The URL referencing the DB
 containing the users e.g. 

jdbc:mysql://localhost/tomcatusers?user=test;password=test
 connectionName username to use when
 connecting to the DB (you can 
 encode connectionName in the connectionURL)
 connectionPassword   The password to use when
 connecting to the DB (you can 
 encode connectionPassword in the connectionURL))
 userTableDB table containing
 user credentials
 userNameCol Name of Column to use when
 referencing 
 username..best to call it 'user'
 userCredCol  Name of column to use when
 referecning password 
 .best to call it 'password'
 userRoleTableDB Table which contains
 mapping between userTable 
 and roles and table containing possible user roles
 roleNameCol userRoleTable column name
 which specifies roles 
 given to a user..best to call 'role'
 
 HTH
 Martin --
 
 This email message and any files transmitted with it
 contain confidential
 information intended only for the person(s) to whom
 this email message is
 addressed.  If you have received this email message
 in error, please notify
 the sender immediately by telephone or email and
 destroy the original
 message without making a copy.  Thank you.
 
 - Original Message - 
 From: Nenad Bosanac [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Sunday, June 04, 2006 10:20 AM
 Subject: Can`t resolve JDBCRealm problem
 
 
  Hi !
  I try to implement JDBCRealm but witout success.
  I read documentation and make all as it said in
 it,but
  when i try to login in tomcat Manager i can't do
 it.
  I put this code in server.xml:
 
  Realm
  className=org.apache.catalina.realm.JDBCRealm
 driverName=com.mysql.jdbc.Driver
 
 

connectionURL=jdbc:mysql://localhost:3306/jdbcrealm
 connectionName=root connectionPassword=
 userTable=users userNameCol=user_name
  userCredCol=user_pass
 userRoleTable=user_roles
  roleNameCol=role_name /
 
  also i have this in server.xml
 
  Realm
 

className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase/
 
  I have database called jdbcrealm and to tables
 like
  this in it
 
  create table users (
   user_name varchar(15) not null primary
 key,
   user_pass varchar(15) not null
  );
 
  create table user_roles (
   user_name varchar(15) not null,
   role_name varchar(15) not null,
   primary key (user_name, role_name)
  );
 
  My MySQL databse username is root and i have no
  password for MYSQL database.
  I put mysql-connector-3.0.17.jar in
  $CATALINA_HOME/server/lib and in
  $CATALINA_HOME/common/lib.
 
  I use 5.5.16 Tomcat.
 
  I got this error when i try to connect to Manager:
  
  HTTP Status 403 - Access to the requested resource
 has
  been denied
  
  type Status report
  message Access to the requested resource has been
  denied
  description Access to the specified resource
 (Access
  to the requested resource has been denied) has
 been
  forbidden.
 
 
 
  What i am doing wrong?
  Any help will be great ,thanks
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

-
  To start a new topic, e-mail:
 users@tomcat.apache.org
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
  
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can`t resolve JDBCRealm problem

2006-06-04 Thread Nenad Bosanac
Hi !
I try to implement JDBCRealm but witout success.
I read documentation and make all as it said in it,but
when i try to login in tomcat Manager i can't do it.
I put this code in server.xml:

Realm 
className=org.apache.catalina.realm.JDBCRealm
driverName=com.mysql.jdbc.Driver
   
connectionURL=jdbc:mysql://localhost:3306/jdbcrealm
connectionName=root connectionPassword=
userTable=users userNameCol=user_name
userCredCol=user_pass
userRoleTable=user_roles
roleNameCol=role_name /

also i have this in server.xml

Realm
className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/

I have database called jdbcrealm and to tables like
this in it

create table users (
  user_name varchar(15) not null primary key,
  user_pass varchar(15) not null
);

create table user_roles (
  user_name varchar(15) not null,
  role_name varchar(15) not null,
  primary key (user_name, role_name)
);

My MySQL databse username is root and i have no
password for MYSQL database.
I put mysql-connector-3.0.17.jar in
$CATALINA_HOME/server/lib and in
$CATALINA_HOME/common/lib.

I use 5.5.16 Tomcat.

I got this error when i try to connect to Manager:

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

type Status report
message Access to the requested resource has been
denied
description Access to the specified resource (Access
to the requested resource has been denied) has been
forbidden.


What i am doing wrong?
Any help will be great ,thanks


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with UTF-8 and JSP

2006-03-20 Thread Nenad Bosanac
I have problem with UTF-8 character set.
I use MySQL 5 and Tomcat 5.5.9.I use NetBeans for
programinnig
in Java.
I made one database and is in UTF8,also all my JSP
pages are set to 
UTF8 encoding,and also all HTML are set to UTF8.
When i put š,#273;,#269;,#263;,ž character date in
database directly from MySQL Query tool and
and display that data in jsp pages i see all character
ok, but
when i use jsp pages to insert #269;,#273;,ž,#263;
character and want to display them 
i got some strange characters.
Also i put my IE browser to UNICODE UTF8 encoding.
How can i see correct š,#263;,#273;,ž,#269; in my
browser correct?
Thanks

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Problem Starting Tomcat

2006-03-17 Thread Nenad Bosanac
Well I had same problem with Tomcat and I use Netbeans
5.
I solved this problem by stopping server in NetBeans 5
another Runtime window in NetbBeans 5,and now
everything working fine.
Yes sometimes i got again this situation but i solved
again on the same problem.
It happens that Tomcat can`t stopped servis (i don`t
now why).
If you don`t use NetBeans press CTRL+ALT+DEL and see
if any of java.exe is running even you didn`t start
any Tomcat and if yoy find it kill that process.
ANd i think it will help
Bye

--- Steve Ochani [EMAIL PROTECTED] wrote:

 On 17 Mar 2006 at 13:06, Marco Aurélio Seraphim da
 Sil wrote:
 
  Hi,
 
  I got this problem yesterday at the morning, but
 during the evening it
  was working well, and when reboot the machine, it
 got the same
  problem.
 
  The port 8005 is been used by another program, but
 in my server.xml I
  can't see nothing using the port 8005.
 
 
 8005 is the default shutdown port for tomcat
 
 
  I'm using it on Windows XP, and tomcat 5.0.28...
 
  This is my server.xml...
  ?xml version='1.0' encoding='utf-8'?
  Server debug=9
Listener
   

className=org.apache.catalina.mbeans.ServerLifecycleListener/
Listener
 

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
  /
GlobalNamingResources
  Environment name=simpleValue
 type=java.lang.Integer
  value=30/ Resource auth=Container
 description=User database
  that can be
  updated and saved name=UserDatabase
  type=org.apache.catalina.UserDatabase/
  ResourceParams name=UserDatabase
parameter
  namefactory/name
 

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/va
  lue
/parameter
parameter
  namepathname/name
  valueconf/tomcat-users.xml/value
/parameter
  /ResourceParams
/GlobalNamingResources
Service debug=9 name=Catalina
  Connector acceptCount=100
 connectionTimeout=4 debug=9
  disableUploadTimeout=true port=81
 redirectPort=8443
  maxSpareThreads=75 maxThreads=150
 minSpareThreads=25
  /Connector
  Connector port=8009 protocol=AJP/1.3
 

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
  redirectPort=8443
  /Connector
  Engine debug=9 defaultHost=localhost
 name=Catalina
Host appBase=webapps name=localhost
  Logger
 className=org.apache.catalina.logger.FileLogger
  debug=9
  prefix=localhost_log. suffix=.txt
 timestamp=true verbosity=4/
/Host
Logger
 className=org.apache.catalina.logger.FileLogger
debug=9
  prefix=catalina_log. suffix=.txt
 timestamp=true verbosity=4/
Realm

className=org.apache.catalina.realm.UserDatabaseRealm
  debug=9/
  /Engine
/Service
  /Server
 
 
  Thanks,
 
  Marco
  - Original Message -
  From: Neil Sherman [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org;
 Marco Aurélio
  Seraphim da Silva [EMAIL PROTECTED]
 Sent: Friday, March
  17, 2006 12:07 PM Subject: RE: Problem Starting
 Tomcat
 
 
  Marco,
 
  This sounds as if Tomcat is attempting to bind to
 a port that is
  already in use.
 
  You should check your server.xml file to see which
 ports Tomcat is
  attempting to bind too, you can then check to see
 if this port is
  already in use by running:
 
  Netstat -a
 
  Has this setup worked previously ?  If so is
 tomcat already running ?
 
  How are you starting tomcat ? And under what OS ?
 
  Neil
 
  -Original Message-
  From: Marco Aurélio Seraphim da Silva
  [mailto:[EMAIL PROTECTED] Sent: 17
 March 2006 15:04 To:
  users@tomcat.apache.org Subject: Problem Starting
 Tomcat
 
 
 
When I Start tomcat i got this error:
 
  StandardServer.await: create[8005]:
 java.net.BindException: Address
  already in use: JVM_Bind java.net.BindException:
 Address already in
  use: JVM_Bind
  at
 java.net.PlainSocketImpl.socketBind(Native Method)
  ...
 
 
  Someone why are this hapennig?
 
  Thanks,
 
  Marco
 
 
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED] For
  additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
  This email message contains confidential
 information and is intended
  for the use of its intended recipient only. 
 Access to this email by
  anyone else is unauthorised.  If you are not the
 intended recipient
  you are hereby notified that any use, disclosure,
 copying or
  distribution or any action taken or omitted to be
 taken in reliance on
  it is strictly prohibited.
 
  If this communication has been sent to you in
 error, please notify us
  immediately.
 
  Action Information Management Ltd.
  129 Devizes Road, Hilperton, Trowbridge, Wiltshire
 BA14 7SZ.
  Tel: +44 (0) 1225 711200
  Fax: +44 (0) 1225 711222
  Website www.aimltd.co.uk
  email: [EMAIL PROTECTED]
 
 
 
 
 
 

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

How to upload war file

2006-03-13 Thread Nenad Bosanac
Hi !
  I'd like to now  how to upload war file in Tomcat.
  I had one war file but i am not sure how to upload it.
  Is there any way to upload it  over Administartion tool?


-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

Re: How to upload war file

2006-03-13 Thread Nenad Bosanac
I am using Tomcat 5.5.9 version

foo shyn [EMAIL PROTECTED] wrote:  u can upload it through Tomcat 
Managerbtw what version of the Tomcat
u're using??


- Original Message - 
From: Nenad Bosanac 
To: 
Sent: Tuesday, March 14, 2006 2:22 PM
Subject: How to upload war file


 Hi !
 I'd like to now how to upload war file in Tomcat.
 I had one war file but i am not sure how to upload it.
 Is there any way to upload it over Administartion tool?


 -
 Yahoo! Mail
 Bring photos to life! New PhotoMail makes sharing a breeze.


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




-
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.

Re: How to enter in Tomcat Administration?

2006-03-12 Thread Nenad Bosanac
I finally got it!
It was problem with roles.I didn`t put admin role
im tomcat-users.xml file.Now it works fantastic.
thanks for your help

--- Markus Schönhaber
[EMAIL PROTECTED] wrote:

 Nenad Bosanac wrote:
  Well you said
 
  Make that user username=... /. But that
 shouldn't
  be the culprit.
 
  How i can make username?
 
 In your tomcat-user.xml (as you propably copied from
 the docs):
  user name=craigmcc ...
 It should be:
  user username=craigmcc ...
 But Tomcat should accept either one - my comment was
 simply informational.
 
  You said
 
  Hard to tell. Have you configured a
 RemoteAddrValve
  to protect the manager app
  or something like that?
 
  What is RemoteAddrValve and how can i configure
 this
 
 It's for example mentioned at the end of this
 section:

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access
 
 More information is to be found here:

http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html
 
 Look at your
 .../conf/Catalina/localhost/manager.xml
 if there's a Valve configured.
 
  you also said
 
  Do the logfiles contain any error messages?
 
  My log file named localhost.2006-03-11 contain
 next
  text:
  /***
  Mar 11, 2006 12:03:47 PM
  org.apache.catalina.core.ApplicationContext log
  INFO: org.apache.webapp.balancer.BalancerFilter:
  init(): ruleChain:
  [org.apache.webapp.balancer.RuleChain:
 

[org.apache.webapp.balancer.rules.URLStringMatchRule:
  Target string: News / Redirect URL:
  http://www.cnn.com],
 

[org.apache.webapp.balancer.rules.RequestParameterRule:
  Target param name: paramName / Target param value:
  paramValue / Redirect URL: http://www.yahoo.com],
 

[org.apache.webapp.balancer.rules.AcceptEverythingRule:
  Redirect URL: http://jakarta.apache.org]]
  Mar 11, 2006 2:02:52 PM
  org.apache.catalina.core.ApplicationContext log
  INFO: org.apache.webapp.balancer.BalancerFilter:
  init(): ruleChain:
  [org.apache.webapp.balancer.RuleChain:
 

[org.apache.webapp.balancer.rules.URLStringMatchRule:
  Target string: News / Redirect URL:
  http://www.cnn.com],
 

[org.apache.webapp.balancer.rules.RequestParameterRule:
  Target param name: paramName / Target param value:
  paramValue / Redirect URL: http://www.yahoo.com],
 

[org.apache.webapp.balancer.rules.AcceptEverythingRule:
  Redirect URL: http://jakarta.apache.org]]
  Mar 11, 2006 4:47:27 PM
  org.apache.catalina.core.ApplicationContext log
  INFO: org.apache.webapp.balancer.BalancerFilter:
  init(): ruleChain:
  [org.apache.webapp.balancer.RuleChain:
 

[org.apache.webapp.balancer.rules.URLStringMatchRule:
  Target string: News / Redirect URL:
  http://www.cnn.com],
 

[org.apache.webapp.balancer.rules.RequestParameterRule:
  Target param name: paramName / Target param value:
  paramValue / Redirect URL: http://www.yahoo.com],
 

[org.apache.webapp.balancer.rules.AcceptEverythingRule:
  Redirect URL: http://jakarta.apache.org]]
  /**
 
 Don't see anything unusual in there. Maybe in
 catalina.out?
 
  I don`t now what`s happing! Is there any good
 tutorial
  how to enter in Tomcat Administartion tool or is
 this
  so complicated
 
 It's very easy. Just add a user with role manager to
 tomcat-user.xml and it 
 should work. Why it doesn't work for you, I have no
 idea.
 
 Regards
   mks
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



How to enter in Tomcat Administration?

2006-03-11 Thread Nenad Bosanac
Hello!
I`d like to ask you how i can enter in Tomcat Web
Server Administrtaion Tool .
I don`t now the username and password ?
Is there any default adminsitrator username and
password?
By the way i have Tomcat 5.5.9 installed and working
fine.
Please help!


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to enter in Tomcat Administration?

2006-03-11 Thread Nenad Bosanac
Thank you for your very fast response but ihave same
problem again.
I try to change tomcat-users.xml and he looks like
this

/*
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=standard/
  user name=craigmcc password=secret
roles=standard,manager /
  user username=tomcat password=tomcat
roles=tomcat/
  user username=both password=tomcat
roles=tomcat,role1/
  user username=role1 password=tomcat
roles=role1/
/tomcat-users
/**

Of course i change this xml file and start tomcat
again and try to login like craigmcc(username) and
secret(password) and i got this response

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

type Status report

message Access to the requested resource has been
denied

description Access to the specified resource (Access
to the requested resource has been denied) has been
forbidden.
/**
What i make wrong?

--- Markus Schönhaber
[EMAIL PROTECTED] wrote:

 Nenad Bosanac wrote:
  Hello!
  I`d like to ask you how i can enter in Tomcat Web
  Server Administrtaion Tool .
  I don`t now the username and password ?
  Is there any default adminsitrator username and
  password?
  By the way i have Tomcat 5.5.9 installed and
 working
  fine.
 
 Read this:

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
 especially

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access
 
 Regards
   mks
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to enter in Tomcat Administration?

2006-03-11 Thread Nenad Bosanac
Thank you for your very fast response but ihave same
problem again.
I try to change tomcat-users.xml and he looks like
this

/*
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=standard/
  user name=craigmcc password=secret
roles=standard,manager /
  user username=tomcat password=tomcat
roles=tomcat/
  user username=both password=tomcat
roles=tomcat,role1/
  user username=role1 password=tomcat
roles=role1/
/tomcat-users
/**

Of course i change this xml file and start tomcat
again and try to login like craigmcc(username) and
secret(password) and i got this response

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

type Status report

message Access to the requested resource has been
denied

description Access to the specified resource (Access
to the requested resource has been denied) has been
forbidden.
/**
What i make wrong?

--- Markus Schönhaber
[EMAIL PROTECTED] wrote:

 Nenad Bosanac wrote:
  Hello!
  I`d like to ask you how i can enter in Tomcat Web
  Server Administrtaion Tool .
  I don`t now the username and password ?
  Is there any default adminsitrator username and
  password?
  By the way i have Tomcat 5.5.9 installed and
 working
  fine.
 
 Read this:

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
 especially

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access
 
 Regards
   mks
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to enter in Tomcat Administration?

2006-03-11 Thread Nenad Bosanac
Thank you for your very fast response but ihave same
problem again.
I try to change tomcat-users.xml and he looks like
this

/*
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=standard/
  user name=craigmcc password=secret
roles=standard,manager /
  user username=tomcat password=tomcat
roles=tomcat/
  user username=both password=tomcat
roles=tomcat,role1/
  user username=role1 password=tomcat
roles=role1/
/tomcat-users
/**

Of course i change this xml file and start tomcat
again and try to login like craigmcc(username) and
secret(password) and i got this response

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

type Status report

message Access to the requested resource has been
denied

description Access to the specified resource (Access
to the requested resource has been denied) has been
forbidden.
/**
What i make wrong?

--- Markus Schönhaber
[EMAIL PROTECTED] wrote:

 Nenad Bosanac wrote:
  Hello!
  I`d like to ask you how i can enter in Tomcat Web
  Server Administrtaion Tool .
  I don`t now the username and password ?
  Is there any default adminsitrator username and
  password?
  By the way i have Tomcat 5.5.9 installed and
 working
  fine.
 
 Read this:

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
 especially

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access
 
 Regards
   mks
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to enter in Tomcat Administration?

2006-03-11 Thread Nenad Bosanac
Well you said 
Make that user username=... /. But that shouldn't
be the culprit.
How i can make username?
You said
Hard to tell. Have you configured a RemoteAddrValve
to protect the manager app 
or something like that?
What is RemoteAddrValve and how can i configure this

you also said
Do the logfiles contain any error messages?
My log file named localhost.2006-03-11 contain next
text:
/***
Mar 11, 2006 12:03:47 PM
org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule:
Target string: News / Redirect URL:
http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule:
Target param name: paramName / Target param value:
paramValue / Redirect URL: http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule:
Redirect URL: http://jakarta.apache.org]]
Mar 11, 2006 2:02:52 PM
org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule:
Target string: News / Redirect URL:
http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule:
Target param name: paramName / Target param value:
paramValue / Redirect URL: http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule:
Redirect URL: http://jakarta.apache.org]]
Mar 11, 2006 4:47:27 PM
org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter:
init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule:
Target string: News / Redirect URL:
http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule:
Target param name: paramName / Target param value:
paramValue / Redirect URL: http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule:
Redirect URL: http://jakarta.apache.org]]
/**

I don`t now what`s happing! Is there any good tutorial
how to enter in Tomcat Administartion tool or is this
so complicated

--- Markus Schönhaber
[EMAIL PROTECTED] wrote:

 Nenad Bosanac wrote:
  Thank you for your very fast response but ihave
 same
  problem again.
  I try to change tomcat-users.xml and he looks like
  this
 
  /*
  ?xml version='1.0' encoding='utf-8'?
  tomcat-users
role rolename=tomcat/
role rolename=role1/
role rolename=manager/
role rolename=standard/
user name=craigmcc password=secret
  roles=standard,manager /
 
 Make that user username=... /. But that shouldn't
 be the culprit.
 
user username=tomcat password=tomcat
  roles=tomcat/
user username=both password=tomcat
  roles=tomcat,role1/
user username=role1 password=tomcat
  roles=role1/
  /tomcat-users
  /**
 
  Of course i change this xml file and start tomcat
  again and try to login like craigmcc(username) and
  secret(password) and i got this response
 
  /*
  HTTP Status 403 - Access to the requested resource
 has
  been denied
 
  type Status report
 
  message Access to the requested resource has been
  denied
 
  description Access to the specified resource
 (Access
  to the requested resource has been denied) has
 been
  forbidden.
  /**
  What i make wrong?
 
 Hard to tell. Have you configured a RemoteAddrValve
 to protect the manager app 
 or something like that?
 Do the logfiles contain any error messages?
 
 Regards
   mks
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat (5.0.25 5.5.15) manager webapp and UserDatabaseRealm and browser caching

2006-03-11 Thread Nenad Bosanac
Well i have similar problem ,but i can`t enter 
anymore my admin tool.
what is your default username and password that you
enter ?

--- Tarang Patel [EMAIL PROTECTED] wrote:

 I suddenly encountered Http 403 problem when trying
 to
 access my manager app
 (http://localhost:8080/manager/status)
 
 0) I am using Firefox (1.0.7) browser, the app
 worked
 fine until the one ocassion I typed in the wrong
 password.
 1) I see no error messages in any of the log files
 2) I do not see the webapp initialization messages
 such as I did before this event, e.g
 
 2006-03-06 23:13:45
 StandardContext[/manager]HTMLManager: init:
 
 Things I did, yet I still get 403:
 1) Restarted Tomcat several times does not cure
 this.
 2) Removed all files from
 %CATALINA_BASE%\work\Catlina\localhost\
 
  and restarted Tomcat yet this doesn't cure it.
 3) Removed all cookies related to the
 http://localhost
  yet this doesn't work.
 
 The manager app does work when I run up IE
 browser.
 
 Given the things I did there should be no
 possibility
 of cached user across session serialization. 
 
 [Q] So what could it be that gives the illusion of
 a
 cached user to the browser ?
  
  Tarang
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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