change cookie domain

2006-09-19 Thread Rafal Zawadzki
Hi. I need to set cookie domain in my application to .example.com (not 
example.com). How can I do it deploying under tomcat?

Thanks,

-- 
Rafał Zawadzki
Release Manager


pgpeUY14BifEg.pgp
Description: PGP signature


problem with jkmanager

2006-06-20 Thread Rafal Zawadzki
Hi. We set loadbalancing with jk (1.2.15) and apache (2.0) to six tomcats 
tomcats (two cluster).

We found strage behavior of jkmanager - every refresh of page gives another 
result of  Acc  Number of requests - actually there is no requests at all.

Why? Any idea?


web3:~# links -dump http://10.129.0.11:80/jkmanager/  date
tomcat1 ajp13 10.129.100.7:8009  10.129.100.7:8009  OK   1 101   32116 0   0  
0  311 cluster1
tomcat2 ajp13 10.129.100.8:8010  10.129.100.8:8010  OK   1 227   33634 0   0  
0  09  cluster1
tomcat3 ajp13 10.129.100.9:8009  10.129.100.9:8009  OK   1 -1060 34050 0   0  
0  212 cluster1
tomcat4 ajp13 10.129.100.10:8010 10.129.100.10:8010 OK   1 539   30598 0   0  
0  613 cluster2
tomcat5 ajp13 10.129.100.11:8009 10.129.100.11:8009 OK   1 125   30722 0   0  
0  513 cluster2
tomcat6 ajp13 10.129.100.12:8010 10.129.100.12:8010 OK   1 7430333 0   0  
0  19  cluster2
wto cze 20 08:28:03 CEST 2006
web3:~# links -dump http://10.129.0.11:80/jkmanager/  date
tomcat1 ajp13 10.129.100.7:8009  10.129.100.7:8009  OK   1 103  31267 0   0  0  
110 cluster1
tomcat2 ajp13 10.129.100.8:8010  10.129.100.8:8010  OK   1 -137 32913 0   0  0  
210 cluster1
tomcat3 ajp13 10.129.100.9:8009  10.129.100.9:8009  OK   1 -746 33109 0   0  0  
110 cluster1
tomcat4 ajp13 10.129.100.10:8010 10.129.100.10:8010 OK   1 531  30032 0   0  0  
010 cluster2
tomcat5 ajp13 10.129.100.11:8009 10.129.100.11:8009 OK   1 147  30018 0   0  0  
512 cluster2
tomcat6 ajp13 10.129.100.12:8010 10.129.100.12:8010 OK   1 108  29522 0   0  0  
916 cluster2
wto cze 20 08:28:04 CEST 2006
web3:~# links -dump http://10.129.0.11:80/jkmanager/  date
tomcat1 ajp13 10.129.100.7:8009  10.129.100.7:8009  OK   1 136  30148 0   0  0  
08  cluster1
tomcat2 ajp13 10.129.100.8:8010  10.129.100.8:8010  OK   1 -812 31970 0   0  0  
12   19 cluster1
tomcat3 ajp13 10.129.100.9:8009  10.129.100.9:8009  OK   1 82   31667 0   0  0  
29  cluster1
tomcat4 ajp13 10.129.100.10:8010 10.129.100.10:8010 OK   1 527  28912 0   0  0  
29  cluster2
tomcat5 ajp13 10.129.100.11:8009 10.129.100.11:8009 OK   1 38   29089 0   0  0  
09  cluster2
tomcat6 ajp13 10.129.100.12:8010 10.129.100.12:8010 OK   1 35   28710 0   0  0  
09  cluster2
wto cze 20 08:28:04 CEST 2006
web3:~# links -dump http://10.129.0.11:80/jkmanager/  date
tomcat1 ajp13 10.129.100.7:8009  10.129.100.7:8009  OK   1 94   33295 0   0  0  
714 cluster1
tomcat2 ajp13 10.129.100.8:8010  10.129.100.8:8010  OK   1 -608 35038 0   0  0  
110 cluster1
tomcat3 ajp13 10.129.100.9:8009  10.129.100.9:8009  OK   1 -275 34903 0   0  0  
09  cluster1
tomcat4 ajp13 10.129.100.10:8010 10.129.100.10:8010 OK   1 497  31654 0   0  0  
09  cluster2
tomcat5 ajp13 10.129.100.11:8009 10.129.100.11:8009 OK   1 146  31914 0   0  0  
413 cluster2
tomcat6 ajp13 10.129.100.12:8010 10.129.100.12:8010 OK   1 152  31356 0   0  0  
613 cluster2
wto cze 20 08:28:05 CEST 2006
web3:~#   
-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgp42hyAPH1zr.pgp
Description: PGP signature


