tc 7.0.47 manager-gui role works on 32 but not 64 Ubuntu 12.04 (401)

2013-12-20 Thread David Brown

Howdy,

Extensive Googling for manager-gui role not working for the same 
environment finds no solutions.


Is this a known issue? out-of-the box install of TC 7.047 on 64 bit 
12.04 Ubuntu returns a 401.


The same version installed on 32 bit Ubuntu 12.04 manage-gui role brings 
up the manager page OK.


The server is running @ http://localhost:8080 but not 
http://localhost:8080/manager/html with the standard page returning 
howto edit tomcat-users.xml


However, following the instructions to the letter plus variations 
gleaned from the net fail.


I have been installing TC as a development server for some years and I 
have never had the tomcat-users.xml config fail.


Any ideas, suggestions welcomed.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread David Brown
Hello, I have found a situation that kills tc on startup within about 3
seconds on a 64-bit cloud running Ubuntu server. localhost resolves
correctly via dig but if we ping localhost it resolves to localhost.com.
this in my estimation is causing tc to bail. the tc 7 installed is 64
with a sun-oracle 64 bit jdk all fresh out-of-the-box with no config or
changes. This is a vulnerability in my estimation unless somebody can
prove different.

catalina.out only shows the 8005 port exception unable to bind to 8005
on localhost. i have already run all the possible tests for previous
version of tc running or some other process or daemon attached to 8005.
There are no other instances on the system and tc could not have
previously been running since this was a new out-of-the-box install with
no changes. The, on startup the tc 7 instance dies immediately (about 3
sec.) with only the same 8005 exception in the logs.

Is it possible to define some other ip than 127.0.0.1 to use for 8005?

Pls advise.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread David Brown
OK, here is the hogwash. I have already been round-and-round with the
cloud admin guys with all of their requests for: netstat, lsof, ifconfig
on-and-on. Anyway you slice it some random network config whether
correct or not should not be shutting down a server upon boot.
Especially, where there is no logging to speak of to shed light. And,
this not an AIX but an Ubuntu 10.x Lucid server with all the major
services running including NAMEd, SMTPd, HTTPd, SSHd, IMAPd, MySQLd and
others with not a single hitch-in-the-git-along except for TC. JDK
(sun-oracle 6.26 64) and TC 7 (64) are both fresh out-of-the-box install
with no futzing about with any config.

And, BTW: this is on the server instance and not some laptop
somewhere :-S


david@dobbeltganger:~$ dig localhost

;  DiG 9.7.0-P1  localhost
;; global options: +cmd
;; Got answer:
;; -HEADER- opcode: QUERY, status: NOERROR, id: 37269
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;localhost. IN  A

;; ANSWER SECTION:
localhost.  604800  IN  A   127.0.0.1

;; AUTHORITY SECTION:
localhost.  604800  IN  NS  localhost.

;; ADDITIONAL SECTION:
localhost.  604800  IN  ::1

;; Query time: 0 msec
;; SERVER: 184.106.229.250#53(184.106.229.250)
;; WHEN: Tue Jul 12 20:04:09 2011
;; MSG SIZE  rcvd: 85

david@dobbeltganger:~$ ping -c 3 localhost
PING localhost.com (64.99.64.32) 56(84) bytes of data.
64 bytes from 64.99.64.32: icmp_seq=1 ttl=246 time=16.9 ms
64 bytes from 64.99.64.32: icmp_seq=2 ttl=246 time=17.0 ms
64 bytes from 64.99.64.32: icmp_seq=3 ttl=246 time=16.9 ms

--- localhost.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 10041ms
rtt min/avg/max/mdev = 16.918/16.971/17.051/0.057 ms
david@dobbeltganger:~$ cat /etc/nsswitch.conf 
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed,
try:
# `info libc Name Service Switch' for information about this file.

passwd: compat
group:  compat
shadow: compat

hosts:  mdns4_minimal [NOTFOUND=return] dns mdns4 files
networks:   files

protocols:  db files
services:   db files
ethers: db files
rpc:db files

netgroup:   nis
david@dobbeltganger:~$ cat /etc/hosts
184.106.229.250 dobbeltganger.com davidwbrown.name karlbrown.name
helenbrown.name deanbrown.name
127.0.0.1   localhost localhost.localdomain
david@dobbeltganger:~$ cat /etc/resolv.conf 
nameserver 184.106.229.250
nameserver 173.203.4.8
nameserver 173.203.4.9

#nameserver 127.0.0.1
#184.106.229.250


On Tue, 2011-07-12 at 20:14 +0200, André Warnier wrote:
 Bill Miller wrote:
  Have a good look at the /etc/hosts.conf file, it needs to contain something 
  like order hosts, bind
  (AIX=netsvc.conf). If that is misconfigured then you will have exactly the 
  problems you're
  describing. I found this exact behaviour on an AIX system that was 
  misconfigured. Keep working on
  the networking configuration until ping for localhost resolves to 127.0.0.1 
  and nothing else.
  
 
 note : ping should be run on the Tomcat host itself, not on your 
 workstation.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread David Brown
Hello Ranier,thanks for this. something installed changed the hosts
value in nsswitch.conf. TC cranked rite up. should be some better way of
avoiding this type very infrequent hole to step in. Anyway, thanks
again. :-D


On Tue, 2011-07-12 at 22:59 +0200, Rainer Jung wrote:
 On 12.07.2011 22:08, David Brown wrote:
 
  david@dobbeltganger:~$ ping -c 3 localhost
  PING localhost.com (64.99.64.32) 56(84) bytes of data.
  64 bytes from 64.99.64.32: icmp_seq=1 ttl=246 time=16.9 ms
  64 bytes from 64.99.64.32: icmp_seq=2 ttl=246 time=17.0 ms
  64 bytes from 64.99.64.32: icmp_seq=3 ttl=246 time=16.9 ms
 
 OK, so that's a problem, localhost resolves to some remote host.
 
  david@dobbeltganger:~$ cat /etc/nsswitch.conf 
 ...
  hosts:  mdns4_minimal [NOTFOUND=return] dns mdns4 files
 
 Aha, so /etc/hosts and DNS are not really used on that system, instead
 it will first ask multicast DNS, which is patr of ZeroConf. No
 configuration work, but possibly wrong results ...
 
 Regards,
 
 Rainer
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



New TC 7 tomcat-users.xml can't login (401)

2011-07-12 Thread David Brown
Hi, I have a new TC 7 running. I have RTFM on the new changes for the
User realm using the new roles: manager-gui and admin-gui but all I get
is 401. server.xml seems to default to usage of the tomcat-users.xml.
Any ideas of how to diagnose are welcomed.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: JK connector and extra characters showing up

2010-07-01 Thread David Brown
 70 63 72 20 68 33 7b 66 6f 6e 74  ;}.#tpcr h3{font

0190   2d 73 69 7a 65 3a 32 36 70 78 3b 6d 61 72 67 69  -size:26px;margi

01a0   6e 2d 62 6f 74 74 6f 6d 3a 32 30 70 78 3b 66 6f  n-bottom:20px;fo

01b0   6e 74 2d 77 65 69 67 68 74 3a 62 6f 6c 64 3b 64  nt-weight:bold;d

... rest of style sheet



C) From SunOne to Browser (response) HTTP

Packet #1

   00 14 4f c7 1a 1e 00 0f a3 e9 e6 eb 08 00 45 00  ..O...E.

0010   01 d7 c4 cf 40 00 3e 06 6d 9b c0 a8 d2 41 c0 a8  @..mA..

0020   b5 23 e8 64 00 50 69 9d 8f cb 9d de f6 cc 80 18  .#.d.Pi.

0030   80 40 34 8a 00 00 01 01 08 0a 11 22 0d a3 4f 50  @4..OP

0040   dc 8a 47 45 54 20 2f 63 6f 6d 70 6f 6e 65 6e 74  ..GET /component

0050   73 2f 72 65 73 6f 75 72 63 65 73 2f 63 73 73 2f  s/resources/css/

0060   74 70 63 2d 61 67 67 72 65 67 61 74 65 2e 63 73  tpc-aggregate.cs

0070   73 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f 73 74  s HTTP/1.1..Host

0080   3a 20 31 39 32 2e 31 36 38 2e 31 38 31 2e 33 35  : 192.168.181.35

0090   0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 4d 6f  ..User-Agent: Mo

00a0   7a 69 6c 6c 61 2f 35 2e 30 20 28 4d 61 63 69 6e  zilla/5.0 (Macin

00b0   74 6f 73 68 3b 20 55 3b 20 49 6e 74 65 6c 20 4d  tosh; U; Intel M

00c0   61 63 20 4f 53 20 58 20 31 30 2e 35 3b 20 65 6e  ac OS X 10.5; en

00d0   2d 55 53 3b 20 72 76 3a 31 2e 39 2e 31 2e 31 30  -US; rv:1.9.1.10

00e0   29 20 47 65 63 6b 6f 2f 32 30 31 30 30 35 30 34  ) Gecko/20100504

00f0   20 46 69 72 65 66 6f 78 2f 33 2e 35 2e 31 30 0d   Firefox/3.5.10.

0100   0a 41 63 63 65 70 74 3a 20 74 65 78 74 2f 68 74  .Accept: text/ht

0110   6d 6c 2c 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78  ml,application/x

0120   68 74 6d 6c 2b 78 6d 6c 2c 61 70 70 6c 69 63 61  html+xml,applica

0130   74 69 6f 6e 2f 78 6d 6c 3b 71 3d 30 2e 39 2c 2a  tion/xml;q=0.9,*