Re: Tomcat integegrated with Apache

2006-01-12 Thread Rafal Zawadzki
### Pete Alvin [EMAIL PROTECTED] wrote message to Tomcat Users List 
users@tomcat.apache.org ###
### this is reply for: RE: Tomcat integegrated with Apache ###
 I'm using Tomcat 5.5.  I want to keep it simple.  It always seems to
 take me 2 days of anguish to get Apache/Tomcat working together.

 Is it now unnecessary to hook it up to Apache?  I need to also serve
 images and static HTML files.  Is that  efficient if I use Tomcat?

it depends on you traffic. you can always use it with squid.


-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpu658uON2Cv.pgp
Description: PGP signature


Re: Tomcat integegrated with Apache

2006-01-12 Thread Rafal Zawadzki
### George Sexton [EMAIL PROTECTED] wrote message to 'Tomcat Users 
List' users@tomcat.apache.org ###
### this is reply for: RE: Tomcat integegrated with Apache ###
 If I can avoid using Apache, then I run tomcat on a non-privileged port and
 use IPTables to re-direct from port 80 to the non-privileged port.

Why not use squid?

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgp1jUpzX3aWs.pgp
Description: PGP signature


Re: Tomcat integegrated with Apache

2006-01-12 Thread Rafal Zawadzki
### Peter Crowther [EMAIL PROTECTED] wrote message to Tomcat 
Users List users@tomcat.apache.org ###
### this is reply for: RE: Tomcat integegrated with Apache ###
  From: Rafal Zawadzki [mailto:[EMAIL PROTECTED]
  Why not use squid?

 One view: Why go through another user-level process when you can simply
 redirect the socket connections via iptables for fewer CPU cycles and
 less RAM?

 Another view: squid may be faster at serving static content, so
 interposing it could be useful if you suspect that is a bottleneck.
 Recent Tomcats are faster than older Tomcats at serving static content.

 My view: It depends on your mix of content and your webapp.  In general,
 it's not possible to know which is more efficient *in your environment*
 without benchmarking it.

Hm, sorry, my fault. I never think about small tomcat webapps. I've got 
experience only with big clustered applications, so I always think about this 
trio:
- tomcat
- apache
- squid

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpL3EoFSqqHE.pgp
Description: PGP signature


Re: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Rafal Zawadzki
### Adam Johnston [EMAIL PROTECTED] wrote message to 
George Sexton [EMAIL PROTECTED], Tomcat Users List 
users@tomcat.apache.org ###
### this is reply for: RE: Using Tomcat 5.5 as a standalone web server ###
 Thanks George and to Tim for his answer also - George's example seems to
 be a reliable indicator of its capability.  I am going to load test the
 site on a pure Tomcat install - I will let you all know how it goes ;)

 I would love still to hear of any other examples of pure Tomcat
 installs. It strikes me that if Tomcat is regarded an enterprise-class
 web server, as opposed to a Java content server only, it provides a lot
 of great answers to those of us who have to admin integrated
 environments. I really hope the development of Tomcat continues to shore
 up its Apache-like capabilities.

IHMO it is not good way. 

Apache is one of the best open source project ever - stable, fast, powerfull.

Tomcat has good conceptial, but it hasn't quality, it is not stable, nor fast.

IMHO opinion tomcat dev should focus on improve stability, not porting apache 
func to it.

Don't get me wrong - we are using tomcat, generally we like it, but it is not 
1/10 apache quality.

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpPVyI9KtZyu.pgp
Description: PGP signature


Re: Using Tomcat 5.5 as a standalone web server

2006-01-11 Thread Rafal Zawadzki

 Not sure I fully agree with you - not about Apache being a great stable
 product - as I do agree with that.  However, I have been using Tomcat since
 version 3 - and settled on using Tomcat (since version 5.0.x) standalone as
 I found greater stability, speed and reliance than with using it in
 conjunction with Apache.


Exactly. With conjuction apache :)


 I would however put this down to the connectors and issues there rather
 than to Apache or Tomcat.

 I am still using 5.0.28 in production on well over 15 servers 

Similar.


 and over 100 
 sites - some of which are high traffic!  

The same.

 My biggest problem is in jugging 
 database server and web server system resources due to hardware
 limitations.

Our problem are replication (first tomcat version which has stable replication 
is 5.5.14, in our environment). When i read changelog of new version I always 
think oh my god (about old, buggy version). IMVHO it is mature product, but 
good looking for the future.

 Rgds,

Cheers,

 Carl

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpJjop3zfcCF.pgp
Description: PGP signature


Re: Using Tomcat 5.5 as a standalone web server

2006-01-10 Thread Rafal Zawadzki
### Wouter Boers [EMAIL PROTECTED] wrote message to 'Tomcat Users List' 
users@tomcat.apache.org ###
### this is reply for: RE: Using Tomcat 5.5 as a standalone web server ###
 There is quite an easy sollution.

 Run squid as you main webserver and as a web accelator in front of your
 tomcat. From the squid config you can decide what your want cached and what
 now. I don't understand why this is not done more often since its
 A) a very easy sollution
 B) does not loose any of the funtionality tomcat can offer you
 C) allow to fine grain the load of tomcat completely

What about scalability? ;-)

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpDH7DZLcqHi.pgp
Description: PGP signature


Re: erro jdbc connection with mysql

2006-01-05 Thread Rafal Zawadzki
### marju jalloh [EMAIL PROTECTED] wrote message to Tomcat Users List 
users@tomcat.apache.org ###
### this is reply for: erro jdbc connection with mysql ###
 Hi everyone,

 I`m trying to connect to mysql from jdbc but I freequently get this errror

  ...java.sql.SQLException: Data source rejected establishment of
 connection,  message from server: Host 'localhost.localdomain' is not
 allowed to connect to this MySQL server...

you have to use GRANT command (mysql).

for example:

GRANT ALL PRIVILEGES on yourdatabase.* TO 'youruser'@'yourhostnametomcat' 
IDENTIFIED BY 'yourl33tpassword';

bluszcz

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpIhaptZKee3.pgp
Description: PGP signature


Re: erro jdbc connection with mysql

2006-01-05 Thread Rafal Zawadzki

 GRANT ALL PRIVILEGES on yourdatabase.* TO 'youruser'@'yourhostnametomcat'
 IDENTIFIED BY 'yourl33tpassword';

Oh, I forgot. After this you should:

FLUSH PRIVILEGES;

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpPRFhyiG4SB.pgp
Description: PGP signature


Re: erro jdbc connection with mysql

2006-01-05 Thread Rafal Zawadzki
 In short, run this as root inside mysql:
 GRANT ALL PRIVILEGES ON your_db_name.* TO
 'your_mysql_user'@'your_client_host' IDENTIFIED BY 'your_password';

FLUSH ...

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgp0C6HJ5wXNi.pgp
Description: PGP signature


Re: question

2006-01-03 Thread Rafal Zawadzki
### [EMAIL PROTECTED] wrote message to users@tomcat.apache.org ###
### this is reply for: question ###
 hello
 how i can set the env. variables like JAVA_HOME so that tomcat can be
 start.
 thank you
 bye
 richard

conf/catalina.sh

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpgsmouYlukB.pgp
Description: PGP signature


Re: question

2006-01-03 Thread Rafal Zawadzki
### [EMAIL PROTECTED] wrote message to Tomcat Users List 
users@tomcat.apache.org 
###
### this is reply for: Re: question ###
 Linux
 in catalina.sh`?
 like
 JAVA_HOME=path ?
 bye

1. Do not top-post
2. Have you ever looked into that file?

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpfBY7MtCKh3.pgp
Description: PGP signature


Re: question

2006-01-03 Thread Rafal Zawadzki
### [EMAIL PROTECTED] wrote message to Tomcat Users List 
users@tomcat.apache.org 
###
### this is reply for: Re: question ###
 hello
 a.) Top Post?

http://www.google.com/search?q=top+postingie=UTF-8oe=UTF-8

-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgp5UJP6KUSwH.pgp
Description: PGP signature


Re: compatibility package for Tomcat 5.5

2005-12-20 Thread Rafal Zawadzki
### Ariel Pashtan [EMAIL PROTECTED] wrote message to 
users@tomcat.apache.org ###
### this is reply for: compatibility package for Tomcat 5.5 ###
 Hi,



 I am running Tomcat 5.5 and 1.4 JRE. I understand that I need to install
 the compatibility package in the Tomcat home folder.

 I tried searching for this compatibility package in the Tomcat pages. Can
 you please let me know where can I find this package?

 Thanks!



 Ariel

http://tomcat.apache.org/download-55.cgi#5.5.14-beta

JDK 1.4 Compatability Package: 
zip (pgp, md5) 
tar.gz (pgp, md5)




-- 
Rafał Zawadzki
Deploy/Release Manager
eo Networks Sp. z o.o.


pgpCKoHUzLjYO.pgp
Description: PGP signature