0140   2f 2a 3b 71 3d 30 2e 38 0d 0a 41 63 63 65 70 74  /*;q=0.8..Accept

0150   2d 4c 61 6e 67 75 61 67 65 3a 20 65 6e 2d 75 73  -Language: en-us

0160   2c 65 6e 3b 71 3d 30 2e 35 0d 0a 41 63 63 65 70  ,en;q=0.5..Accep

0170   74 2d 45 6e 63 6f 64 69 6e 67 3a 20 67 7a 69 70  t-Encoding: gzip

0180   2c 64 65 66 6c 61 74 65 0d 0a 41 63 63 65 70 74  ,deflate..Accept

0190   2d 43 68 61 72 73 65 74 3a 20 49 53 4f 2d 38 38  -Charset: ISO-88

01a0   35 39 2d 31 2c 75 74 66 2d 38 3b 71 3d 30 2e 37  59-1,utf-8;q=0.7

01b0   2c 2a 3b 71 3d 30 2e 37 0d 0a 4b 65 65 70 2d 41  ,*;q=0.7..Keep-A

01c0   6c 69 76 65 3a 20 33 30 30 0d 0a 43 6f 6e 6e 65  live: 300..Conne

01d0   63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76  ction: keep-aliv

01e0   65 0d 0a 0d 0a


Packet #2

   02 12 f2 7c b2 33 00 14 4f c7 1a 1e 08 00 45 00  ...|.3..O.E.

0010   05 8c 87 bf 40 00 40 06 00 00 c0 a8 b5 23 c0 a8  @.@..#..

0020   d2 41 00 50 e8 64 9d de f6 cc 69 9d 91 6e 80 10  .A.P.di..n..

0030   25 68 0e 35 00 00 01 01 08 0a 4f 50 dc 8c 11 22  %h.5..OP...

0040   0d a3 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f  ..HTTP/1.1 200 O

0050   4b 0d 0a 53 65 72 76 65 72 3a 20 53 75 6e 2d 4f  K..Server: Sun-O

0060   4e 45 2d 57 65 62 2d 53 65 72 76 65 72 2f 36 2e  NE-Web-Server/6.

0070   31 0d 0a 44 61 74 65 3a 20 57 65 64 2c 20 33 30  1..Date: Wed, 30

0080   20 4a 75 6e 20 32 30 31 30 20 31 32 3a 33 30 3a   Jun 2010 12:30:

0090   30 33 20 47 4d 54 0d 0a 45 54 61 67 3a 20 57 2f  03 GMT..ETag: W/

00a0   22 32 32 33 37 33 2d 31 32 37 37 34 39 39 37 33  22373-127749973

00b0   39 30 30 30 22 0d 0a 4c 61 73 74 2d 4d 6f 64 69  9000..Last-Modi

00c0   66 69 65 64 3a 20 46 72 69 2c 20 32 35 20 4a 75  fied: Fri, 25 Ju

00d0   6e 20 32 30 31 30 20 32 31 3a 30 32 3a 31 39 20  n 2010 21:02:19

00e0   47 4d 54 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70  GMT..Content-Typ

00f0   65 3a 20 74 65 78 74 2f 63 73 73 0d 0a 43 6f 6e  e: text/css..Con

0100   74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 32 32 33  tent-Length: 223

0110   37 33 0d 0a 54 72 61 6e 73 66 65 72 2d 65 6e 63  73..Transfer-enc

0120   6f 64 69 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a  oding: chunked..

0130   0d 0a 31 66 66 38 0d 0a 40 43 48 41 52 53 45 54  ..1ff...@charset

0140   20 22 55 54 46 2d 38 22 3b 23 74 70 63 72 7b 62   UTF-8;#tpcr{b

0150   61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a  ackground-color:

0160   57 68 69 74 65 3b 6d 61 72 67 69 6e 3a 31 30 70  White;margin:10p

0170   78 20 30 20 32 30 70 78 20 30 3b 7d 0a 23 74 70  x 0 20px 0;}.#tp

0180   63 72 20 68 33 7b 66 6f 6e 74 2d 73 69 7a 65 3a  cr h3{font-size:

0190   32 36 70 78 3b 6d 61 72 67 69 6e 2d 62 6f 74 74  26px;margin-bott

01a0   6f 6d 3a 32 30 70 78 3b 66 6f 6e 74 2d 77 65 69  om:20px;font-wei

01b0   67 68 74 3a 62 6f 6c 64 3b 64 69 73 70 6c 61 79  ght:bold;display

... rest of style sheet




On Thu, Jul 1, 2010 at 4:59 AM, Rainer Jung rainer.j...@kippdata.de wrote:

 On 01.07.2010 03:00, Christopher Schultz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 David,

 On 6/30/2010 3:32 PM, David Brown wrote:

 Problem:

 Extra characters showing up in some content delivered

JK connector and extra characters showing up

2010-06-30 Thread David Brown
Problem:

Extra characters showing up in some content delivered from tomcat. I believe
they are from the JK connector when it breaks up the content into 8k
packets.


Setup:

Tomcat 5.5  -  JK 1.2.30  - SunOne 6.1sp11


I tested using Apache2 and the problem does not show up there. Using apache
is not an option here.



Here are some snippets of packet captures (tcpdump) to show what I mean.



Tomcat to web server through JK connector, same for Sun One and Apache


0090   20 47 4d 54 00 00 0c 43 6f 6e 74 65 6e 74 2d 54   GMT...Content-T

00a0   79 70 65 00 00 08 74 65 78 74 2f 63 73 73 00 00  ype...text/css..

00b0   0e 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 00  .Content-Length.

00c0   00 05 32 32 33 37 33 00 41 42 1f fc 03 1f f8 40  ..22373.AB.@

00d0   43 48 41 52 53 45 54 20 22 55 54 46 2d 38 22 3b  CHARSET UTF-8;

00e0   23 74 70 63 72 7b 62 61 63 6b 67 72 6f 75 6e 64  #tpcr{background

00f0   2d 63 6f 6c 6f 72 3a 57 68 69 74 65 3b 6d 61 72  -color:White;mar

0100   67 69 6e 3a 31 30 70 78 20 30 20 32 30 70 78 20  gin:10px 0 20px



Browser from Apache


0120   76 65 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65  ve..Content-Type

0130   3a 20 74 65 78 74 2f 63 73 73 0d 0a 0d 0a 40 43  : text/css@c

0140   48 41 52 53 45 54 20 22 55 54 46 2d 38 22 3b 23  HARSET UTF-8;#

0150   74 70 63 72 7b 62 61 63 6b 67 72 6f 75 6e 64 2d  tpcr{background-

0160   63 6f 6c 6f 72 3a 57 68 69 74 65 3b 6d 61 72 67  color:White;marg

0170   69 6e 3a 31 30 70 78 20 30 20 32 30 70 78 20 30  in:10px 0 20px 0



Browser from SunOne


00e0   47 4d 54 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70  GMT..Content-Typ

00f0   65 3a 20 74 65 78 74 2f 63 73 73 0d 0a 43 6f 6e  e: text/css..Con

0100   74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 32 32 33  tent-Length: 223

0110   37 33 0d 0a 54 72 61 6e 73 66 65 72 2d 65 6e 63  73..Transfer-enc

0120   6f 64 69 6e 67 3a 20 63 68 75 6e 6b 65 64 0d 0a  oding: chunked..

0130   0d 0a 31 66 66 38 0d 0a 40 43 48 41 52 53 45 54  ..1ff...@charset

0140   20 22 55 54 46 2d 38 22 3b 23 74 70 63 72 7b 62   UTF-8;#tpcr{b

0150   61 63 6b 67 72 6f 75 6e 64 2d 63 6f 6c 6f 72 3a  ackground-color:

0160   57 68 69 74 65 3b 6d 61 72 67 69 6e 3a 31 30 70  White;margin:10p

0170   78 20 30 20 32 30 70 78 20 30 3b 7d 0a 23 74 70  x 0 20px 0;}.#tp



The first snippet is from between the web server and tomcat through the JK
connector. This looks the same for either Apache or SunOne.

The thing to note is line 00c0 where the hex is 1f f8.


The second snippet is when a browser hits Apache. The thing to note is line
0130 where the hex is 0d 0a 0d 0a. (carriage return, line feed, carriage
return, line feed)


The third snippet is when a browser hits SunOne for the same file. Here on
line 0130 there is  0d 0a 31 66 66 38 0d 0a, notice the extra 4 characters
between the carriage return/line feeds.


And that is where my problem lies. These characters 1ff8 are showing up in
the body of the content and is causing errors.


I've been looking over the jk_nsapi_plugin.c code but I haven't worked in C
in over a decade so I'm fairly lost.


Is there any way to get the JK Connector to work the same for SunOne as it
does for Apache?


Problem with JK connector on OpenSolaris and SunOne webserver 7

2010-02-04 Thread David Brown
I'm trying to build and get working the tomcat-connector on OpenSolaris
using SunOne webserver 7.


I've built it with GCC and/or CC but when I try to start and instance of the
web server I get the line


[Thu Feb 04 21:05:05.989 2010] [29901:1] [debug] jk_init::jk_nsapi_plugin.c
(301): jk_init, a second passed

[Thu Feb 04 21:05:06.999 2010] [29901:1] [debug] jk_init::jk_nsapi_plugin.c
(301): jk_init, a second passed

[Thu Feb 04 21:05:08.009 2010] [29901:1] [debug] jk_init::jk_nsapi_plugin.c
(301): jk_init, a second passed

[Thu Feb 04 21:05:09.019 2010] [29901:1] [debug] jk_init::jk_nsapi_plugin.c
(301): jk_init, a second passed


over and over in the jk log.



Here's some info on what I'm using and tried;


OS - OpenSolaris 2009.06

SunOne Webserver 7p8 (the latest release)

Java - JDK 1.6.0u18

Tomcat Connector 1.2.28



When compiling with GCC the setting in Makefile.solaris are

CC=gcc

EXTRA_CFLAGS=-fPIC -pthreads

LDFLAGS=-shared



GCC compiler throws errors using -pthread and works OK with -pthreads




When using CC - SunStudio 12

CC=cc

LDFLAGS=-G


CC throws errors when using the extra flags below so I commented it out.

EXTRA_CFLAGS=-xcode=pic32 -mt



No matter which compiler I try it seems to hang on the jk_init, a second
passed



Any ideas anyone?


Are there issues with running multiple instances of tomcat?

2008-04-18 Thread David Brown
We are currently running two instances of tomcat on our systems. One is for
a vendor specific application and the other is for in-house written
applications. We are careful to make sure the ports do not conflict and
there are plenty of resources to support both; memory and CPU.

Recently the statement has been made that the two instances can conflict
with each other and cause issues and instability with the applications.

 Is this true? I was under the impression that since they are in their own
JVM's neither tomcat would have any affect on the other. If there are issues
in what form may they take place?


Re: Tomcat Cisco Loadbalancers

2008-02-26 Thread David Brown
Hello Steve, this does not mean there is anything inherent in the use of the 
loadbalancer that is causing the problem. IMHO you need to establish a baseline 
metric with a real JVM testing tool (like JMeter). You need to create a model 
of the real production environment and network topology using some type of 
separate dev environment. Start with just one instance of Tomcat using a true 
distributed master/slave type test (Hardware and software). Increase the number 
of users (ThreadGroups) until you can get a repeatable exception as you have 
posted. Minimally, you should be able to force the application to drop 
transactions at a certain and given number of users. Once you have a baseline 
metric to work with then you can increase the number of deployed TC instances 
and repeat your test. Also, check for you Tomcat installation: client or 
server? What is your JVM Eden tuning? Many other possibilities at:

http://wiki.apache.org/jakarta-jmeter/ (Peter Lin etc.).

Or scale vertically instead of horizontal (ibid Peter Lin). HTH.

Steve Burt wrote ..
 Hi Folks,
 
 This is a resurection of a problem that I think many fellow
 Administrators are experiencing but I think there has never been a
 real solution to the problem...
 
 I am responsible for a web application
 
 config is as follows
 
 pix firewall - cisco loadbalance - apache webservers - application
 - Oracle DB
 
 Problem that I am expericing is every time I try into introduce the
 appserver into the loadbalancer config, the keep alive request seems
 to be agrivating tomcat and causing it to crash.. this as you can
 imaging is very tiresome... :-) you have to have a sense of humour
 about these things...
 
 Anyway the error message is
 
 Nov 13, 2006 9:02:19 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
 processSocket
 SEVERE: Socket error caused by remote host /xxx.xxx.xxx.xxx(This is the
 IP address of the loadbalancer
 
 java.net.SocketException: Invalid argument
 
 at java.net.PlainSocketImpl.socketSetOption(Native Method
 at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
 at java.net.Socket.setTcpNoDelay(Socket.java:771)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.set contd..
 
 This seems to be a popular message but I dont think there has been a
 resolution to this..
 
 Now If I remove the appserver from the loadbalance problem dissappears
 ... obviously
 
 The Loadbalancer is sending its keepalive request direct to port 8080
 on the appserver
 
 I am considering the following fix
 
 1 : create a small webapp that check port 8080 itself, and point the
 loadbalancer to the *.jsp
 
 Now has anyone else experienced this?
 
 Good Talking
 
 -
 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]



Re: Tomcat Cisco Loadbalancers

2008-02-26 Thread David Brown
Hello Steve, you would fare much better to join the JMeter ML where the real 
gurus haunt. HTH, David.

Steve Burt wrote ..
 Hi David,
 
 Really appreciate your pointers.. but cant give you all the answers as
 i am not on site yet...
 
 I have downloaded JMeter and hey presto it works out of the abox as it
 said it would after I configured my $PATH variable to point to the
 correct jdk..
 
 So Now I need to create a simple test...currently looking over some
 tutorials on how to do it...
 
 Be in touch soon
 
 --Steve
 
 
 
 On 26/02/2008, David Brown [EMAIL PROTECTED] wrote:
  Hello Steve, this does not mean there is anything inherent in the use of the
 loadbalancer that is causing the problem. IMHO you need to establish a 
 baseline
 metric with a real JVM testing tool (like JMeter). You need to create a model 
 of
 the real production environment and network topology using some type of 
 separate
 dev environment. Start with just one instance of Tomcat using a true 
 distributed
 master/slave type test (Hardware and software). Increase the number of users 
 (ThreadGroups)
 until you can get a repeatable exception as you have posted. Minimally, you 
 should
 be able to force the application to drop transactions at a certain and given 
 number
 of users. Once you have a baseline metric to work with then you can increase 
 the
 number of deployed TC instances and repeat your test. Also, check for you 
 Tomcat
 installation: client or server? What is your JVM Eden tuning? Many other 
 possibilities
 at:
 
   http://wiki.apache.org/jakarta-jmeter/ (Peter Lin etc.).
 
   Or scale vertically instead of horizontal (ibid Peter Lin). HTH.
 
   Steve Burt wrote ..
 
   Hi Folks,
   
This is a resurection of a problem that I think many fellow
Administrators are experiencing but I think there has never been a
real solution to the problem...
   
I am responsible for a web application
   
config is as follows
   
pix firewall - cisco loadbalance - apache webservers - application
- Oracle DB
   
Problem that I am expericing is every time I try into introduce the
appserver into the loadbalancer config, the keep alive request seems
to be agrivating tomcat and causing it to crash.. this as you can
imaging is very tiresome... :-) you have to have a sense of humour
about these things...
   
Anyway the error message is
   
Nov 13, 2006 9:02:19 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
  processSocket
SEVERE: Socket error caused by remote host /xxx.xxx.xxx.xxx(This is the
IP address of the loadbalancer
   
java.net.SocketException: Invalid argument
   
at java.net.PlainSocketImpl.socketSetOption(Native Method
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setTcpNoDelay(Socket.java:771)
at org.apache.tomcat.util.net.PoolTcpEndpoint.set contd..
   
This seems to be a popular message but I dont think there has been a
resolution to this..
   
Now If I remove the appserver from the loadbalance problem dissappears
... obviously
   
The Loadbalancer is sending its keepalive request direct to port 8080
on the appserver
   
I am considering the following fix
   
1 : create a small webapp that check port 8080 itself, and point the
loadbalancer to the *.jsp
   
Now has anyone else experienced this?
   
Good Talking
   
 
   -
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]
 
 
 
 -
 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]



Re: Tomcat Cisco Loadbalancers

2008-02-26 Thread David Brown
Hello Steve, excuse the top post but one caveat: IMHO as I hurriedly explained 
in the first post the all-around best and SERIOUS tesing using JMeter is the 
distributed testing. However, like a lot of FOSS JMeter is not without a 
gothca: JMeter has a concurrency problem but the work around is easy. One rule: 
one user per ThreadGroup. If you need more users then just create more 
ThreadGroups. I was able to conduct some very serious testing for a multiple 
Tomcat installation assessment at Chevron. The beauty with JMeter is, as you 
have seen,  out-of-the-box JMeter and a decent JRE is all that is needed. My 
point here is: if you do conduct a distributed test all that you will need is 
one master machine (JMeter Test Plan box) and as many distributed slaves as you 
can muster. Since you are an admin guy you should be able attain hardware: 
anything will do for the distributed slave (laptops, old towers, any OS: Linux, 
XP whatever). Chevron projected there web apps to expand to 25k us
 ers internally and so I was able to construct a dev/test model of their 
topology and I was able to get the application to fail at about 25 concurrent 
users with a 1 second ramp time. This will give you a baseline metric to use as 
a reference when you begin making performance and tuning changes to see if you 
get a better server. Also, if push comes to shove the JMeter has a very nice 
JUnit sampler that if you get the TC source you can compile the source with a 
JUnit TestCase in the appropriate spot in the code. This will give the best and 
most revealing source of problems assuming your assertions are correct. HTH, 
David.

Steve Burt wrote ..
 Hi David,
 
 Really appreciate your pointers.. but cant give you all the answers as
 i am not on site yet...
 
 I have downloaded JMeter and hey presto it works out of the abox as it
 said it would after I configured my $PATH variable to point to the
 correct jdk..
 
 So Now I need to create a simple test...currently looking over some
 tutorials on how to do it...
 
 Be in touch soon
 
 --Steve
 
 
 
 On 26/02/2008, David Brown [EMAIL PROTECTED] wrote:
  Hello Steve, this does not mean there is anything inherent in the use of the
 loadbalancer that is causing the problem. IMHO you need to establish a 
 baseline
 metric with a real JVM testing tool (like JMeter). You need to create a model 
 of
 the real production environment and network topology using some type of 
 separate
 dev environment. Start with just one instance of Tomcat using a true 
 distributed
 master/slave type test (Hardware and software). Increase the number of users 
 (ThreadGroups)
 until you can get a repeatable exception as you have posted. Minimally, you 
 should
 be able to force the application to drop transactions at a certain and given 
 number
 of users. Once you have a baseline metric to work with then you can increase 
 the
 number of deployed TC instances and repeat your test. Also, check for you 
 Tomcat
 installation: client or server? What is your JVM Eden tuning? Many other 
 possibilities
 at:
 
   http://wiki.apache.org/jakarta-jmeter/ (Peter Lin etc.).
 
   Or scale vertically instead of horizontal (ibid Peter Lin). HTH.
 
   Steve Burt wrote ..
 
   Hi Folks,
   
This is a resurection of a problem that I think many fellow
Administrators are experiencing but I think there has never been a
real solution to the problem...
   
I am responsible for a web application
   
config is as follows
   
pix firewall - cisco loadbalance - apache webservers - application
- Oracle DB
   
Problem that I am expericing is every time I try into introduce the
appserver into the loadbalancer config, the keep alive request seems
to be agrivating tomcat and causing it to crash.. this as you can
imaging is very tiresome... :-) you have to have a sense of humour
about these things...
   
Anyway the error message is
   
Nov 13, 2006 9:02:19 PM org.apache.tomcat.util.net.PoolTcpEndpoint 
  processSocket
SEVERE: Socket error caused by remote host /xxx.xxx.xxx.xxx(This is the
IP address of the loadbalancer
   
java.net.SocketException: Invalid argument
   
at java.net.PlainSocketImpl.socketSetOption(Native Method
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:240)
at java.net.Socket.setTcpNoDelay(Socket.java:771)
at org.apache.tomcat.util.net.PoolTcpEndpoint.set contd..
   
This seems to be a popular message but I dont think there has been a
resolution to this..
   
Now If I remove the appserver from the loadbalance problem dissappears
... obviously
   
The Loadbalancer is sending its keepalive request direct to port 8080
on the appserver
   
I am considering the following fix
   
1 : create a small webapp that check port 8080 itself, and point the
loadbalancer to the *.jsp
   
Now has anyone else experienced this?
   
Good Talking

Re: Fwd: jsp:useBean is giving error

2008-02-24 Thread David Brown
Hello Sneha, you can put files directly into Tomcat deployment but it needs to 
comform to the .war (web archive) file structure. How are you building your 
application? I suggest strongly that you use Ant and build.xml to output a 
proper .war representation of you app. Since you are using JSP I assume you are 
using Servlets and attempting to deploy a web application based on those 
technologies. You may want to get started at:

http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html

and also if you have a TC istance running then you should see the documentatio 
link at http://localhost:8080 assuming you are just running a local TC 
instance. If you are running public I suggest that you run locally for a while 
until you have a more stable working environment. Try building a .war first and 
then use the TC manager to deploy the .war: http://localhost:8080/manager. It 
works. HTH.


Sneha Manohar wrote ..
 Hi ,
   where do I need to place user defined .java files in tomcat directory
 
 Sneha Manohar [EMAIL PROTECTED] wrote:
   Date: Sun, 24 Feb 2008 18:23:45 + (GMT)
 From: Sneha Manohar [EMAIL PROTECTED]
 Subject: jsp:useBean is giving error
 To: users@tomcat.apache.org
 
   Hi all
   I am getting  error with jsp:useBean .I have placed BallMemberInfo.java  
 all
 jsp  file  at directoryapache-tomcat-6.0.16\webapps\examples\jsp\Ball
 .

   jsp:useBean id=ballMemberInfo class=BallMemberInfo scope=page/.

   I am getting following error ,

   HTTP Status 500 -   
 -
 type Exception report
   message 
   description The server encountered an internal error () that prevented it 
 from
 fulfilling this request.
   exception 
 org.apache.jasper.JasperException: /jsp/Ball/MainList.jsp(12,95) equal symbol 
 expected
 org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) 
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)  
 org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:195)   
 org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:150)
 org.apache.jasper.compiler.Parser.parseSetProperty(Parser.java:922)   
 org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1143)
 org.apache.jasper.compiler.Parser.parseElements(Parser.java:1455)   
 org.apache.jasper.compiler.Parser.parse(Parser.java:133)
 org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)  
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:153)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)   
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:281)   
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)   
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)  
   
   note The full stack trace of the root cause is available in the Apache 
 Tomcat/6.0.16
 logs.
   
 -
 Apache Tomcat/6.0.16
 -
   Chat on a cool, new interface. No download required. Click here.
 
 

 -
  Meet people who discuss and share your passions.  Join them now.

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



Re: Tomcat6, Apache, and mod_jk configuration

2008-02-19 Thread David Brown
Yep, something is not right with the Apache config. You need to monitor some 
logs somewhere. Turn on more logging level before you start i.e. level=Debug or 
some such value. HTH.

Da Rock wrote ..
 I'm trying to get all of the above working together peacefully with no
 success whatsoever. I've got Tomcat working, and Apache has always
 worked as per usual, but mod_jk will simply not work.
 
 I'm running all this on freebsd server, and when I navigate to /webapps
 on the server I get a 404 error- but from the Tomcat server! Yet
 navigating directly on the Tomcat server works fine. Am I missing
 something?
 
 
 -
 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]



Re: Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread David Brown
Once the .war is expanded why would you want to map to JSPs outside of the file 
system package?

emerson cargnin wrote ..
 Hi there
 
 We use resin here in my work. Resin allows in its web.xml an element like:
 
   path-mapping
 url-pattern/jsp/*/url-pattern
 real-pathc:/resin/resin-2.1.4/apps/ucs//real-path
 /path-mapping
path-mapping
 
 
 
 This can also be used in resin.conf, amking the war more portable.
 
 Now we are starting a migration to tomcat. But as far as I know TC
 doesnt not allow to have the JSP's out side of the war or the expanded
 war. I did a research a couple of years ago. Did it changed? Is there
 anyway now of mapping the jsp's of an app to an outside folder?
 
 Thanks
 Emerson Cargnin
 
 -
 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]



Re: Mapping JSP's to outside of the war or expanded folder

2008-02-18 Thread David Brown
In the future to get the gurus to reply supply more info about your systems 
overall (OS, JDK, TC version, hardware, network topology, etc.). If you are 
running a NIX box you could possibly create some soft links in the directories 
you have named below. I have not tried something like that nor have I ever seen 
any discussion about something like soft links in the /WEB-INF directory. HTH.

emerson cargnin wrote ..
 The policy of our company is to deploy the jsp's separated from the
 war file, to allow a finer grained control over deployment. I'm not
 very fan of it, but it's something I won't be able to change. So I
 need a way to point the following URL's to another place in the file
 system.
 http://server/[context]/jsp/*
 http://server/[context]/css/*
 http://server/[context]/html/*
 http://server/[context]/images/*
 
 Thanks
 emerson
 
 On 18/02/2008, David Brown [EMAIL PROTECTED] wrote:
  Once the .war is expanded why would you want to map to JSPs outside of the 
  file
 system package?
 
  emerson cargnin wrote ..
   Hi there
  
   We use resin here in my work. Resin allows in its web.xml an element like:
  
 path-mapping
   url-pattern/jsp/*/url-pattern
   real-pathc:/resin/resin-2.1.4/apps/ucs//real-path
   /path-mapping
  path-mapping
  
  
  
   This can also be used in resin.conf, amking the war more portable.
  
   Now we are starting a migration to tomcat. But as far as I know TC
   doesnt not allow to have the JSP's out side of the war or the expanded
   war. I did a research a couple of years ago. Did it changed? Is there
   anyway now of mapping the jsp's of an app to an outside folder?
  
   Thanks
   Emerson Cargnin
  
   -
   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]
 
 
 
 -
 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]



Re: Tomcat Cluster

2008-02-13 Thread David Brown
Maybe Dave means to just run one Tomcat instance. There is in the TC doco info 
about the minimalist TC if memory serves. Since you are attempting a type of 
load-balancing it would serve you well to reply with a lot more info about your 
overall architecture:

OS: vendor, build version, updates (service packs).
HW: (manufacturer, # of cores, # of chips, clock, memory, bus, etc.). See: 
http://www.spec.org/cpu2006/results/rint2006.html
Network topology (lan, wan, routable, non-routable, dns, proxy, web server, 
firewall, etc.). ASCII network map is good for the ML.
TC: version and configuration.
LOGS: logging configured and enabled. If you can download and compile TC 
locally then you can run Log4j from within the code in an effort to see where 
you problems reside with running two instances.

N.B.: my current gig requires that I run multiple TC instances. I will reply 
with my success or failure for review.


Andrew Hole wrote ..
 What you consider the minimal configuration?
 
 On Feb 13, 2008 7:23 AM, David Rees [EMAIL PROTECTED] wrote:
 
  On Feb 12, 2008 10:59 AM, Andrew Hole [EMAIL PROTECTED] wrote:
   I've the following configuration on server.xml for two different
  instances
   of tomcat (on the same server). BUT, i don't know why, session
  replication
   doesn't work.
   Could you help me to find why?
 
  Have you tried starting with a minimal configuration and then adding
  options as you deem necessary?
 
  -Dave
 
  -
  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]



Re: Tomcat Cluster

2008-02-12 Thread David Brown
Dumb question: is everything supposed to be defined on the same IP (loopback?) 
and port?

Andrew Hole wrote ..
 Hello guys!
 
 I've the following configuration on server.xml for two different instances
 of tomcat (on the same server). BUT, i don't know why, session replication
 doesn't work.
 Could you help me to find why?
 
 Thanks
 
 Instance 1:
 
 Cluster  className=
 org.apache.catalina.cluster.tcp.SimpleTcpCluster
doClusterLog=true
  clusterLogName=clusterlog
   manager.className=
 org.apache.catalina.cluster.session.DeltaManager
manager.expireSessionsOnShutdown=false
manager.notifyListenersOnReplication=false
 manager.notifySessionListenersOnReplication=false
 manager.sendAllSessions=false
 manager.sendAllSessionsSize=500
 manager.sendAllSessionsWaitTime=20
   Membership
   className=
 org.apache.catalina.cluster.mcast.McastService
   mcastAddr=228.0.0.4
mcastBindAddress=127.0.0.1
  mcastClusterDomain=d10
   mcastPort=45564
  mcastFrequency=1000
   mcastDropTime=3
 recoveryCounter=10
 recoveryEnabled=true
   recoverySleepTime=5000/
   Receiver
className=
 org.apache.catalina.cluster.tcp.ReplicationListener
 tcpListenAddress=auto
tcpListenPort=9016
   tcpSelectorTimeout=100
   tcpThreadCount=6/
   Sender
className=
 org.apache.catalina.cluster.tcp.ReplicationTransmitter
  replicationMode=fastasyncqueue
   recoverTimeout=5000
   recoverCounter=6
 doTransmitterProcessingStats=true
doProcessingStats=true
   doWaitAckStats=true
queueTimeWait=true
 queueDoStats=true
   queueCheckLock=true
   ackTimeout=15000
   waitForAck=true
 keepAliveTimeout=8
 keepAliveMaxRequestCount=-1/
   Valve   className=
 org.apache.catalina.cluster.tcp.ReplicationValve
 
 filter=.*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt;
 primaryIndicator=true /
   ValveclassName=
 org.apache.catalina.cluster.session.JvmRouteBinderValve
  enabled=true /
   ClusterListener className=
 org.apache.catalina.cluster.session.ClusterSessionListener /
   ClusterListener className=
 org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener /
   DeployerclassName=
 org.apache.catalina.cluster.deploy.FarmWarDeployer
 tempDir=${catalina.base
 }/war-temp
   deployDir=${catalina.base
 }/war-deploy/
watchDir=${catalina.base
 }/war-listen/
watchEnabled=true/
   /Cluster
 
 
 Instance 2
 
 Cluster  className=
 org.apache.catalina.cluster.tcp.SimpleTcpCluster
doClusterLog=true
  clusterLogName=clusterlog
   manager.className=
 org.apache.catalina.cluster.session.DeltaManager
manager.expireSessionsOnShutdown=false
manager.notifyListenersOnReplication=false
 manager.notifySessionListenersOnReplication=false
 manager.sendAllSessions=false
 manager.sendAllSessionsSize=500
 manager.sendAllSessionsWaitTime=20
   Membership
   className=
 org.apache.catalina.cluster.mcast.McastService
   mcastAddr=228.0.0.4

Re: [Eclipse-Tomcat] Problem by deploying from Eclipse to Tomcat

2008-02-09 Thread David Brown
Hello, do you have the servlet-api-2.x.jar (or similar) loaded using the 
Eclipse Project Properties? What is in the Eclipse Libraries tab? Run jarscan 
to see where your (assuming .war) is picking up the the package and class. Are 
you exporting a .war from Eclipse? What is your Eclipse JavaBuilder properties? 
Are you working strictly from the WorkSpace? Is the target server remote or 
localhost? 

Thomas Chang wrote ..
 Hi all,

   I am not sure if I should put my question here. But I can't google out the 
 right
 place. Hope someone here can help. :-)

   I built a web-app and can deploy it successfully from Tomcat Manager. But as
 I deploy it from the Eclipse, I get the following exception. 

   P.S.: I use Eclipse 3.4 and the WTP package.

   Regards

   Thomas

   

   SCHWERWIEGEND: Error configuring application listener of class 
 org.springframework.web.context.request.RequestContextListener
   java.lang.NoClassDefFoundError: javax/servlet/ServletRequestListener
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
   at 
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
   at 
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
   at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
   at 
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3677)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
   09.02.2008 20:57:23 org.apache.catalina.core.StandardContext listenerStart
 

 -
   E-Mails jetzt auf Ihrem Handy.. 

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



Re: QUESTION: How to use *only* cookies for session tracking?

2008-02-09 Thread David Brown
Hello, you might want to take a look at:

http://www.coreservlets.com/

The marquee author hosting the above named site wrote a book with the same 
title: 
* According to the author (Marty Hall) the only downside(s) to cookies are 
privacy issues.
* The client browser has to have cookies turned on and the user can turn them 
off anytime. 
* If sensitive data is embedded this is a liability problem.
* Search engines can create cross-reference links (text, images, etc.) to pages 
that use cookies.

Anyway you cut it you will need session tracking albeit cookies or 
URL-Rewriting i.e. the JSESSIONID. The jsessionid is in itself a type of 
cookie. The security risk is if someone can sniff or guess the jsessionid the 
page is open to hi-jacking.

Theres more at the link above. HTH. 

Gregory Gerard wrote ..
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
 
 I can turn cookies on or off but I don't see a similar setting for  
 URL rewriting.
 
 I've already made my peace with requiring cookies for other reasons.
 
 Possible? Downsides?
 
 I'm seeing a lot of double fetching of content (JavaScript files and  
 images) (once for when there's ;jsessionid= as part of the URL and  
 again once the client's accepted the cookie and the URL is changed).
 
 thanks,
 greg

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



Re: Fwd: can't get servlets to run

2008-02-08 Thread David Brown
Hello ilene, in fear of retribution I must give you the standard:

http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html

Moreover, you might want to learn and understand the web application deployment 
file system hierarchy as it exists under the Tomcat installation. The TC file 
system is fairly much the same regardless of platform. This being said I would 
like to point out that in the future to get expert guru Tomcat help you might 
want to clarify your issues in a bulleted or tabulated form. This should 
included log file snippets from say: server.log. Java Exceptions are very 
informative combined with other pieces of information. Itemize or information 
stepwise such that busy people can follow easier. You know what you are doing 
but they don't. Send email that is painfully obvious that you have done your 
homework and somebody will help. HTH.


ilene m wrote ..
 
 --- ilene m [EMAIL PROTECTED] wrote:
 
  Date: Thu, 7 Feb 2008 19:50:18 -0800 (PST)
  From: ilene m [EMAIL PROTECTED]
  Subject: can't get servlets to run
  To: users@tomcat.apache.org
  
  Hi,
  
  I cannot get servlets to run outside of the servlet
  examples link off of the main page.
  I'm getting the ole 404 The requested resource -
  servlet - is not available.
  
  I have tried the 6.0.14 zip file and a
  preconfigured
  6.0.10 version of of the coreservlets.com site.
  
  i've tried loading 6.0.14 twice.  Everything else
  runs
  but the servlets.  In the first iteration of 6.0.14
  i
  had html, jsp, php, php accessing mysql running
  happily.  Thought it might have been something i did
  to make php happy so i took a clean version but it
  didn't help.
  
  When i loaded 6.0.14 i tried to run servlets by
  using
  the invoker servlet.  Uncommented the invoker
  servlet
  and it's mapping in web.xml and added
  privileged=true to context.xml and threw a
  HelloWorld.class file into
  webapps\Root\WEB-INF\classes dir accessing via
  http:\\localhost:8080\servlet\HelloWorld.
  
  I also tried my own app dir and a context fragment
  file.  
  Tried putting the context fragment file in 
  tomcat\conf\Catalina\localhost\myApp.xml,
  tomcat\conf\Catalina\localhost\myApp\myApp.xml and 
  tomcat\webapps\myApp\META-INF\context.xml.
  Tried changing up the docbase.
  
  Tried raising the logging level to see if anything
  useful would pop out.  NADA
  
  Wondering if I'm missing an environment var.
  
  Any help would be GREATLY appreciated.
  
  Thanks for your time.
  
  
  
  
  
   
 
 
  Never miss a thing.  Make Yahoo your home page. 
  http://www.yahoo.com/r/hs
  
 
 
 
   
 
 Looking for last minute shopping deals?  
 Find them fast with Yahoo! Search.  
 http://tools.search.yahoo.com/newsearch/category.php?category=shopping
 
 -
 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]



Re: Putting java packages as web applications on tomcat

2008-02-07 Thread David Brown
Tomcat only deploys (dot).war files. Or if you want to manually deploy you can 
create the application directory yourself under the Tomcat webapps directory 
and upzip the (dot).war or populate the directory structure with the right 
classes, jars, html and jsp yourself:

TOMCAT_HOME\webapps\yourwebapp\WEB-INF\classes\lib

There's more: you need to take a look at the tomcat.jarakta.apache.org doco.

where TOMCAT_HOME may or may not be an environment variable depending on 
platform that is the root of the Tomcat installation. HTH.

polock wrote ..
 
 Dear all,
 I have few java packages that I would like to put on Tomcat, I was searching
 intensively on the web how one does this but I could not find concrete
 consrtuction. Code within packages contains servlets that process get
 requests, so I do not need to change anything in the code all I need to do
 is to put in the right place in tomcat. Could you reffer me to some web -
 source where this is explained or can you give me some tipps as to how I
 should proceed.
 Thanks
 -- 
 View this message in context: 
 http://www.nabble.com/%22Putting-java-packages-as-web-applications-on-tomcat%22-tp15337583p15337583.html
 Sent from the Tomcat - User mailing list archive at Nabble.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]



RE: Putting java packages as web applications on tomcat

2008-02-07 Thread David Brown
Yes, but I did not want to say that...

Caldarale, Charles R wrote ..
  From: David Brown [mailto:[EMAIL PROTECTED] 
  Subject: Re: Putting java packages as web applications on tomcat
  
  There's more: you need to take a look at the 
  tomcat.jarakta.apache.org doco.
 
 Should also look at the servlet spec, which defines the structure and
 content of a webapp:
 http://jcp.org/aboutJava/communityprocess/mrel/jsr154/index2.html
 
 Since the OP referred to packages rather than webapps, I suspect he
 or she is unfamiliar the underlying concepts.
 
  - 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 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]



Re: how to auto redirect to https from http

2008-02-07 Thread David Brown
Hello Dave, this is not exactly the answer you are looking for but I have been 
concerned with public web security for a long time and I have finally resigned 
myself to the fact that if you are using login pages that process user ids and 
passwords and other confidential info that man-in-the-middle and any type of 
network traffic sniffing is extremely dangerous. I run several Java apps 
publicly and all are 100% https/SSL all the time. It is a performance hit but I 
just up the hardware to match: multi-core Linux boxes with smp and 4+ gigs mem 
and other virtualization tricks as afforded by XEN and even Tomcat itself 
(6.0). Also please note: JBoss is very good at multi-instance web application 
servers on multiple ports with only a single machine install. If you have very 
serious Java web application concerns and full-time https encryption is 
warrented then you might give the folks at: www.azulsystems.com a call. HTH, 
David.

Dave wrote ..
 Hi Chris,

   I moved the user-data-constraint inside the web-resource-collection as 
 the
 following:

security-constraint
 web-resource-collection
 web-resource-nameAutomatic SLL 
 Forwarding/web-resource-name
 url-pattern/login.html/url-pattern
 user-data-constraint

 transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /web-resource-collection
 /security-constraint
 
   But http://www.mydomain.com/login.html  did not redirect to secure URL.

   As you mentioned, If I start as http, then redirect to https when login,  
 and
 keep https after login. Does that mean https is using the http session? Is 
 there
 any security hole? If a man-in-the-middle knows the session id from http and 
 the
 same session id is used by https?

   Thanks for help.
   Dave
 
 Christopher Schultz [EMAIL PROTECTED] wrote:
   -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Dave,
 
 Dave wrote:
 | I tried the method, it worked.
 | But when I tried to protect login page only,
 |
 | 
 | protected
 pages
 | /login.jsp
 | 
 |
 | restarted tomcat, and went to http://www.mydomain.com
 |
 | it was redirected to secure URL. It should stay insecure until going
 to login page.
 |
 | anything I was missing?
 
 Is that your entire configuration? If you've
 told Tomcat that /* should be CONFIDENTIAL, then all traffic will be
 redirected to HTTPS.
 
 Move the CONFIDENTIAL part into the that
 represents your login page, and leave the rest of the app non-CONFIDENTIAL.
 
 Remember that Tomcat will not automatically go from HTTPS to HTTP, so
 you'll have to make that happen yourself. Also remember that if your
 session id cookie was created in HTTPS mode, your browser will not send
 it back to the server when you're in HTTP mode.
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkerHyAACgkQ9CaO5/Lv0PClgACfRQm66ro0lctDvrEnA0paYC0Y
 ziIAn35jRaXBkefSfaz6l1cn9fOokmfe
 =0RZ/
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 -
 Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

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



RE: Tomcat and Apache mod_jk For Failover

2008-02-06 Thread David Brown
Hello, webmin has the HA monitor module that helps with setup and config on 
Linux boxes.

James Ellis wrote ..
 
 Rainer,
  
 Thanks for your feedback:
  
  Also: if you do clustering, you might be concerned about availability.  The
 load balancer itself is a single point of failure, unless you  implement some
 redunfdancy in that layer to.
  
 That's another concern I have.  I was thinking of Linux HA - although I have 
 never
 used it so I'm hoping its not that difficult to setup/administer.
  
  Date: Wed, 6 Feb 2008 22:33:39 +0100 From: [EMAIL PROTECTED] To: 
  users@tomcat.apache.org
 Subject: Re: Tomcat and Apache mod_jk For Failover  Hi James,  James Ellis
 schrieb:  I am trying to set up a cluster of Tomcat servers where they  
 replicate
 session btwn the tomcat servers. My questions are:1) For failover, if 
 I
 am using apache/mod_jk as a load balancer, will  it automatically detect if 
 one
 of the members in the cluster is down  and not route requests to it?  Yes,
 if the problem is formally detectable, e.g. network problems, no  responses 
 etc.
 What problems get detected depends much on configuration.  Have a look at  
 http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html
  and for a complete list of attributes at  
  http://tomcat.apache.org/connectors-doc/reference/workers.html
  You should configure a status worker, such that you can inspect your  load 
  balancer
 status via a HTML GUI. See  
 http://tomcat.apache.org/connectors-doc/reference/status.html
   2) Are there any issues assoicated with SSL and apache as the load  
   balancer?
  Not that I'm aware of, but maybe I don't get the point. Usually you  
  terminate
 SSL on httpd and then simply use AJP13 as a protocol between  mod_jk and 
 Tomcat.
 More or less it's the only protocol mod_jk speaks.  The module then 
 automatically
 tells Tomcat, if the original request was  coming in via http or https.   
 3)
 Are there performance gains by using Apache/mod_jk as the load  balancer, or
 should I just use another Tomcat instance and the  balancer web app?  
 More
 often performance is not the key decision criterion. I assume the  balancer 
 webapp
 is not really production grade, but others might correct  me here.  To 
 choose
 the right load balancing solution, you have to decide which  people should 
 administer
 and troubleshoot it, and which technology best  fits their skills (network 
 appliances,
 Apache web server with mod_jk, ...).  Also: if you do clustering, you might 
 be
 concerned about availability.  The load balancer itself is a single point of 
 failure,
 unless you  implement some redunfdancy in that layer to.   Thanks,Jim  
 Regaqrds,
  Rainer  
  -
 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]



Re: JasperException: PermGen space

2008-02-02 Thread David Brown
Hello, also try to upgrade to 4.2.1 or 4.2.2 if not higher. HTH

Mariano López wrote ..
 Try adding more -XX:MaxPermSize when Jboss starts up.

 Best regards,

 Mariano

 Dave escribió:
  Hi, I am using JBoss 4.0.5GA on Federa Core 6 Linux for JSF application. 
  After
 running for two days, got the following exception on server side. How to avoid
 it? Thanks for help. Dave
 
Caused by: org.apache.jasper.JasperException: PermGen space
  at 
  org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:455)
  at 
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
  at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  at 
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  at 
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at 
  org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
  at 
  org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
  at 
  org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
  at 
  org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
  at 
  org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
 
 
  -
  Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
 


 -
 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]

Re: TomCat+Console

2008-02-01 Thread David Brown
localhost.log or however your logging is defined. Unless you define separate 
logging files. The Tomcat doco has full discussion of logging. See:

http://tomcat.apache.org/tomcat-5.5-doc/logging.html

If you are debugging or running diagnostics then you want to log what your 
application is doing: Log4j, commons-logging, etc.

aum kumar wrote ..
 Hi All,
 
 i will ask for sorry in advance if i am asking an irrlivant question.
 currently i am using tomcat for my development and testing purpose for my
 application.
 
 i want to see all the details as what request is going to the server and how
 server is hadling and parsing my request i mean to say all the back end
 process the server is doing.
 
 is it possible to see all the server log in the console.any help in this
 matter is much appriciated.
 
 
 Thanks,
 Umesh

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



Re: How to use https together with http

2008-02-01 Thread David Brown
Hello Dave, in the future reply with more info and you will get better help. I 
will put an example at the bottom. I'm an old-school JSP guy and not a JSF guy 
but I understand that JSF files still end in (dot).jsp? If I'm right then the 
rules should apply where a security constraint is defined. You will have to use 
a realm. The Tomcat default install comes with an example that does this in 
server.xml. Use a JAAS realm or a LDAP realm for FORM based security.

security-constraint/security-constraint

The path to your confidential pages need to be defined here.

The warning comes (especially I.E.) because you do not have a CA CERT for ssl. 
You can generate your own CERT with the gentool. Again, the Tomat doco is your 
starting point: 

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

and 

http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#What%20is%20a%20Realm?

Performance: JSF is about 50 to 500 times slower than JSP. See:

http://mindprod.com/jgloss/jsf.html

INFO:
OS: Debian 3.1, Window 2003 server
DB: Oracle 9i
Tomcat: 5.5.x
JDK/JRE: 1.6.x
VM: Xen and VMWARE
Topology: clustered TC with load balancer
Logging: Log4j, commons-logging, system logs (examples etc. for exceptions).

Dave wrote ..
 For jsf page (myfaces), some data need to go through SSL such as bank 
 information.
   For better performance, other pages(or forms) can use http.  

   h:form ... /h:form

   h:form ... /h:form

   if a form may contain personal data, it should be summitted using https. 
 Also
 we need to let user know it is secure by showing a lock and https:// in 
 browser
 address bar.

   How can I do this?

   sometimes The IE browser shows a warning: the page contains both secure and 
 nonsecure
 data.  what is the meaning? how to avoid the warning?

   Thanks for ideas.
   Dave
 

 -
 Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

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



Re: How to use https together with http

2008-02-01 Thread David Brown
Yep, Konstantin is right. This is what I do with all of my public pages that I 
want secured. This means I https ALL pages without exception if I want it to be 
secure. The net is nasty. You may have performance issues but once your public 
server is breached you will have more issues. As I said before: JSF is slow. 
There are benchmarks using JMeter comparing like JSF and JSP pages. Read Peter 
Lin's work on performance. HTH.

Konstantin Kolinko wrote ..
 You cannot and must not show that your page is secure, because it is not.
 
 The problem is that your page is vulnerable to a man-in-the-middle
 attack: there is no guarantee that the text of your web page or of the
 javascript files that it is using was not altered by someone while it
 was transmitted from the server to your client.
 
 E.g. someone may implement a script that submits the copy of sensitive
 data to some other server, before submitting it through https to your
 server.
 
 The only way to claim that your page is secure is to serve it through https.
 
 
 
 2008/2/1, Dave [EMAIL PROTECTED]:
if a form may contain personal data, it should be summitted using https. 
  Also
 we need to let user know it is secure by showing a lock and https:// in 
 browser
 address bar.
 
sometimes The IE browser shows a warning: the page contains both secure 
  and
 nonsecure data.  what is the meaning? how to avoid the warning?
 
 
 
 -
 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]



Re: Tomcat manager

2008-02-01 Thread David Brown
An undeploy removes the (dot).war. The dot war is all that defines a 
well-behaved J2EE application on Tomcat. The only residue is what was the app 
doing in terms of further network connections: databases? JDBC, file uploads, 
web services, etc. HTH.

Scott McClanahan wrote ..
 Is there any difference between an undeploy and a stop of a web
 application other than the fact that an undeploy removes the application
 contents from the file system?  Is there any type of additional clean up
 of sessions or objects that occur during an undeploy that don't occur
 during a stop of a web application?  Thanks.
 
 
 -
 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]



Re: Tomcat Performance

2008-01-31 Thread David Brown
Hello Peter, Wow! this is good stuff: exactly what I needed. I feel sorry for 
the client when they see that first baseline! Thank you! David.

Peter Lin wrote ..
 from past experience, it's much better to use hardware load balancing. At a
 previous job, we had any where from 12-24 servers load balanced behind a
 cisco local director.
 
 Any load balancing router today can do the job, it doesn't have to be
 cisco.  What I did in the past was to take production logs and run them in
 jmeter against a cluster of tomcat servers. All the servers were behind the
 load balancer.
 
 After the test was run, we collected the logs to make sure the load was
 distributed evenly and we generated reports. From those reports, we compared
 the results of the new system against the system we were replacing.
 
 That established the baseline performance for untuned tomcat. I then spent a
 week going through 10 different jvm settings and running a full set of
 benchmarks on each. At the end I looked at what concurrent loads the entire
 system needed to support and chose the settings that match those needs. In
 my test suite, I varied the number of concurrent connections, think time
 between requests, ramp up time and a mix of requests.
 
 the key to tuning the system correctly is understanding exactly what kind of
 traffic you expect. of course that isn't always possible, so you might have
 to take a guess.
 
 peter
 
 On 1/30/08, David Brown [EMAIL PROTECTED] wrote:
 
  Hello Andrew, reading your email, Alan's email and the Mladen email piqued
  my interest because I am currently working on a gig to improve the
  performance and monitoring of two Tomcat instances supporting 3 web
  applications and one web service. I am inclined to agree with Alan. And, did
  you read the ML replies to the Xmx and Xms Subject line emails? I must agree
  with the ML contributors that answered the email named in the previous
  sentence: baseline test, apply Eden parameters to the JVM then monitor the
  results of the load testing. Once you have all your monitoring results
  including logs the next step is to create a new metric by comparing the
  newly acquired data to your initial baseline test. There are very good
  points made on both sides but I have to believe that Tomcat tuning a priori
  is like trying to predict the weather. In my gig there are too many unknowns
  to resolve:
  (1) this is a legacy system which means differing verions of JDKs, Tomcat
  instances, web apps or web services built with framework versions no longer
  supported e.g. AXIS 1.3.
  (2) Commercial vendors that have taken FOSS and re-packaged it as
  proprietary software and as a result there is no direct support from the
  vendors for: SLA source code or updated binaries that were written in this
  century.
  (3) I know my client wants everything upgraded and migrated if possible
  when in reality I will have to improve the monitoring and performance issues
  with the current servlet containers, web services and network topology as it
  stands now.
 
  I know the rest of the world is moving away from clustering (horizontal
  scaling) and more toward virtualization (vertical scaling). In my case I
  will have to settle for horizontal scaling and the Tomcat software load
  balancing. I welcome anyone wanting to expound on Tomcat load balancing:
  say, a comparison between Tomcat JK connector load balancing and using an
  appliance like Big IP.
 
  Like you Andrew I would cheer a calculated solution if it existed: just
  dump in the number of nodes, instances, network(s), applications, web
  services, bandwidth and client users and viola! out comes the network
  diagram with annotations. Discussion, suggestions, advice, solutions, rants
  and raves welcomed.
 
  Andrew Hole wrote ..
   Hello
  
   I read an interesting document from Mladen Turk (with whom I want to
  speak
   directly, but I don't know direct contact) that there is a formula to
   calculate the number of concurrent request:
   http://people.apache.org/~mturk/docs/article/ftwai.html
  
   Calculating Load
  
   When determining the number of Tomcat servers that you will need to
  satisfy
   the client load, the first and major task is determining the Average
   Application Response Time (hereafter AART). As said before, to satisfy
  the
   user experience the application has to respond within half of second.
  The
   content received by the client browser usually triggers couple of
  physical
   requests to the Web server (e.g. images). The web page usually consists
  of
   html and image data, so client issues a series of requests, and the time
   that all this gets processed and delivered is called AART. To get most
  out
   of Tomcat you should limit the number of concurrent requests to 200 per
  CPU.
  
   So we can come with the simple formula to calculate the maximum number
  of
   concurrent connections a physical box can handle:
  
 500
   Concurrent

Re: TomCat Learning

2008-01-31 Thread David Brown
Your are in basically the right spot. I have used TC for years and I am not 
sure if there are any books that can help. My experience with any type of 
Java/J2EE and related books are most books are outdated by the time you read 
them. The only exception is: I wished Peter Lin would get his book (JMeter) out 
or something close to it. I know doco is hard to chew down but you will just 
have to start reading and mostly begin working with TC somewhere private and 
expect a lot of problems and things-not-understood and requests to MLs like 
this one. One ML etiquette tip: complement your requests or issues with a 
laundry list of info such that the folks that know what they are doing will 
have something to analyze. In this way they will be more motivate to help you 
with your problems.

OS: Debian 3.1, Solaris 10.x, Windows XP SP2, Windows 2003 server SP1
JDK: 1.3.x, 1.4.x
TC: 4.x and 5.x
Apps: JPetstore, Apache AXIS 2.0
Logs: log4j, commons-logging (examples)
Properties files: weblogic.properties
XML config: server.xml, web.xml, application.xml

(you get the idea).

aum kumar wrote ..
  Hi all,
 
 I am a java based developer used tomcat for the development purpose.but onlu
 know abt it in limited manner,i mean to say wat i have to use.
 
 Now i have some individual projects to develop and i have to do all by my
 own so i need to learn abt the tomcat in details.
 
 can some body help me to tell me abt the books or resources so that i can
 get involved in it.i also wana to use the documnetation but i thik u need to
 know a bit before u start with documentation.
 
 any help in this regard will be much appriciated.
 
 
 Thanks
 aum

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



Re: Tomcat Performance

2008-01-30 Thread David Brown
Hello Andrew, reading your email, Alan's email and the Mladen email piqued my 
interest because I am currently working on a gig to improve the performance and 
monitoring of two Tomcat instances supporting 3 web applications and one web 
service. I am inclined to agree with Alan. And, did you read the ML replies to 
the Xmx and Xms Subject line emails? I must agree with the ML contributors that 
answered the email named in the previous sentence: baseline test, apply Eden 
parameters to the JVM then monitor the results of the load testing. Once you 
have all your monitoring results including logs the next step is to create a 
new metric by comparing the newly acquired data to your initial baseline test. 
There are very good points made on both sides but I have to believe that Tomcat 
tuning a priori is like trying to predict the weather. In my gig there are too 
many unknowns to resolve: 
(1) this is a legacy system which means differing verions of JDKs, Tomcat 
instances, web apps or web services built with framework versions no longer 
supported e.g. AXIS 1.3. 
(2) Commercial vendors that have taken FOSS and re-packaged it as proprietary 
software and as a result there is no direct support from the vendors for: SLA 
source code or updated binaries that were written in this century.
(3) I know my client wants everything upgraded and migrated if possible when in 
reality I will have to improve the monitoring and performance issues with the 
current servlet containers, web services and network topology as it stands now.

I know the rest of the world is moving away from clustering (horizontal 
scaling) and more toward virtualization (vertical scaling). In my case I will 
have to settle for horizontal scaling and the Tomcat software load balancing. I 
welcome anyone wanting to expound on Tomcat load balancing: say, a comparison 
between Tomcat JK connector load balancing and using an appliance like Big IP.

Like you Andrew I would cheer a calculated solution if it existed: just dump 
in the number of nodes, instances, network(s), applications, web services, 
bandwidth and client users and viola! out comes the network diagram with 
annotations. Discussion, suggestions, advice, solutions, rants and raves 
welcomed.

Andrew Hole wrote ..
 Hello
 
 I read an interesting document from Mladen Turk (with whom I want to speak
 directly, but I don't know direct contact) that there is a formula to
 calculate the number of concurrent request:
 http://people.apache.org/~mturk/docs/article/ftwai.html
 
 Calculating Load
 
 When determining the number of Tomcat servers that you will need to satisfy
 the client load, the first and major task is determining the Average
 Application Response Time (hereafter AART). As said before, to satisfy the
 user experience the application has to respond within half of second. The
 content received by the client browser usually triggers couple of physical
 requests to the Web server (e.g. images). The web page usually consists of
 html and image data, so client issues a series of requests, and the time
 that all this gets processed and delivered is called AART. To get most out
 of Tomcat you should limit the number of concurrent requests to 200 per CPU.
 
 So we can come with the simple formula to calculate the maximum number of
 concurrent connections a physical box can handle:
 
   500
 Concurrent requests = ( -- max 200 ) * Number of CPU's
 AART (ms)
 
 The other thing that you must care is the Network throughput between the Web
 server and Tomcat instances. This introduces a new variable called Average
 Application Response Size (hereafter AARS), that is the number of bytes of
 all context on a web page presented to the user. On a standard 100Mbps
 network card with 8 Bits per Byte, the maximum theoretical throughput is
 12.5 MBytes.
 
12500
 Concurrent requests = ---
 AARS (KBytes)
 
 For a 20KB AARS this will give a theoretical maximum of 625 concurrent
 requests. You can add more cards or use faster 1Gbps hardware if need to
 handle more load.
 
 The formulas above will give you rudimentary estimation of the number of
 Tomcat boxes and CPU's that you will need to handle the desired number of
 concurrent client requests. If you have to deploy the configuration without
 having actual hardware, the closest you can get is to measure the AART on a
 test platform and then compare the hardware vendor Specmarks.
 
 I would like to launch a discussion on the validity of this formula and, in
 case of inappropriate, to try to get a more accurate formula.
 
 Thanks a lot

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



Re: Tomcat Performance Question

2008-01-26 Thread David Brown
Hello Ali, please find included below a link URL that addresses the JSF 
performance issue. A much more rigorous test would be to use the JMeter 
distributed testing using the JMeter server. HTH, David.

Ali Ok wrote ..
 Hi,
 
 We are building a web application with JSF. Last day I tested it with
 JMeter. Results are bad (I guess).
 
 Then I tried to send 3 requests with JMeter to Shuffle Example in
 Tomcat's examples directory with a limited size of (256 MB I think) memory
 resource given to Tomcat. This Shuffle Example does not query database or
 does not make complicated operations as you know; it is very simple.
 
 Question is, what should I expect? Does it have to respond all requests? Or
 is it normal to throw an exception about Too many open files (I use NIO
 connector) and finally OutOfMemoryError and parachute-thing?
 
 After I solve this, I can go on to JSF application testing.
 
 
 I couldnt find documents enough about this issue. Can you send me some
 links?
 
 Thanks in advance.

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



Re: Tomcat Performance Question

2008-01-26 Thread David Brown
Hello Ali, there are no absolute benchmarks for what you are looking for. The 
central theme to any performance questions invariably lead to the A word 
(Architecture). You need to evaluate you overall architecture from a high level 
perspective. With this said the questions then are:
* What is your planned network topology once you go to production? This 
question naturally leads to what is your hosting options? If you   have a 
datacenter and have configured and installed your own servers is the best. Next 
option is to build your servers and then co-locate. The least advantageous 
option is renting servers (serverbeach.com etc.). If you are hosting locally 
what is your upstream provider? (fat pipe) and type of connection: T1, T3, OC1, 
OC3 etc.
* Type of scaling (horizontal vs vertical)
* Invariably performance issues are rarely a result of the web container 
(Tomcat). You need to look at the developed software (dot).war that is deployed 
on TC (use JMeter or some recognized software testing tools).
* I have worked on high volume financial web applications that are running at 3 
to 4000 transactions/sec. A transaction is end-to-end a round-trip time 
starting with the HTTP connection, processing and connection to the backend DB, 
query results returned and subsequently a results web page displayed. This is a 
HTTP get, put or post transaction.
* You are hitting your TC with 3 transactions with a ramp up speed of 10 
seconds so you are at 3000/sec. If as you say the web container is not handling 
this you still need to look at what you web application is doing.

Ultimately, using JMeter you need to look here:
http://wiki.apache.org/jakarta-jmeter/

A expert in this area is Peter Lin:
http://tomcat.apache.org/articles/performance.pdf

The JMeter has specific JSF testing reading:
http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter

Ali Ok wrote ..
 Thanks David,
 
 I mean, if I make 3 requests in a very short time (about 10 seconds);
 Tomcat does not respond.
 I read books, tutorials, faqs and threads at maling list about Tomcat
 tuning. But I couldnt find an example server.xml file used in production or
 real test results.
 
 So I cant understand if 3 requests in 10 seconds is normal or not.
 
 
 
 2008/1/26, David Brown [EMAIL PROTECTED]:
 
  Hello Ali, please find included below a link URL that addresses the JSF
  performance issue. A much more rigorous test would be to use the JMeter
  distributed testing using the JMeter server. HTH, David.
 
  Ali Ok wrote ..
   Hi,
  
   We are building a web application with JSF. Last day I tested it with
   JMeter. Results are bad (I guess).
  
   Then I tried to send 3 requests with JMeter to Shuffle Example in
   Tomcat's examples directory with a limited size of (256 MB I think)
  memory
   resource given to Tomcat. This Shuffle Example does not query database
  or
   does not make complicated operations as you know; it is very simple.
  
   Question is, what should I expect? Does it have to respond all requests?
  Or
   is it normal to throw an exception about Too many open files (I use
  NIO
   connector) and finally OutOfMemoryError and parachute-thing?
  
   After I solve this, I can go on to JSF application testing.
  
  
   I couldnt find documents enough about this issue. Can you send me some
   links?
  
   Thanks in advance.
 
  -
  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]



Re: Tomcat installation/deployment question

2008-01-24 Thread David Brown
Hello Sushil, IMHO: ANT 1.7 has much improved deployment features in the area 
of remote distributed deployments.

Sureka, Sushil wrote ..
 
 
 
   Hi,

   We are intending to deploy our application on individual laptops
 (to be used by field personnel who does not have internet connectivity
 to connect to our central server). The idea is that a trimmed down
 version of our core application will be deployed on individual laptops
 running tomcat against a light weight Sybase database.

   I wanted to see if you had any suggestions about - 
   1. How best to deploy the initial version (5.5) of Tomcat on
 individual machines  - We understand our options are Microsoft SMS, Java
 Web Start application, shell script or Ant script to install Tomcat on
 these laptop boxes. We are leaning towards Microsoft SMS since 
   (a) It can easily mass deploy the app to hundreds of machine
   (b) It is currently used in our organization to deploy some asp
 application. 
   If you believe there are downsides to this approach or other
 approaches are better please let me know

   2. How best to deploy the upgraded version (6.x or higher) - We
 potentially could use the same approach as the first one, but wanted to
 see if the opinion differs.

   3. And finally the rollout of initial app and upgraded app
 version. Again probably use the same approach as before but wanted to
 throw this out there in case there are better ideas.

   Please let me know your thoughts on this.

   Sushil

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



Re: how to install tomcat on iseries AS400

2008-01-23 Thread David Brown
Hello Vida, back in 1998 I had to install Java classes on an AS400. The IBM 
boxes do not have hierarchical file systems such as: UNIX/Linux/Windows.IBM 
uses some type of formatted file system using HEADS, CYLINDERS and TRACKS. In 
'98 IBM provided something called the Q shell and a green screen terminal 
window from whence to issue commands: define classpath, java and javac path 
etc. That was then. In all-likelihood you will need to get an IBM green screen 
session going if the iSeries interface does not have something already 
available for such purposes. My money is on digging into the iSeries features. 
HTH, David.

Vida Luz Arista wrote ..
 Hi All,
 
 I have experience installaing apache-tomcat on Linux, but now I need
 to install apache-tomcat on AS400, the operate syste is V5R4M0.
 
 I need a guide, somebody can help me ?
 
 Regards.
 
 -
 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]



Re: [!! SPAM] Re: how to communicate between different tomcat servers

2008-01-22 Thread David Brown
Hello, are talking about between TC instances or one or more applications 
(dot).war deployed under one or more TC instances?

Christopher Schultz wrote ..
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Frank,
 
 frank wrote:
 | I try to arrange all the services on one webserver, anyway if it need
 | to be devided into several servers, I have to find a way to communicate
 | between the servers, and I may use JMS or RMI to implement this. How
 | about the diffierence between JMS and RMI?
 
 RMI is used for passing objects (and issuing remote method calls), while
 JMS is used more for passing messages. JMS can be used to bridge
 between Java and other languages, since IIRC the messages can be
 transformed to some other format (like MQ, etc.). With RMI, you're stuck
 with Java.
 
 RMI has always seemed to be a PITA to me. I don't think either of these
 technologies are the way you really want to go.
 
 I think the best thing for you to do is either store the information in
 a shared database (or not) and then trade keys (or whole data sets)
 through SOAP or REST-based services.
 
 - -chris
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkeWEEUACgkQ9CaO5/Lv0PBOWwCeM3SI4hwm4sN2x318YnT/6xD+
 xjMAmwcyH2S98z592er4TsBsadMedcRg
 =PFle
 -END PGP SIGNATURE-
 
 -
 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]



Re: Tomcat 5.5 won't start up anymore after adding/removing webapps

2008-01-22 Thread David Brown
Usually in the past web based deployment/undeployment has been through the 
manager app and not the admin app. The work directory is only for the 
compilation of the JSP. Can you deploy using ANT? Please reply with more info 
and maybe you will get a better response:

OS: type/version
JDK: version
Install dir: (path) c:\Apache Tomcat\whatever or /usr/local/Apache...
JAVA_HOME: path
CATALINA_HOME: path
CLASSPATH: path
ANT_HOME: path

Karr, David wrote ..
 I installed v5.5.25.  I installed the admin app (although the
 instructions on doing this seem uncertain).  I used it for a few hours,
 deploying and undeploying some experimental apps using MyFaces and
 RichFaces.  Now, for some reason, I'm finding that Tomcat won't start up
 at all, and I've undeployed all the apps (except the admin app) that I
 had deployed.  I first only removed the war and exploded dir from the
 webapps dir, but then I tried removing them from the
 work/Catalina/localhost directory also.
 
 The error I'm seeing in the localhost log is this:
 
 java.lang.ClassNotFoundException:
 org.apache.myfaces.webapp.StartupServletContextListener
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
 .java:1362)
   at
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader
 .java:1208)
   at
 org.apache.catalina.core.StandardContext.listenerStart(StandardContext.j
 ava:3712)
   at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4216
 )
 
 Obviously, since something is still trying to reference MyFaces, there's
 some remnant of one of my deployed apps lying around in a place that I'm
 not aware of.
 
 -
 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]



Redeploy a war file

2008-01-22 Thread David Brown
Try to export your Eclipse project as an ANT build.xml. Edit the build.xml to 
perform ANT deployment upon successful command-line build of your project.

Chris Riekenberg wrote ..
 Hello,
 
 I would like to redeploy my web application as war file, but if I export 
 my project from Eclipse
 he couldn't overwrite the old version in folder webapps. I deployed the 
 library for struts in my project
 and he couldn't delete this while tomcat is running.
 So what can I do to make a redeploy without restarting tomcat?
 
 Server version: Apache Tomcat/5.5.12
 Server number:  5.5.12.0
 OS Name:Windows XP
 OS Version: 5.1
 Architecture:   x86
 
 
 Thanks
 chris
 
 -
 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]



Re: help with tomcat thread pool

2008-01-21 Thread David Brown
Try jakarta.apache/jmeter

Robson Hermes wrote ..
 Hi
 
 I'm using Tomcat 5.5.17 with jdk 1.5.0_14, and i want to know what is the
 best way to check if the tomcat thread pool is working all right.
 
 I think I have the same problem as reported here:
 http://marc.info/?l=tomcat-userm=117036808932698w=2
 (but the user does not tell how he fixed the problem)
 
 The CPU and MEMORY usage of the server (where tomcat is) are good (low), and
 the database server it's ok too (executing queries on the database console
 is really fast).
 So, I think that the tomcat thread pool aren't working all right.
 I try lambda probe, but it's doesn't show how many threads are blocked (it
 just list, does not count, there are a lot blocked sometimes), and for how
 long they are blocked.
 I am trying jconsole, but the server its on a remote site, when I click on
 the Thread tab, it freezes.
 If there is another way, please tell me.
 
 Thank you

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



Re: Tomcat benchmark

2008-01-21 Thread David Brown
Hello Andrew, if you are looking for comprehensive HW review for particular 
hardware good luck. The following will get you started and a PDF by Peter Lin 
using JMeter is the closest I have seen. HTH, David

http://wiki.apache.org/tomcat/FAQ/Performance_and_Monitoring

Andrew Hole wrote ..
 Hi!
 
 Is there any benchmark test available that allow me to determine the number
 of concurrent requests that Tomcat supports for a particular type of
 hardware?
 
 Thanks a lot

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



Tomcat 4.x, 5.x Client mode vs Server mode and JAVA_OPTS, how-to-know which is running?

2008-01-20 Thread David Brown
Hello TC committers, contributors and users. I am a long time TC user and it is 
the reason I have my current gig. In spite of the length of time using Tomcat I 
was not aware of the Client vs Server mode using the JAVA_OPTS variable in 
catalina or the startup script. Currently, I am using JMeter to assess the 
webapps running under TC. I suspect a lot of my clients problems reside with 
the deployed webapps and not-so-such problems with TC. This being said I would 
like to investigate performance issues with TC i.e. the so-called Client vs 
Server mode. Is there some definitive test to know which mode a currently 
running TC instance is running under? There are 3 instances I have to deal 
with: development deployment, test deployment and production deployment. 
Obviously, I cannot do anything to the  Production app server that would risk 
bouncing or shutting down the box. JMeter monitoring does not work under TC 4.x 
because there is no manager/status page from which to parse the XML 
 data. The currently running TC instances are deployed as Services under Windoe 
2003 servers. I examied the properties dialog boxes from the Services 
application and I do not see any reference to JAVA_OPTS or any type of startup 
params. If anyone has TC Client vs Server mode expertise or if you just want to 
rant and rave please reply. The particulars follow. Thanks, David.

OS: Windows 2003 server SP1
TC: 4.x and 5.x
JDK: 1.3.x and 1.4.x
Deployed as a service in all instances.

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



Re: file not found

2007-04-22 Thread David Brown

Do you have an |IndexIgnore *.html directive in your apache conf ?|

Richard Dunne wrote:
I am having a problem with an html file.  In my project folder I have html, javascript and php files.  When I go to http://localhost/ProjectFolder/ All the files are listed except for 1 html file.  stopping and restarting the apache2 server has no effect, it still will not show up in the list of files.   does anyone know waht might be causing this?  


Richard.

__
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]



Re: 404 and originally requested URL

2007-04-18 Thread David Brown

What does the referrer request header give you ?

Propes, Barry L wrote:

did you check your logs? Did they tell you anything?

-Original Message-
From: Guilhem SEMPERE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 10:00 AM
To: users@tomcat.apache.org
Subject: 404 and originally requested URL


Hi

I am using Tomcat 5.5, having set it up so that any 404 error redirects 
to a 404.jsp I have written for custom handling.


Now I need access to the originally requested URL (the one which 
couldn't be found).  I couldn't find a way to do this.  All info I can 
get is that the requested URL is now 404.jsp, which I am not interested in.


Any help much appreciated.  Thanks in advance,

Guilhem


-
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]


  


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



Vista client problem

2007-04-17 Thread David Brown
I've been having the most peculiar issue on a website, (Ubuntu server, 
running apache 2.2 / libapache2-mod-jk / tomcat 5.5).


I initially thought the issue was to do with my servlet not sending 
proper response headers but it turns out its specific to Mod-JK,  the 
problem only occurs on a Vista workstation.


I have a specific JSP page which returns encrypted text data 
representing a certain configuration item for a user. 

When the I call the url which returns this page on Vista, from either 
I.E. Firefox or even Telnet!  -   The download starts then progressively 
slows down until it stops..  The downloads only around 40k but never 
finishes. 

If I try the same call to the URL from XP or Linux, firefox or I.E, it 
works fine.


When I bypass Apache  Mod-JK and call the url directly from tomcat, 
i.e. on port 8080, it works fine.

IF I call the URL via HTTPS, it works fine.

The problem only occurs when the request is being process through Mod-JK. 

Does anyone have any idea what could be causing the problem ?  I'm using 
a very straightforward Mod-JK setup.


my jk.conf is as follows..

IfModule !mod_jk.c
 LoadModule jk_module mod_jk.so
/IfModule

JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkShmFile /var/log/apache2/jk-runtime-status
JkLogLevel warn


and in workers.properties;
 workers.tomcat_home=/usr/local/tomcat
 workers.java_home=java-1.5.0-sun-1.5.0.08
 ps=/
 worker.list=shibboleth

 # Definition for local worker using AJP 1.3
 #
 worker.shibboleth.type=ajp13
 worker.shibboleth.host=localhost
 worker.shibboleth.port=8009



If anyone has any thoughts/hints of where I could look it wouldbe 
greatly appreciated..


Thanks,

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



Re: Vista client problem

2007-04-17 Thread David Brown
Binary content / All other parts of the site work fine. 

This jsp contains nothing but garbled text , E.G. 
a$HHajshdashjk^SDAH*HAD
But thats fine, thats intended.  The problem is the transfer. I've tried 
different content-types, text/plain/ application, all with the same problem.


Whats actually happening behind the scenes it appears, is that there is 
an initial transfer of about 5 or 6k, then another of about 70 bytes, 
then 69 bytes, then 68 bytes and so on until it stops(but doesnt end).


Dave




Mladen Turk wrote:

David Brown wrote:
I've been having the most peculiar issue on a website, (Ubuntu 
server, running apache 2.2 / libapache2-mod-jk / tomcat 5.5).



The problem only occurs when the request is being process through 
Mod-JK.

Does anyone have any idea what could be causing the problem ?


Yes, Windows Vista ;)

Seriously, your question makes no sense.
You said the content is encrypted by your .jsp but it somehow
slows in any browser (you mentioned Firefox as well)
How about binary content, images for example, are they shown on
Vista clients? Are you setting mime type?

Regards,
Mladen.

-
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]



Re: AW: Vista client problem

2007-04-17 Thread David Brown
Yeah tried all that,   but really that shouldnt make a difference, its 
something lower level.  As the request is over port 80, and it does start.



Konstantin Breu wrote:

Have you tried to stop the firewall(s), virus scanners,... at the vista
client? You could do that and repeat your test. 


HTH

Cheers,
Konstantin


-Ursprüngliche Nachricht-
Von: David Brown [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 17. April 2007 18:47

An: Tomcat Users List
Betreff: Re: Vista client problem

Binary content / All other parts of the site work fine. 

This jsp contains nothing but garbled text , E.G. 
a$HHajshdashjk^SDAH*HAD
But thats fine, thats intended.  The problem is the transfer. I've tried 
different content-types, text/plain/ application, all with the same problem.


Whats actually happening behind the scenes it appears, is that there is 
an initial transfer of about 5 or 6k, then another of about 70 bytes, 
then 69 bytes, then 68 bytes and so on until it stops(but doesnt end).


Dave




Mladen Turk wrote:
  

David Brown wrote:

I've been having the most peculiar issue on a website, (Ubuntu 
server, running apache 2.2 / libapache2-mod-jk / tomcat 5.5).



The problem only occurs when the request is being process through 
Mod-JK.

Does anyone have any idea what could be causing the problem ?
  

Yes, Windows Vista ;)

Seriously, your question makes no sense.
You said the content is encrypted by your .jsp but it somehow
slows in any browser (you mentioned Firefox as well)
How about binary content, images for example, are they shown on
Vista clients? Are you setting mime type?

Regards,
Mladen.

-
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]


-
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]



Re: Vista client problem

2007-04-17 Thread David Brown

Can Mod-JK interfere with the headers ?

If it was a header issue, I think the problem would be there constantly, 
not just when the request has to go through mod-jk.


I'll have a look though, might give me a pointer

Gregor Schneider wrote:

Try FirwFox LiveHTTPHeaders-Extension and see what the Headers are saying

Cheers

Greg


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