Tomcat 5.5.20 Stops Responding

2007-09-26 Thread Etienne Lacombe
Hello,

Setup
   Linux
   Tomcat 5.5.20
   Java 1.6

I would like some help in locating the cause of a problem on a Tomcat 5.5.20
server.

The server runs fine for some days and then suddenly stops responding to
requests - the client's browser waits for a respond and times out. 

On the server, there is no CPU usage. However, when trying to access any of
the webapps, including the Manager, they all time out.

We tried connecting to the JVM using the JConsole and we don't get a response
to that either.

I went through all the log files and could not find any significant error (no
out-of-memory, etc). Only a few error in our program but nothing that would
cause the whole server to freeze up. There were a few socket connection error
but they were not near the time of the freeze per what I could see.

If anybody could help me by directing me to what else I should look for, that
would be greatly appreciated!


Etienne

-
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: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Daniel M Garland

My full  element then:

autoDeploy="true">

 
 debug="0" />

 www.myvirtualhost.com
 subdomain.myvirtualhost.com

 className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"


managerClassName="org.apache.catalina.cluster.session.DeltaManager"
 expireSessionsOnShutdown="false"
 useDirtyFlag="true"
 notifyListenersOnReplication="true">







className="org.apache.catalina.cluster.tcp.ReplicationValve"


filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;"/>

className="org.apache.catalina.cluster.session.ClusterSessionListener"/>


  

Any ideas?

Pid wrote:

Daniel M Garland wrote:

Hello,

I have a virtual host configured on my Tomcat 5.5.20 cluster installation.

In my server.xml, I have




What config do you have in your Context(s)?

p


And yet if I copy in a new war file (I'm using ant's deploy task) I
don't see any changes to my webapp. If I look at the individual server's
webapp via the manager application, I see the changes; but I don't see
any changes by looking at the virtual host address until I restart Tomcat.

Why?

Thanks in advance.
Dan Garland
[EMAIL PROTECTED]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__




__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


-
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.20 Stops Responding

2007-09-26 Thread Franck Borel

Hi Etienne,



Etienne Lacombe schrieb:

Hello,

Setup
   Linux
   Tomcat 5.5.20
   Java 1.6


Two ideas:
(1) I am not shure if Tomcat 5.5.20 is compatible with Java 1.6.
(2) Turn on the AccessLogValve in your server.xml config file, so you can see if 
the client requests attain your Tomcat. If not I would assume this has nothing 
to do with Tomcat. So I would check the firewall.


-- Franck


I would like some help in locating the cause of a problem on a Tomcat 5.5.20
server.

The server runs fine for some days and then suddenly stops responding to
requests - the client's browser waits for a respond and times out. 


On the server, there is no CPU usage. However, when trying to access any of
the webapps, including the Manager, they all time out.

We tried connecting to the JVM using the JConsole and we don't get a response
to that either.

I went through all the log files and could not find any significant error (no
out-of-memory, etc). Only a few error in our program but nothing that would
cause the whole server to freeze up. There were a few socket connection error
but they were not near the time of the freeze per what I could see.

If anybody could help me by directing me to what else I should look for, that
would be greatly appreciated!


Etienne

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




--

Beste Grüße

Franck Borel

**
Dipl.-Hyd. Franck BorelTelefon: +49[0]761-203 3908
Universitätsbibliothek Fax: +49[0]761-203 3987
Werthmannsplatz 2  E-Mail : [EMAIL PROTECTED]
   WWW: http://www.ub.uni-freiburg.de
D-79098 Freiburg
**


-
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: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Pid
Daniel M Garland wrote:
> My full  element then:

yeah...

remove the context defs from server.xml and put them in
META-INF/context.xml, which is a dir/file inside your webapp.

this method of defining contexts is not encouraged, because you have to
restart the server to reload the config, amongst other reasons.

the default web app is called ROOT.war, your other one would be
asmalljspapp.war. put both files in the appBase dir.

when it unpacks, it'll drop the contexts like so:

appBase/ROOT/META-INF/context.xml
appBase/asmalljspapp/META-INF/context.xml

i strongly recommend that you have a read of the Context config stuff in
the docs.  you'll need to set reloadable="true".

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html


p



>  autoDeploy="true">
>  
>   debug="0" />
>  www.myvirtualhost.com
>  subdomain.myvirtualhost.com
> 
>   className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
> 
> managerClassName="org.apache.catalina.cluster.session.DeltaManager"
>  expireSessionsOnShutdown="false"
>  useDirtyFlag="true"
>  notifyListenersOnReplication="true">
> 
>  className="org.apache.catalina.cluster.mcast.McastService"
> mcastAddr="228.0.0.5"
> mcastPort="45565"
> mcastFrequency="500"
> mcastDropTime="3000"/>
> 
>  
> className="org.apache.catalina.cluster.tcp.ReplicationListener"
> tcpListenAddress="10.78.1.43"
> tcpListenPort="4002"
> tcpSelectorTimeout="100"
> tcpThreadCount="6"/>
> 
>  
> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
> replicationMode="pooled"
> ackTimeout="15000"
> stateTransferTimeout="45"
> waitForAck="true"/>
> 
>  className="org.apache.catalina.cluster.tcp.ReplicationValve"
> 
> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;"/>
> 
>  className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
> 
>   
> 
> Any ideas?
> 
> Pid wrote:
>> Daniel M Garland wrote:
>>> Hello,
>>>
>>> I have a virtual host configured on my Tomcat 5.5.20 cluster
>>> installation.
>>>
>>> In my server.xml, I have
>>>
>>> >> autoDeploy="true">
>>
>> What config do you have in your Context(s)?
>>
>> p
>>
>>> And yet if I copy in a new war file (I'm using ant's deploy task) I
>>> don't see any changes to my webapp. If I look at the individual server's
>>> webapp via the manager application, I see the changes; but I don't see
>>> any changes by looking at the virtual host address until I restart
>>> Tomcat.
>>>
>>> Why?
>>>
>>> Thanks in advance.
>>> Dan Garland
>>> [EMAIL PROTECTED]
>>>
>>> __
>>> This email has been scanned by the MessageLabs Email Security System.
>>> For more information please visit http://www.messagelabs.com/email
>>> __
>>>
>>> -
>>> 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]
>>
>>
>> __
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> __
>>
> 
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
> 
> -
> 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]



HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Hello!

I'm getting the following error:

"HTTP/1.1 400 no host matches server name myserver"

Why this happens?

workers.properties
# --
# Load Balancer worker PFH
# --
worker.pfhbalancer.type= lb
worker.pfhbalancer.balanced_workers= upg4out,upg7out

# 
# First worker
# 
worker.upg4out.port= 8060
worker.upg4out.host= localhost
worker.upg4out.type= ajp13

# 
# Second worker
# 
worker.upg7out.port= 8075
worker.upg7out.host= localhost
worker.upg7out.type= ajp13

httpd.conf
JkMount /outpat/gateway  pfhbalancer
JkMount /outpat/ehrviewer/* vwbalancer

-
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: HTTP/1.1 400 no host matches server name

2007-09-26 Thread David Delbecq
In your server.xml, you probably have configured a host (probably
www.server.domain) but didn't configure the host (server).
If you don't use host aliasing (that is different webapsp for different
hostname), just configure a default host.


En l'instant précis du 26/09/07 12:14, Andrew Hole s'exprimait en ces
termes:
> Hello!
>
> I'm getting the following error:
>
> "HTTP/1.1 400 no host matches server name myserver"
>
> Why this happens?
>
> workers.properties
> # --
> # Load Balancer worker PFH
> # --
> worker.pfhbalancer.type= lb
> worker.pfhbalancer.balanced_workers= upg4out,upg7out
>
> # 
> # First worker
> # 
> worker.upg4out.port= 8060
> worker.upg4out.host= localhost
> worker.upg4out.type= ajp13
>
> # 
> # Second worker
> # 
> worker.upg7out.port= 8075
> worker.upg7out.host= localhost
> worker.upg7out.type= ajp13
>
> httpd.conf
> JkMount /outpat/gateway  pfhbalancer
> JkMount /outpat/ehrviewer/* vwbalancer
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>   


-- 
http://www.noooxml.org/


-
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: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
This is output from mod_jk debug:

[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c
(545): Found an exact match pfhbalancer -> /outpat/gateway
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (1832): Into
handler jakarta-servlet worker=pfhbalancer r->proxyreq=0
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_worker.c (111):
found a worker pfhbalancer
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (531): Service
protocol=HTTP/1.1 method=GET host=(null) addrr=192.168.2.52
name=devwin01 port=80 auth=(null) user=(null) laddr=192.168.1.204
raddr=192.168.2.52
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (628):
service sticky_session=1
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (538):
total sessionid is EB1EE907B4E84B633C20328CD4FF7F52
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (548):
searching worker for partial sessionid
EB1EE907B4E84B633C20328CD4FF7F52
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (600):
found best worker upg4out (upg4out) using method 'Request'
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (2164):
acquired connection pool slot=0
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (648):
service worker=upg4out jvm_route=upg4out
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (566):
ajp marshaling done
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1698):
processing upg4out with 2 retries
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (329):
socket TCP_NODELAY set to On
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (427):
trying to connect socket 2784 to 127.0.0.1:8060
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (453):
socket 2784 connected to 127.0.0.1:8060
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (864):
Connected socket 2784 to (127.0.0.1:8060)
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
sending to ajp13 pos=4 len=513 max=8192
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
12 34 01 FD 02 02 00 08 48 54 54 50 2F 31 2E 31  -
.4..HTTP/1.1
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
001000 00 0F 2F 6F 75 74 70 61 74 2F 67 61 74 65 77  -
.../outpat/gatew
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
002061 79 00 00 0C 31 39 32 2E 31 36 38 2E 32 2E 35  -
ay...192.168.2.5
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
003032 00 FF FF 00 08 64 65 76 77 69 6E 30 31 00 00  -
2.devwin01..
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
004050 00 00 0B A0 0B 00 08 64 65 76 77 69 6E 30 31  -
P...devwin01
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
005000 A0 0E 00 5A 4D 6F 7A 69 6C 6C 61 2F 35 2E 30  -
ZMozilla/5.0
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
006020 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20 57 69  -
.(Windows;.U;.Wi
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00706E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 70 74  -
ndows.NT.5.1;.pt
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00802D 50 54 3B 20 72 76 3A 31 2E 38 2E 31 2E 37 29  -
-PT;.rv:1.8.1.7)
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
009020 47 65 63 6B 6F 2F 32 30 30 37 30 39 31 34 20  -
.Gecko/20070914.
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00a046 69 72 65 66 6F 78 2F 32 2E 30 2E 30 2E 37 00  -
Firefox/2.0.0.7.
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00b0A0 01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70  -
...ctext/xml,app
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00c06C 69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70  -
lication/xml,app
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00d06C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78  -
lication/xhtml+x
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00e06D 6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30  -
ml,text/html;q=0
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
00f02E 39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D  -
.9,text/plain;q=
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
010030 2E 38 2C 69 6D 61 67 65 2F 70 6E 67 2C 2A 2F  -
0.8,image/png,*/
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
01102A 3B 71 3D 30 2E 35 00 A0 04 00 23 70 74 2D 70  -
*;q=0.5#pt-p
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
012074 2C 70 74 3B 71 3D 30 2E 38 2C 65 6E 3B 71 3D  -
t,pt;q=0.8,en;q=
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
013030 2E 35 2C 65 6E 2D 75 73 3B 71 3D 30 2E 33 00  -
0.5,en-us;q=0.3.
[Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_a

Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Host name on server.xml:

  wrote:
> This is output from mod_jk debug:
>
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c
> (545): Found an exact match pfhbalancer -> /outpat/gateway
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (1832): Into
> handler jakarta-servlet worker=pfhbalancer r->proxyreq=0
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_worker.c (111):
> found a worker pfhbalancer
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (531): Service
> protocol=HTTP/1.1 method=GET host=(null) addrr=192.168.2.52
> name=devwin01 port=80 auth=(null) user=(null) laddr=192.168.1.204
> raddr=192.168.2.52
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (628):
> service sticky_session=1
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (538):
> total sessionid is EB1EE907B4E84B633C20328CD4FF7F52
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (548):
> searching worker for partial sessionid
> EB1EE907B4E84B633C20328CD4FF7F52
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (600):
> found best worker upg4out (upg4out) using method 'Request'
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (2164):
> acquired connection pool slot=0
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (648):
> service worker=upg4out jvm_route=upg4out
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (566):
> ajp marshaling done
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1698):
> processing upg4out with 2 retries
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (329):
> socket TCP_NODELAY set to On
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (427):
> trying to connect socket 2784 to 127.0.0.1:8060
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (453):
> socket 2784 connected to 127.0.0.1:8060
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (864):
> Connected socket 2784 to (127.0.0.1:8060)
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> sending to ajp13 pos=4 len=513 max=8192
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 12 34 01 FD 02 02 00 08 48 54 54 50 2F 31 2E 31  -
> .4..HTTP/1.1
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 001000 00 0F 2F 6F 75 74 70 61 74 2F 67 61 74 65 77  -
> .../outpat/gatew
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 002061 79 00 00 0C 31 39 32 2E 31 36 38 2E 32 2E 35  -
> ay...192.168.2.5
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 003032 00 FF FF 00 08 64 65 76 77 69 6E 30 31 00 00  -
> 2.devwin01..
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 004050 00 00 0B A0 0B 00 08 64 65 76 77 69 6E 30 31  -
> P...devwin01
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 005000 A0 0E 00 5A 4D 6F 7A 69 6C 6C 61 2F 35 2E 30  -
> ZMozilla/5.0
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 006020 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20 57 69  -
> .(Windows;.U;.Wi
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00706E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 70 74  -
> ndows.NT.5.1;.pt
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00802D 50 54 3B 20 72 76 3A 31 2E 38 2E 31 2E 37 29  -
> -PT;.rv:1.8.1.7)
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 009020 47 65 63 6B 6F 2F 32 30 30 37 30 39 31 34 20  -
> .Gecko/20070914.
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00a046 69 72 65 66 6F 78 2F 32 2E 30 2E 30 2E 37 00  -
> Firefox/2.0.0.7.
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00b0A0 01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70  -
> ...ctext/xml,app
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00c06C 69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70  -
> lication/xml,app
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00d06C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78  -
> lication/xhtml+x
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00e06D 6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30  -
> ml,text/html;q=0
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 00f02E 39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D  -
> .9,text/plain;q=
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 010030 2E 38 2C 69 6D 61 67 65 2F 70 6E 67 2C 2A 2F  -
> 0.8,image/png,*/
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 01102A 3B 71 3D 30 2E 35 00 A0 04 00 23 70 74 2D 70  -
> *;q=0.5#pt-p
> [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> 012074 2C 70 74 3B 71 3D 30 2E 38 2C 65 6E 3B

Java 1.6

2007-09-26 Thread Marco
Hello,

 

I read in previous post today that someone wasn't sure whether Java 1.6 is
compatible with tomcat 5.5.

This is new to me. Does anyone know more about this (more specifically, what
versions of tomcat DO work with SUN jvm 1.6)?

 

 

Regards,

 

Marco.



Re: Java 1.6

2007-09-26 Thread David Smith
I think that was pure speculation.  I use JDK 1.6 w/ Tomcat 5.5 in 
production and have had no issue.


--David

Marco wrote:


Hello,



I read in previous post today that someone wasn't sure whether Java 1.6 is
compatible with tomcat 5.5.

This is new to me. Does anyone know more about this (more specifically, what
versions of tomcat DO work with SUN jvm 1.6)?





Regards,



Marco.


 




-
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: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Do you have some suggestion to solve this problem?

On 9/26/07, Andrew Hole <[EMAIL PROTECTED]> wrote:
> Host name on server.xml:
>
>  
> On 9/26/07, Andrew Hole <[EMAIL PROTECTED]> wrote:
> > This is output from mod_jk debug:
> >
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_uri_worker_map.c
> > (545): Found an exact match pfhbalancer -> /outpat/gateway
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (1832): Into
> > handler jakarta-servlet worker=pfhbalancer r->proxyreq=0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_worker.c (111):
> > found a worker pfhbalancer
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] mod_jk.c (531): Service
> > protocol=HTTP/1.1 method=GET host=(null) addrr=192.168.2.52
> > name=devwin01 port=80 auth=(null) user=(null) laddr=192.168.1.204
> > raddr=192.168.2.52
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (628):
> > service sticky_session=1
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (538):
> > total sessionid is EB1EE907B4E84B633C20328CD4FF7F52
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (548):
> > searching worker for partial sessionid
> > EB1EE907B4E84B633C20328CD4FF7F52
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (600):
> > found best worker upg4out (upg4out) using method 'Request'
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (2164):
> > acquired connection pool slot=0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_lb_worker.c (648):
> > service worker=upg4out jvm_route=upg4out
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (566):
> > ajp marshaling done
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (1698):
> > processing upg4out with 2 retries
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (329):
> > socket TCP_NODELAY set to On
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (427):
> > trying to connect socket 2784 to 127.0.0.1:8060
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_connect.c (453):
> > socket 2784 connected to 127.0.0.1:8060
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (864):
> > Connected socket 2784 to (127.0.0.1:8060)
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > sending to ajp13 pos=4 len=513 max=8192
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 12 34 01 FD 02 02 00 08 48 54 54 50 2F 31 2E 31  -
> > .4..HTTP/1.1
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 001000 00 0F 2F 6F 75 74 70 61 74 2F 67 61 74 65 77  -
> > .../outpat/gatew
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 002061 79 00 00 0C 31 39 32 2E 31 36 38 2E 32 2E 35  -
> > ay...192.168.2.5
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 003032 00 FF FF 00 08 64 65 76 77 69 6E 30 31 00 00  -
> > 2.devwin01..
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 004050 00 00 0B A0 0B 00 08 64 65 76 77 69 6E 30 31  -
> > P...devwin01
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 005000 A0 0E 00 5A 4D 6F 7A 69 6C 6C 61 2F 35 2E 30  -
> > ZMozilla/5.0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 006020 28 57 69 6E 64 6F 77 73 3B 20 55 3B 20 57 69  -
> > .(Windows;.U;.Wi
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00706E 64 6F 77 73 20 4E 54 20 35 2E 31 3B 20 70 74  -
> > ndows.NT.5.1;.pt
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00802D 50 54 3B 20 72 76 3A 31 2E 38 2E 31 2E 37 29  -
> > -PT;.rv:1.8.1.7)
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 009020 47 65 63 6B 6F 2F 32 30 30 37 30 39 31 34 20  -
> > .Gecko/20070914.
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00a046 69 72 65 66 6F 78 2F 32 2E 30 2E 30 2E 37 00  -
> > Firefox/2.0.0.7.
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00b0A0 01 00 63 74 65 78 74 2F 78 6D 6C 2C 61 70 70  -
> > ...ctext/xml,app
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00c06C 69 63 61 74 69 6F 6E 2F 78 6D 6C 2C 61 70 70  -
> > lication/xml,app
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00d06C 69 63 61 74 69 6F 6E 2F 78 68 74 6D 6C 2B 78  -
> > lication/xhtml+x
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00e06D 6C 2C 74 65 78 74 2F 68 74 6D 6C 3B 71 3D 30  -
> > ml,text/html;q=0
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 00f02E 39 2C 74 65 78 74 2F 70 6C 61 69 6E 3B 71 3D  -
> > .9,text/plain;q=
> > [Wed Sep 26 11:30:04 2007] [5724:4032] [debug] jk_ajp_common.c (909):
> > 010030 2E 38 2C 6

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-26 Thread Daniel M Garland

Christopher Schultz wrote:


Is Eclipse re-setting the serialVersionUID for each compile, or do you
have one explicitly set in your code? (Meaning, does the
serialVersionUID ever change?)


Well in Eclipse I said 'add generated ID', but this declares a final 
static long that hasn't changed because the code in the class is the 
same. This long value matches what the Tomcat log says is the 'local' 
class name...





3) I have the same code running on both the Tomcat servers.


Are you sure? Try checking md5sum or sha1sum for the classes in
question. Object serialization should not depend upon the architecture
(that's the whole point), so switching from a 32-bit machine to a 64-bit
one should not have changed anything.


Yeh the MD5Sum matches.

Any other ideas? I've got expireSessionsOnShutdown=false on my Cluster 
element, perhaps when I redeployed the code at some point some old 
session with an old ID is being preserved somehow? I'm not using any 
session persistence either.


Another strange thing is since this started happening I don't ever see 
the session count in the manager app increase above zero, even though if 
I sit in front of the webapp my session is persisted across the 
cluster... weird.


Thanks
Dan

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


-
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.20 Stops Responding

2007-09-26 Thread David Smith

Regarding the ideas:

1. tomcat 5.5 and java 1.6 should be fine together.

2. If all threads are busy, the AccessLogValve may not show anything.

Something _seems_ to be causing your jdk to turn into a zombie.  Sending 
a kill signal to the tomcat process so you get a thread dump is probably 
best. Can you post the last few messages of catalina.out?


--David

Franck Borel wrote:


Hi Etienne,



Etienne Lacombe schrieb:


Hello,

Setup
   Linux
   Tomcat 5.5.20
   Java 1.6



Two ideas:
(1) I am not shure if Tomcat 5.5.20 is compatible with Java 1.6.
(2) Turn on the AccessLogValve in your server.xml config file, so you 
can see if the client requests attain your Tomcat. If not I would 
assume this has nothing to do with Tomcat. So I would check the firewall.


-- Franck

I would like some help in locating the cause of a problem on a Tomcat 
5.5.20

server.

The server runs fine for some days and then suddenly stops responding to
requests - the client's browser waits for a respond and times out.
On the server, there is no CPU usage. However, when trying to access 
any of

the webapps, including the Manager, they all time out.

We tried connecting to the JVM using the JConsole and we don't get a 
response

to that either.

I went through all the log files and could not find any significant 
error (no
out-of-memory, etc). Only a few error in our program but nothing that 
would
cause the whole server to freeze up. There were a few socket 
connection error

but they were not near the time of the freeze per what I could see.

If anybody could help me by directing me to what else I should look 
for, that

would be greatly appreciated!


Etienne

-
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: AJP Flush Packet causing text/plain output

2007-09-26 Thread Rémy Maucherat
On 9/24/07, Larry Reisler <[EMAIL PROTECTED]> wrote:
> We recently switched our development JBOSS instance from 4.05GA to 4.21GA

Which AJP connector is used in JBoss exactly ?

Normally, the two connectors in org.apache.coyote.ajp cannot be doing
what you see.

Rémy

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



Setting ClientAuth parameter to true

2007-09-26 Thread Subhash.NarayananDroupathy

Hi,

 

I am unable to set client authentication for SSL in tomcat 5.5.2. I have
generated the certificate for the client and imported the same into the
server's keystore so that the server can verify the client's
certificate. The following is the modification I make on server.xml.

 



 

once this change is done and the server is restarted, I am not able to
hit this url https://localhost:8443  .

 

At the same time, if I change the value of clientAuth back to "false" I
am able to access the url.

 

Can some pls help where I went wrong?

 

Thanks,

-Subhash-



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly 
prohibited and may be unlawful.

Re: Java 1.6

2007-09-26 Thread Pid
David Smith wrote:
> I think that was pure speculation.  I use JDK 1.6 w/ Tomcat 5.5 in
> production and have had no issue.

Likewise, and they go very nicely indeed.

p


> --David
> 
> Marco wrote:
> 
>> Hello,
>>
>>
>>
>> I read in previous post today that someone wasn't sure whether Java
>> 1.6 is
>> compatible with tomcat 5.5.
>>
>> This is new to me. Does anyone know more about this (more
>> specifically, what
>> versions of tomcat DO work with SUN jvm 1.6)?
>>
>>
>>
>>
>>
>> Regards,
>>
>>
>>
>> Marco.
>>
>>
>>  
>>
> 
> 
> -
> 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: Setting ClientAuth parameter to true

2007-09-26 Thread Clinton J. Totten
I am currently doing the samething right now and am able to access porst
8443.  What is the error that you are getting?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 8:31 AM
To: users@tomcat.apache.org
Subject: Setting ClientAuth parameter to true


Hi,

 

I am unable to set client authentication for SSL in tomcat 5.5.2. I have
generated the certificate for the client and imported the same into the
server's keystore so that the server can verify the client's
certificate. The following is the modification I make on server.xml.

 



 

once this change is done and the server is restarted, I am not able to
hit this url https://localhost:8443  .

 

At the same time, if I change the value of clientAuth back to "false" I
am able to access the url.

 

Can some pls help where I went wrong?

 

Thanks,

-Subhash-



This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly 
prohibited and may be unlawful.

-
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: Setting ClientAuth parameter to true

2007-09-26 Thread Clinton J. Totten
>From inspection of your connector properties it looks like your missing
the keystoreType attribute and the truststoreType attribute.  If you
check the documentation via this link
(http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html) it will tell
you what you can have as a value in this field.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 8:31 AM
To: users@tomcat.apache.org
Subject: Setting ClientAuth parameter to true


Hi,

 

I am unable to set client authentication for SSL in tomcat 5.5.2. I have
generated the certificate for the client and imported the same into the
server's keystore so that the server can verify the client's
certificate. The following is the modification I make on server.xml.

 



 

once this change is done and the server is restarted, I am not able to
hit this url https://localhost:8443  .

 

At the same time, if I change the value of clientAuth back to "false" I
am able to access the url.

 

Can some pls help where I went wrong?

 

Thanks,

-Subhash-



This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly 
prohibited and may be unlawful.

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



Filter GET and POST

2007-09-26 Thread Franck Borel

Hi,

i have a problem with an application that only accept GET requests. Now, I would 
like to know, if there is any possibility to write a filter, who is able to 
change the method from POST to GET.


I see that the FORM-Authentication could speek GET after authentication with 
POST method. Is there anybody outwhere, who knows how this was done?


-- Franck

-
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: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Caldarale, Charles R
> From: Daniel M Garland [mailto:[EMAIL PROTECTED] 
> Subject: Re: Virtual Host and dynamic webapp reloading
> 
> 

One other problem: docBase must point to the same directory as appBase.
The result is endless confusion within Tomcat.

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



Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan,

Daniel M Garland wrote:
> Another strange thing is since this started happening I don't ever see
> the session count in the manager app increase above zero, even though if
> I sit in front of the webapp my session is persisted across the
> cluster... weird.

Completely weird. Since we're grasping at straws, are you able to
re-deploy the old Mac servers for testing purposes? I'd be interested to
see if you do a "new" deployment on them if they will act properly.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mLr9CaO5/Lv0PARApsqAKCCBEMOIPHNAQNT1AIP8c61QVXTtwCfS5m4
vMNQ+fJPFlQEIgPOB67JaKc=
=HdeT
-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]



Re: java.net.MalformedURLException: no protocol: Files/thirdparty/TOMCAT/common/classes/

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeffrey,

Jeffrey Nguyen (jeffrngu) wrote:
> common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
> 8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
> lib/*.jar
>
> where "catalina.home" is resolved to "C:/Program
> Files/thirdparty/TOMCAT"
>
> I did some Google search and found some postings similar to the ones
> listed below.  They seem to suggest that I would run into this problem
> if Tomcat was installed under a directory with spaces in it.

Yes, for some reason spaces in path names are frequently the cause of
lots of head-scratching. I'm not sure if it's strictly a win32 issue or
not, but a lot of win32 folks seem to have this problem.

Something you could try is explicitly setting the value of the
CATALINA_HOME environment variable, and be sure to use the
8.3-equivalent of the path for the value. For instance:

set CATALINA_HOME=C:\PROGRA~1\thirdparty\TOMCAT
%CATALINA_HOME%\bin\startup.bat

I realize you might be using Tomcat as a service, so you'll have to
figure out how to get the same effect with the service launcher thing.
Another option, of course, is to install Tomcat into a directory with no
spaces in the path.

Hope that helps,
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mRH9CaO5/Lv0PARAmCJAKCnwaMZ0hFXxHubkPLsUk0z8s3/KACdHN5d
/aLUm/nhKsFfDTZ2JxSFFKE=
=N4rL
-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]



Re: java.net.MalformedURLException: no protocol: Files/thirdparty/TOMCAT/common/classes/

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jeffrey,

Jeffrey Nguyen (jeffrngu) wrote:
> I have a Tomcat servlet which communicates with a stand-alone java
> application using RMI.  I got the above exception whenever my servlet
> makes an RMI call.

Actually, could you post the full stack trace? It might actually be a
bug in Tomcat that treats spaces as delimiters for path elements rather
than the commas that seem to make more sense.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mSx9CaO5/Lv0PARAvibAJ0cyUexARDvn3Ci1yLUGTXkYvCy1gCfYM7h
qKVPboRi2XWQ7PuDB2A1xu0=
=0ijw
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 and 
26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost interface.  
External clients cannot access it anyway.  Easily demonstrated with a 
netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
  

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone 
else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:


According to your log it did not crash. It did shutdown following the
shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh s'exprimait en
ces termes:

  

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has happened 
once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any

other logs regarding this.  How do I find out why my Tomcat crashed?

Thanks

Martin




  


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







--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andrew,

Andrew Hole wrote:
> Do you have some suggestion to solve this problem?

Wow, are you impatient! |p

>> Host name on server.xml:
>>
>>  

The "defaultHost" attribute allows one of your  entries to respond
to any request that does not match one of the other  entries. My
guess is that you have a mismatch between these two.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mYK9CaO5/Lv0PARAnfUAJ9H5RkLy2FTc6izIMeAG+G5iyPizQCfU6j8
DLgWOwiWnd/GeIn8B2GUD+I=
=Zadd
-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]



Migration of Tomcat 3.2 to Tomcat 6.0

2007-09-26 Thread Parandhaman, Vishnu Prasad (STSD)
Hi,
Could anyone point out if there's a practical guide / tip to migrate
from tomcat 3.2 to tomcat 6.0 ?
(had anyone done before)
Basically there are lot of changes between the 3.2 and 6.0 versions in
terms of structure and files. 

Moreover the older tomcat 3.2 was used along with apache (through
mod_jk). 

Now when we start with the new tomcat 6 as a HTTP & Web Server it throws
up a lot of exceptions.

Thanks,
--vishnu



-
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 crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hmm maybe this little bit of extra info helps

Physical Hardware:
656MB RAM
2.4 Ghz Xeon Processor

Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone 
else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
   
According to your log it did not crash. It did shutdown following 
the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:

 

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has happened 
once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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










--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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: Filter GET and POST

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Franck,

Franck Borel wrote:
> i have a problem with an application that only accept GET requests. Now,
> I would like to know, if there is any possibility to write a filter, who
> is able to change the method from POST to GET.

What do you mean by that? Do you just want to change the return value of
HttpServletRequest.getMethod? You can certainly do that easily.

Do you want to convert POST parameters to GET parameters? That is a bit
tougher, but is possible. I'm not sure why you'd want to do this, since
servlets do not really distinguish between GET and POST parameters --
the API abstracts that complexity away from your code.

> I see that the FORM-Authentication could speek GET after authentication
> with POST method. Is there anybody outwhere, who knows how this was done?

Given that the Tomcat source code is available, you could always look in
there for inspiration!

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mbZ9CaO5/Lv0PARApC0AJ4mqO0C9Z35plJvEyE+JJ6zuybO7QCeILmO
a1/C4ydqfh8Ctgz1s5I0GWk=
=dNzE
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Martin Cavanagh wrote:
> Hi guys, I'm still having this problem.
> 
> Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 and
> 26.09.

Strange. What is the uptime of your operating system? Perhaps it's being
rebooted every night?

> We have VM Ware Server as the hardware - could this cause the problem?

Probably not, but if there's some kind of warm backup going on where the
OS is suspended for the backup, you may be running into trouble. VMware
allows the OS to respond to events (such as SUSPEND and RESUME), and
it's possible that your VM is rigged to shut down some services on
SUSPEND. I doubt that very much, but it's certainly possible.

> In the config file there is the standard AJP port (8009) - what does
> this actually do?

If you are using a web server along with Tomcat, the AJP connector
allows the two to speak to one another. If you are using Tomcat all by
itself, you can safely disable this connector.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mfU9CaO5/Lv0PARArvAAJ9xPomWXYlk7a+91+xGUYhQEG653ACgrqVB
YHzpLj93/bqEDS4Tom0j5V4=
=Np9e
-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]



Re: HTTP/1.1 400 no host matches server name

2007-09-26 Thread Andrew Hole
Yes, I have... in defaultHost i have value localhost.

On 9/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Andrew,
>
> Andrew Hole wrote:
> > Do you have some suggestion to solve this problem?
>
> Wow, are you impatient! |p
>
> >> Host name on server.xml:
> >>
> >>  
> Do you also have this?
>
> 
>
> The "defaultHost" attribute allows one of your  entries to respond
> to any request that does not match one of the other  entries. My
> guess is that you have a mismatch between these two.
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG+mYK9CaO5/Lv0PARAnfUAJ9H5RkLy2FTc6izIMeAG+G5iyPizQCfU6j8
> DLgWOwiWnd/GeIn8B2GUD+I=
> =Zadd
> -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 crash @ midnight - but why?

2007-09-26 Thread Franck Borel

Hi Martin,

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 and 
26.09.


We have VM Ware Server as the hardware - could this cause the problem?


What kind of network connection are you using? NAT or Bridge?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


This is a connector, that is used to connect Apache with Tomcat. Are you using 
Apache with Tomcat? If yes look at the log file of your mod_jk 
(C:\apache2\logs\mod_jk.log).



Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23




-- Franck

-
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: Migration of Tomcat 3.2 to Tomcat 6.0

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Vishnu,

Parandhaman, Vishnu Prasad (STSD) wrote:
> Hi,
> Could anyone point out if there's a practical guide / tip to migrate
> from tomcat 3.2 to tomcat 6.0 ?
> ([has] anyone done [this] before)

I don't think anyone has ever made that jump before, so I don't think
there is such a guide out there. We'd appreciate any notes you take
during your upgrade, though!

> Basically there are lot of changes between the 3.2 and 6.0 versions in
> terms of structure and files. 

Yes. Although the servlet API is mostly (if not entirely) backward
compatible, your configuration will have to change dramatically.

> Moreover the older tomcat 3.2 was used along with apache (through
> mod_jk). 

mod_jk can still be used today. You may decide that you do not need it,
as Tomcat's ability to serve static content has improved quite a bit in
the, uh, 4 versions you're skipping.

> Now when we start with the new tomcat 6 as a HTTP & Web Server it throws
> up a lot of exceptions.

The first thing you have to do is throw out any server.xml files you may
have lying around from your old install. I tried upgrading from 4.1 to
5.5 by tweaking my old server.xml file, but it was a fool's errand. It's
much better to start with the server.xml file that is included with
Tomcat 6.0 and modify it until it meets your needs.

There is plenty of documentation on how to configure things in the new
versions on Tomcat. All of the documentation is available here:
http://tomcat.apache.org/tomcat-6.0-doc/index.html

The most useful things to read are probably going to be:

* Realms and AAA
* JDBC DataSources
* Connectors (if you choose to continue to use mod_jk)

That's about it. If you understood your 3.2 configuration, you should be
able to understand everything else just by reading the comments in the
server.xml file itself (there are LOTS of comments).

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mmC9CaO5/Lv0PARAgznAJwLLbvCuLfHv2ACx895Z3DB0DNVKQCfclfP
pYSeZw4rXJvbRrxyepW9UEs=
=KUod
-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]



RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
> From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat crash @ midnight - but why?
> 
> Hmm maybe this little bit of extra info helps

Not really, but answering Pid's question below might, as would following
David's suggestions. 
 
> 656MB RAM

That's an awfully small amount of memory for a modern system, but is
probably not pertinent.

> In the config file there is the standard AJP port (8009) - what does 
> this actually do?

It allows connection between Tomcat and some front end such as Apache
httpd or IIS.

> >>> - Original Message -
> >>> From: "Pid" <[EMAIL PROTECTED]>
> >>> Subject: Re: Tomcat crash @ midnight - but why?
> >>>
>  What's immediately before the shutdown description in the logs?
> >
> > David Delbecq wrote:
> >
> >> According to your log it did not crash. It did 
> >> shutdown following the shutdown procedure (which
> >> can be executed by bin\shutdown.bat). I suggest
> >> you investigate possibilities that a local service
> >> is setup to shutdown tomcat at midnight on the server.

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
>> From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
>> Subject: Re: Tomcat crash @ midnight - but why?
>>
>> 656MB RAM
> 
> That's an awfully small amount of memory for a modern system, but is
> probably not pertinent.

Especially when you're running VMWare server on it, ostensibly to run
multiple OSs on shared hardware. Yipes!

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mq59CaO5/Lv0PARAnzJAKCgkKIJpYUZvhtZidmj7ksuPOZhsgCgnZkP
9q00vG5PoMTxzZQDf42ayvk=
=224T
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Gabe Wong
Check Windows Scheduled Tasks, to see what runs around that time. Could 
be a resource issue. A background task or even a load spike
from a search bot. How much memory is allocated to the VMWare instance? 
Also did you check the Tomcat logs?


Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone 
else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
   
According to your log it did not crash. It did shutdown following 
the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:

 

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has happened 
once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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










--
Regards

Gabe Wong
Private JVM JAVA Hosting Automation
http://www.ngasi.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]



Re: Filter GET and POST

2007-09-26 Thread Franck Borel

Hi Christopher,

thank you very much for your answer.


i have a problem with an application that only accept GET requests. Now,
I would like to know, if there is any possibility to write a filter, who
is able to change the method from POST to GET.


What do you mean by that? Do you just want to change the return value of
HttpServletRequest.getMethod? You can certainly do that easily.

No.

Do you want to convert POST parameters to GET parameters? That is a bit
tougher, but is possible. 
Yes, I think this is the only possibility. I found no example how this could be 
done. Any idea?



I'm not sure why you'd want to do this, since
servlets do not really distinguish between GET and POST parameters --
the API abstracts that complexity away from your code.


If I change the request from POST to GET the Servlet works. I have no
possibility to change the Servlet behind.



I see that the FORM-Authentication could speek GET after authentication
with POST method. Is there anybody outwhere, who knows how this was done?

Given that the Tomcat source code is available, you could always look in
there for inspiration!


Thanks!

-- Franck

-
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 crash @ midnight - but why?

2007-09-26 Thread Peter Crowther
> From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
> Physical Hardware:
> 656MB RAM
> 2.4 Ghz Xeon Processor

Crikey.  And a host OS (what host?), VMware on top of that, then Windows
2003 as a guest OS?  Do you have any RAM left for Tomcat?

- Peter

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



Certificates, CLIENT-CERT Authentication and Authorization

2007-09-26 Thread Edwin K. Brown
I’m doing this to provide an _outline_ of what is needed to be done to get 
CLIENT-CERT authentication and authorization working in Tomcat 6. This is high 
level because each implementation will have to be done to suit your own needs.

 

This first part deals with the JAAS related code that you have to create:

 

*   The Tomcat documentation states that the 
org.apache.catalina.realm.JAASRealm has to be used to get this working. 
Actually, the JAASRealm should be extended or you create a class that extends 
org.apache.catalina.realm.RealmBase. For purposes of this post, lets call this 
class CertJASSRealm.
*   In CertJASSRealm, the authenticate(X509Certificate certs[]) method 
needs to be over-ridden/implemented to perform the certificate validation.
*   In CertJASSRealm, the getPrincipal(String username) and 
getPrincipal(String username, String subject) methods needs to be 
over-ridden/implemented to create the principal.
*   The Tomcat documentation states that it is best to implement your own 
Role and User class, and that is definitively the case!
*   Create a class to handle the role. 
*   Create a class to handle the user. This seems to be one of the keys to 
getting this right. Let’s call this class CertJASSUser. The getRoles() method 
needs to be implemented to retrieve the roles associated with this user. In the 
“demo” that I did, I had this return a set array of roles. I imagine in “the 
real world,” this would go to some external source like LDAP, a database, or a 
file, to retrieve roles, if any, for the user.
*   In CertJAASUser, implement hasRole(String role) that determines if the 
user has the role name passed in.
*   Implement a LoginModule class and a CallbackHandler class to the JAAS 
specification to suit your needs. 
*   Let’s call the CallbackHandler class CertCallbackHandler. I created a 
method that sets the certificates, public void setCerts(X509Certificate[] 
certs), for use later on during the login() process.
*   Let’s call the LoginModule implementation CertLoginModule. The 
initialize(Subject, CallbackHandler, Map, Map)  method should do any 
initialization needed. The login() method should do the “login” using the 
certificates from the CertCallbackHandler object.
*   Make sure you create the JAAS configuration file. The name of the 
module in this example is CertJaas.

 

This second part deals with SSL authentication. This has to make it possible to 
get the authentication with certificates:

*   Create a class that extends 
org.apache.catalina.authenticator.AuthenticatorBase. Let’s call this class 
CertSSLAuthenticator
*   Implement authenticate(Request request, Response response, LoginConfig 
config). The TOMCAT class SSLAuthenticator is a good class to use as a model 
for what to do for the authentication process. I think CRL lookup or OCSP could 
be used in this method.

 

 

This third part deals with what you have to do to get TOMCAT to recognize that 
you have JAASRelam code that you want to be used instead of what TOMCAT 
provides. Please note that JAASRealm is the ONLY JAAS implementation that 
TOMCAT will recognize “out of the box” without make the following changes. 
Believe me, if you don’t do the following, you will NOT get it working 
properly. You will have to extract, modify, and replace some files in 
catalina.jar.

*   Make a copy of catalina.jar.
*   Extract org/apache/catalina/authenticator/mbeans-descriptors.xml
*   Copy the mbean tag with attribute name “SSLAuthenticator”.
*   Change the name attribute to the name of the file you created to do the 
SSL authentication in the second part. In this case, the name would be 
CertSSLAuthenticator.
*   Modify the type attribute to the full class name of the SSL 
authenticator class.
*   Save the file and replace it in the catalina jar.
*   Extract org/apache/catalina/startup/Authenticators.properties
*   There is an entry for CLIENT-CERT: 
CLIENT-CERT=org.apache.catalina.authenticator.SSLAuthenticator. Change the 
class name to the class of the SSL authenticator class created. In this case, 
CertSSLAuthenticator.
*   Save the file and replace it in catalina.jar

 

The above was done because by default, TOMCAT uses it’s own files and no matter 
how you override things, your own code doesn’t get called.

 

 

The fourth part deals with the server.xml configuration.

*   The for the realm, an example would be as follows:



 

 

That is an outline of what I did to get it working. I’m sending this so that 
Google will find it and give it as a _possible_ way of getting it done. It 
appears to me that the TOMCAT team could make this a lot easier to do.

 

Ed Brown
Senior Software Architect
Vision Systems & Technology, Inc.



6021 University Boulevard, Suite 360 ▪ Ellicott City ▪ Maryland ▪ 21043
Tel: 443.283.0135 ▪ Fax: 410.418.8580
Email: [EMAIL PROTECTED]
Web: http://www.vsticorp.co

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Christopher Schultz wrote:
> Chuck,
> 
> Caldarale, Charles R wrote:
>>> From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
>>> Subject: Re: Tomcat crash @ midnight - but why?
>>>
>>> 656MB RAM
>> That's an awfully small amount of memory for a modern system, but is
>> probably not pertinent.
> 
> Especially when you're running VMWare server on it, ostensibly to run
> multiple OSs on shared hardware. Yipes!
> 
> -chris

I'm not overly familiar with VMWare, but is that the memory assigned to
the OS instance?  Have you configured your JVM with custom memory
parameters?


p




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



clustering

2007-09-26 Thread John Coleman
Hi,

 

We have a thin web application that basically just manages the front end
for a remote business layer that handles the heavy session state stuff
and persistence. Basically the webapp emits and receives data as XML and
after some processing makes it available to the clients.

 

We want to cluster Tomcat in order to support more users, but I expect
each Tomcat instance will be able to manage 500+ sessions, whereas each
of our web applications can only have 250 sessions with the remote
business layer.

 

Is there a way for a single Tomcat instance to run 2 copies of the
application, each one pointing to its own instance of the business
layer? It seems silly to run 2 Tomcats, one for each application
instance, as I suspect that will waste memory and processor. I expect I
will just have to deploy the application twice to 2 different contexts,
but how is that dealt with when configuring load balancing and
clustering, or can I just use different port numbers?

 

Also, can I set a limit of 250 sessions in tomcat for a given
application so we don't blow out on the remote system?

 

John


Eurobase International Limited and its subsidiaries (Eurobase) are unable to 
exercise control over the content of information in E-Mails. Any views and 
opinions expressed may be personal to the sender and are not necessarily those 
of Eurobase. Eurobase will not enter into any contractual obligations in 
respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or 
any attachments. This E-mail is intended for the use of the addressee(s) only 
and may contain confidential information. If you are not the / an intended 
recipient, you are hereby notified that any use or dissemination of this 
communication is strictly prohibited.  If you receive this transmission in 
error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any 
defects of any kind either in or arising from this E-mail transmission. E-Mail 
transmission cannot be guaranteed to be secure or error-free, as messages can 
be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or 
incomplete. Eurobase does not accept any responsibility for viruses and it is 
your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase 
International Group; registered in England and Wales as company number 
02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex 
CM2 0RE, UK.



Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Daniel M Garland
I've gotta say I've had a miserable time with this one. I've tried 
nearly permutation of configurations in the Tomcat documentation and 
nothing seems to work; either I get the default host or a white blank 
screen.


What I need is for www.mydomain.com to host mywebapp on the default path 
and anotherapp on path /anotherapp


If I have this setup in server.xml, everything works:

...

  
  
...

However, to get the dynamic webapp reloading I've been recommended to 
move my  elements out of server.xml. As I am running muliple 
virtual hosts I understand that I cannot use conf/context.xml because 
this applies to all hosts.

So I have tried each of the following, without success:
- creating a conf/Catalina/mydomain.com/mywebapp.xml
- creating a conf/Catalina/mydomain.com/ROOT.xml
- creating a conf/Catalina/mydomain.com/context.xml
- creating a conf/Catalina/mydomain.com/context.xml.default
- creating a META-INF/context.xml in the web app (although I'd prefer to 
sort this out within Tomcat anyway)


I've also tried several variations on the docBase: ".", "mywebapp", the 
absolute path, the absolute path to the .war file...


I mean, why wouldn't this work?
in conf/server.xml:

in conf/Catalina/mydomain.com/mywebapp.xml:


Any ideas on how I can achieve the equivalent of my working server.xml 
with nested Contexts in some other file?

Regards
Dan Garland

Pid wrote:

Daniel M Garland wrote:

My full  element then:


yeah...

remove the context defs from server.xml and put them in
META-INF/context.xml, which is a dir/file inside your webapp.

this method of defining contexts is not encouraged, because you have to
restart the server to reload the config, amongst other reasons.

the default web app is called ROOT.war, your other one would be
asmalljspapp.war. put both files in the appBase dir.

when it unpacks, it'll drop the contexts like so:

appBase/ROOT/META-INF/context.xml
appBase/asmalljspapp/META-INF/context.xml

i strongly recommend that you have a read of the Context config stuff in
the docs.  you'll need to set reloadable="true".

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html


p





 
 
 www.myvirtualhost.com
 subdomain.myvirtualhost.com

 











  

Any ideas?

Pid wrote:

Daniel M Garland wrote:

Hello,

I have a virtual host configured on my Tomcat 5.5.20 cluster
installation.

In my server.xml, I have



What config do you have in your Context(s)?

p


And yet if I copy in a new war file (I'm using ant's deploy task) I
don't see any changes to my webapp. If I look at the individual server's
webapp via the manager application, I see the changes; but I don't see
any changes by looking at the virtual host address until I restart
Tomcat.

Why?

Thanks in advance.
Dan Garland
[EMAIL PROTECTED]

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__

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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__




__
This email has been scanned by the Messa

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks for your answers

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Martin Cavanagh wrote:
  

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 and
26.09.



Strange. What is the uptime of your operating system? Perhaps it's being
rebooted every night?
  
No its definitely not being restarted automatically.  I've had the same 
session (Remote Desktop) running to the server for 4 months...
  

We have VM Ware Server as the hardware - could this cause the problem?



Probably not, but if there's some kind of warm backup going on where the
OS is suspended for the backup, you may be running into trouble. VMware
allows the OS to respond to events (such as SUSPEND and RESUME), and
it's possible that your VM is rigged to shut down some services on
SUSPEND. I doubt that very much, but it's certainly possible.
  

I don't have direct access to the VM, but I'll have this checked into.
  

In the config file there is the standard AJP port (8009) - what does
this actually do?



If you are using a web server along with Tomcat, the AJP connector
allows the two to speak to one another. If you are using Tomcat all by
itself, you can safely disable this connector.
  

Ok - I'll disable this.  There is no other Web Server involved

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mfU9CaO5/Lv0PARArvAAJ9xPomWXYlk7a+91+xGUYhQEG653ACgrqVB
YHzpLj93/bqEDS4Tom0j5V4=
=Np9e
-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]




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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 crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hi Frank

Franck Borel wrote:

Hi Martin,

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?


What kind of network connection are you using? NAT or Bridge?
not sure and I don't have direct access to the host machine to check 
this.  Could this play a role?  What should I be looking for.  I would 
have expected a Bridge...

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


This is a connector, that is used to connect Apache with Tomcat. Are 
you using Apache with Tomcat? If yes look at the log file of your 
mod_jk (C:\apache2\logs\mod_jk.log).

Then the AJP port is harmless, Its a tomcat server which is working alone.



Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23




-- Franck

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







--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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: Filter GET and POST

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Franck,

Franck Borel wrote:
>> I'm not sure why you'd want to do this, since
>> servlets do not really distinguish between GET and POST parameters --
>> the API abstracts that complexity away from your code.
> 
> If I change the request from POST to GET the Servlet works. I have no
> possibility to change the Servlet behind.

When you say "does not work", what do you mean? What happens when you
use POST?

It would be (somewhat) trivial to accept a POST request on one URL and
then forward (or redirect, I suppose) to another URL with the POST
parameters converted into GET parameters. It's up to you to find out if
a filter can do this properly, or even if that's what you want to do.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+n089CaO5/Lv0PARAuPoAJoDFtsAN8ci9AT4pbHnZ4N+dukFXQCgoxix
VJGQrcvXxi23xpUcR/JSbJQ=
=B9Qg
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Hi Charles

Caldarale, Charles R wrote:
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


Hmm maybe this little bit of extra info helps



Not really, but answering Pid's question below might, as would following
David's suggestions. 
 
  
There is no \bin\shutdown.bat file - so this isn't being directly 
triggered.  There could of course be something triggering this in a 
different way, but not via this batch file.

656MB RAM



That's an awfully small amount of memory for a modern system, but is
probably not pertinent.
  
I know - it is very little.  That said I've got Tomcat Servers running 
on machine's with much less, without having any problems.
  
In the config file there is the standard AJP port (8009) - what does 
this actually do?



It allows connection between Tomcat and some front end such as Apache
httpd or IIS.
  
Cool to know - but not the problem then.  I can shutdown the AJP 
connector then...
  

- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
Subject: Re: Tomcat crash @ midnight - but why?

  

What's immediately before the shutdown description in the logs?


David Delbecq wrote:
   
  
According to your log it did not crash. It did 
shutdown following the shutdown procedure (which

can be executed by bin\shutdown.bat). I suggest
you investigate possibilities that a local service
is setup to shutdown tomcat at midnight on the server.



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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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 crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Thats how much RAM the Virtual Machine has.  I'm not sure what the 
actual host machine has, but I'm assuming at least 1024 MB.  I believe 
this virtual machine is the only one on the Server.


Martin

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck,

Caldarale, Charles R wrote:
  
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


656MB RAM
  

That's an awfully small amount of memory for a modern system, but is
probably not pertinent.



Especially when you're running VMWare server on it, ostensibly to run
multiple OSs on shared hardware. Yipes!

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+mq59CaO5/Lv0PARAnzJAKCgkKIJpYUZvhtZidmj7ksuPOZhsgCgnZkP
9q00vG5PoMTxzZQDf42ayvk=
=224T
-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]




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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 crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks Gabe.

I've checked the Windows Scheduled Tasks - unfortunately they are empty.

The VMWare instance has 656MB RAm.

Tomcat logs are quite boring - they only indicate that the Tomcat is 
being shutdown


The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

All other logs I posted 5 days ago and I don't want to repost.

Thanks for everyones help

Martin

Gabe Wong wrote:
Check Windows Scheduled Tasks, to see what runs around that time. 
Could be a resource issue. A background task or even a load spike
from a search bot. How much memory is allocated to the VMWare 
instance? Also did you check the Tomcat logs?


Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume 
everyone else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
  
According to your log it did not crash. It did shutdown 
following the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:



Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 
1.5.0_11


It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist 
bereits 1

Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has 
happened once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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













--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan,

Daniel M Garland wrote:
>unpackWars="true" autoDeploy="true">
>   
>   

That docBase="." is going to give you nothing but trouble. Why can't you
just do this:

1. Start with a clean install of Tomcat.
2. Modify CATALINA_HOME/conf/server.xml to include your clustering
   configuration.
3. Drop ROOT.war into CATALINA_HOME/webapps
4. Drop anotherapp.was into CATALINA_HOME/webapps
5. Start up Tomcat

This should work. You don't need any crazy configuration. Your 
configuration should be in META-INF/context.xml in each of your WAR files.

Tell me more about your virtual host configuration. Do you actually need
Tomcat to understand your virtual hosts? Or, is it sufficient to have
all applications available to all host names?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+n5l9CaO5/Lv0PARAo1aAJ9umVYb/ikB/9BMuzTP+DOHSAIF8gCbBLS5
mib6X4Uo/BvMMMP7tL6L30k=
=gz0h
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh
Sorry everyone - no the the Virtual Machine has 656 MB RAM.  The Host 
has something > 656MB Ram (1GB?)


Martin

Peter Crowther wrote:
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Physical Hardware:

656MB RAM
2.4 Ghz Xeon Processor



Crikey.  And a host OS (what host?), VMware on top of that, then Windows
2003 as a guest OS?  Do you have any RAM left for Tomcat?

- Peter

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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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 crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

the JVM is using the default parameters.  I installed JRE 1.5.0_11 (which was 
upto date at the time...)

Should I be using custom parameters?

VMWare means the the host machine, doesn't know that there is no "real" 
hardware beneath it

Martin

I'm not overly familiar with VMWare, but is that the memory assigned to
the OS instance?  Have you configured your JVM with custom memory
parameters?



p


  


-
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 crash @ midnight - but why?

2007-09-26 Thread Alexey Solofnenko

Maybe it is caused by automatic Windows Update. Did you check it?

- Alexey.

Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume everyone 
else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
   
According to your log it did not crash. It did shutdown following 
the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:

 

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 1.5.0_11

It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist bereits 1
Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has happened 
once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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









--

Alexey N. Solofnenko 
Pleasant Hill, CA (GMT-8 usually)

-
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: Security restrictions for Tomcat

2007-09-26 Thread alla winter
I would appreciate if you would give me some hints how this dispatcher
servlet should work.
Also, what needs to be done to restrict Tomcat to list the directories that
contain java script and images.
thanks


On 9/26/07, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
>
> alla winter wrote:
> > My application can crate report on a fly ( a file) for an authorized
> > clients.   The client authentication is conducted by the
> application  and
> > Tomcat is not involved in this process. Other clients may create a file
> in
> > the same directory, but the application will show the links only to  the
> > files that were created by this particular user ( the userID is a part
> of
> > the file name).  How can I ensure that others cannot view this file by
> just
> > typing the URL in the browser and list all the files under this
> directory?
> >
> Just do not create files in work readable directory. Store files
> somewhere outside application directory and display them with some kind
> of dispatcher servlet.
>
> --
> Mikolaj Rydzewski <[EMAIL PROTECTED]>
>
>
>


Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks Alexey.

Notifications only :(

Keep the ideas coming guys!

just to to check - there is no hidden setting in Tomcat which says - 
shut me down at midnight sometimes for an inexplainable reason?


Martin

Alexey Solofnenko wrote:

Maybe it is caused by automatic Windows Update. Did you check it?

- Alexey.

Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume 
everyone else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
  
According to your log it did not crash. It did shutdown 
following the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:



Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 
1.5.0_11


It worked fine with my program for several hours.  Then exactly at
midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist 
bereits 1

Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has 
happened once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  


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












--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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: Security restrictions for Tomcat

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alla,

alla winter wrote:
> I would appreciate if you would give me some hints how this dispatcher
> servlet should work.

How about this:

1. Check user id against requested path.
 a. Return FORBIDDEN for unauthorized access
 b. Open file and serve bytes to authorized users
2. Configure this servlet to serve all URLs like /content/*
   or something like that, instead of allowing Tomcat
   to serve content from the /content directory.

> Also, what needs to be done to restrict Tomcat to list the directories that
> contain java script and images.

What do you mean? You want people to be able to get directory listings
for certain directories?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+oRC9CaO5/Lv0PARApDAAJ9AetKdT4vXe6v9Kmy0lEGB2Dbw/wCeJRk7
fnIa5GJLKAxlUzV69frZJmo=
=q5+j
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Martin Cavanagh wrote:
> just to to check - there is no hidden setting in Tomcat which says -
> shut me down at midnight sometimes for an inexplainable reason?

I think they removed that in 5.5.23, so you should be safe. It was fun
while it lasted ;)

- -chris

PS: Yes, this was a joke.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+oSl9CaO5/Lv0PARAmVwAJ4yv+fBzAFxhD4iW/RQZMFLDhtx7wCgws9o
wYQXysfkvrD1lnkoaLIVfYg=
=7IPW
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Gabe Wong
Sounds very much like a memory issue as echoed by others on the list. 
What is the Memory Heap size used by the JVM?


Martin Cavanagh wrote:

Thanks Gabe.

I've checked the Windows Scheduled Tasks - unfortunately they are empty.

The VMWare instance has 656MB RAm.

Tomcat logs are quite boring - they only indicate that the Tomcat is 
being shutdown


The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

All other logs I posted 5 days ago and I don't want to repost.

Thanks for everyones help

Martin

Gabe Wong wrote:
Check Windows Scheduled Tasks, to see what runs around that time. 
Could be a resource issue. A background task or even a load spike
from a search bot. How much memory is allocated to the VMWare 
instance? Also did you check the Tomcat logs?


Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume 
everyone else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
 
According to your log it did not crash. It did shutdown 
following the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:

   

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 
1.5.0_11


It worked fine with my program for several hours.  Then 
exactly at

midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist 
bereits 1

Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has 
happened once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  

- 


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 PROTECT

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Daniel M Garland

Hi Chris,

I have three virtual hosts that I want to have hosting a webapp on the 
default path. Each host has a few aliases for subdomains etc. So I don't 
really want to have ROOT.war in CATALINA_HOME/webapps, partly because I 
want to keep the manager app and partly because I would have a ROOT.war 
files for each host, so I think you're saying


CATALINA_HOME/webapps
 /myapp1/ROOT
 /myapp2/ROOT
 /myapp3/ROOT

So I would've thought that I'd have the appBase of each host be 
myappX/ROOT, but what would the corresponding context.xml be? Does it 
actually work holding this file in /conf, I'm not sure about having this 
in the webapp, is it standard to have a META-INF/context.xml or is that 
a Tomcat thing?


Thanks for all the input so far folks


Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan,

Daniel M Garland wrote:


  
  


That docBase="." is going to give you nothing but trouble. Why can't you
just do this:

1. Start with a clean install of Tomcat.
2. Modify CATALINA_HOME/conf/server.xml to include your clustering
   configuration.
3. Drop ROOT.war into CATALINA_HOME/webapps
4. Drop anotherapp.was into CATALINA_HOME/webapps
5. Start up Tomcat

This should work. You don't need any crazy configuration. Your 
configuration should be in META-INF/context.xml in each of your WAR files.

Tell me more about your virtual host configuration. Do you actually need
Tomcat to understand your virtual hosts? Or, is it sufficient to have
all applications available to all host names?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+n5l9CaO5/Lv0PARAo1aAJ9umVYb/ikB/9BMuzTP+DOHSAIF8gCbBLS5
mib6X4Uo/BvMMMP7tL6L30k=
=gz0h
-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]


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__




__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


-
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: Java 1.6

2007-09-26 Thread Daniel M Garland

Is there any performance increase that you've noticed?

Pid wrote:

David Smith wrote:

I think that was pure speculation.  I use JDK 1.6 w/ Tomcat 5.5 in
production and have had no issue.


Likewise, and they go very nicely indeed.

p



--David

Marco wrote:


Hello,



I read in previous post today that someone wasn't sure whether Java
1.6 is
compatible with tomcat 5.5.

This is new to me. Does anyone know more about this (more
specifically, what
versions of tomcat DO work with SUN jvm 1.6)?





Regards,



Marco.


 



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


__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__




__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__


-
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: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Pid
Daniel M Garland wrote:
> I've gotta say I've had a miserable time with this one. I've tried
> nearly permutation of configurations in the Tomcat documentation and
> nothing seems to work; either I get the default host or a white blank
> screen.

You're almost certainly mixing the remnants of the various configuration
changes that you've made.

> What I need is for www.mydomain.com to host mywebapp on the default path
> and anotherapp on path /anotherapp

(see below)

> If I have this setup in server.xml, everything works:
> 
> ...
>unpackWars="true" autoDeploy="true">
>   
>   
> ...

Remove those Context definitions.

> However, to get the dynamic webapp reloading I've been recommended to
> move my  elements out of server.xml. As I am running muliple
> virtual hosts I understand that I cannot use conf/context.xml because
> this applies to all hosts.
> So I have tried each of the following, without success:
> - creating a conf/Catalina/mydomain.com/mywebapp.xml
> - creating a conf/Catalina/mydomain.com/ROOT.xml
> - creating a conf/Catalina/mydomain.com/context.xml
> - creating a conf/Catalina/mydomain.com/context.xml.default
> - creating a META-INF/context.xml in the web app (although I'd prefer to
> sort this out within Tomcat anyway)
> 
> I've also tried several variations on the docBase: ".", "mywebapp", the
> absolute path, the absolute path to the .war file...
> 
> I mean, why wouldn't this work?

(see above)

> in conf/server.xml:
> 
> in conf/Catalina/mydomain.com/mywebapp.xml:
> 
> 
> Any ideas on how I can achieve the equivalent of my working server.xml
> with nested Contexts in some other file?
> Regards
> Dan Garland

Yes, as I said before...

1. Remove the context definitions from the server.xml.
2. You must not define multiple Contexts in conf/context.xml.
3. Do not define conf/Catalina/mydomain.com/.xml.
4. Do not use the path or docBase outside of server.xml.
5. Start with a fresh configuration, to ensure you aren't mixing configs
in your rush to solve the problem.
6. Include a META-INF/context.xml with your context config in the WAR.
Check that it's there by unzipping a copy of the WAR.
7. Don't forget to include the reloadable="true" settings in the context.
8. Just install the ROOT war, then configure the remaining app(s). One
thing at a time.  Tomcat will auto-deploy and copy the configs into
conf/Catalina/host/




Place the default app like so:

your/apps/ROOT.war


If this doesn't deploy/start up, check your log files and look for
errors in catalina.out and any app-local logs.

Post the file system layout after deployment, the actual context you
deployed in the war, and your current server.xml.



> Pid wrote:
>> Daniel M Garland wrote:
>>> My full  element then:
>>
>> yeah...
>>
>> remove the context defs from server.xml and put them in
>> META-INF/context.xml, which is a dir/file inside your webapp.
>>
>> this method of defining contexts is not encouraged, because you have to
>> restart the server to reload the config, amongst other reasons.
>>
>> the default web app is called ROOT.war, your other one would be
>> asmalljspapp.war. put both files in the appBase dir.
>>
>> when it unpacks, it'll drop the contexts like so:
>>
>> appBase/ROOT/META-INF/context.xml
>> appBase/asmalljspapp/META-INF/context.xml
>>
>> i strongly recommend that you have a read of the Context config stuff in
>> the docs.  you'll need to set reloadable="true".
>>
>> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>>
>>
>> p
>>
>>
>>
>>> >> autoDeploy="true">
>>>  
>>>  >> debug="0" />
>>>  www.myvirtualhost.com
>>>  subdomain.myvirtualhost.com
>>>
>>>  >> className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
>>>
>>> managerClassName="org.apache.catalina.cluster.session.DeltaManager"
>>>  expireSessionsOnShutdown="false"
>>>  useDirtyFlag="true"
>>>  notifyListenersOnReplication="true">
>>>
>>> >>
>>> className="org.apache.catalina.cluster.mcast.McastService"
>>> mcastAddr="228.0.0.5"
>>> mcastPort="45565"
>>> mcastFrequency="500"
>>> mcastDropTime="3000"/>
>>>
>>> >>
>>> className="org.apache.catalina.cluster.tcp.ReplicationListener"
>>> tcpListenAddress="10.78.1.43"
>>> tcpListenPort="4002"
>>> tcpSelectorTimeout="100"
>>> tcpThreadCount="6"/>
>>>
>>> >>
>>> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
>>> replicationMode="pooled"
>>> ackTimeout="15000"
>>> stateTransferTimeout="45"
>>> waitForAck="true"/>
>>>
>>> >> className="org.apache.catalina.cluster.tcp.ReplicationValve"
>>>
>>> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.css;.*\.txt;"/>
>>>
>>> >> className="org.apache.catalina.cluster.session.ClusterSessionLi

Re: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Hassan Schroeder
On 9/26/07, Daniel M Garland <[EMAIL PROTECTED]> wrote:

> So I would've thought that 

Have you read this?



-- 
Hassan Schroeder  [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: Security restrictions for Tomcat

2007-09-26 Thread alla winter
Thanks for the quick response.
So, I want to make sure that understand it right : you are proposing that
the servlet should  display the file, instead of allowing Tomcat to invoke
Microsoft Word to disply the file content. The only issue with that is that
the file is created in the RTF format and it has control characters that
governs the formatting.

The second question was about how to set up TOMCAT not to allow the
directory listing

thanks for your help


On 9/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Alla,
>
> alla winter wrote:
> > I would appreciate if you would give me some hints how this dispatcher
> > servlet should work.
>
> How about this:
>
> 1. Check user id against requested path.
> a. Return FORBIDDEN for unauthorized access
> b. Open file and serve bytes to authorized users
> 2. Configure this servlet to serve all URLs like /content/*
>   or something like that, instead of allowing Tomcat
>   to serve content from the /content directory.
>
> > Also, what needs to be done to restrict Tomcat to list the directories
> that
> > contain java script and images.
>
> What do you mean? You want people to be able to get directory listings
> for certain directories?
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG+oRC9CaO5/Lv0PARApDAAJ9AetKdT4vXe6v9Kmy0lEGB2Dbw/wCeJRk7
> fnIa5GJLKAxlUzV69frZJmo=
> =q5+j
> -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]
>
>


Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Pid
Martin Cavanagh wrote:

> just to to check - there is no hidden setting in Tomcat which says -
> shut me down at midnight sometimes for an inexplainable reason?

Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of
humour - they're always building crazy easter eggs into Tomcat.

No, Martin, there's no secret scheduled shutdown setting.

I've asked about the logs before, but I'll ask again...
What's in the logs immediately before the shutdown?

You'll need to look in catalina.out, any app logs and the access log for
the app.


If you're using the default JVM settings, there's a chance that you
might not be running on the server JVM, so your app may have a limited
amount of memory at it's disposal (32Mb if memory serves).  If it's
hanging for some reason (e.g. an app internal job at midnight?) would
VMWare shut it down as a bad/dead process?

Evidence of this might be found in the logs, by unexpected gaps in
access log traffic, error messages in catalina.out etc.


You could also configure jvm gc logging, (google for this), which may
tell you something.


p



> Martin

-
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: Virtual Host and dynamic webapp reloading

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan,

Daniel M Garland wrote:
> I have three virtual hosts that I want to have hosting a webapp on
> the default path.

Different apps, or the same app on each virtual host?

> Each host has a few aliases for subdomains etc. So I don't really
> want to have ROOT.war in CATALINA_HOME/webapps, partly because I want
> to keep the manager app and partly because I would have a ROOT.war 
> files for each host.

You can deploy the manager app even when there is a ROOT application
deployed.

> so I think you're saying
> 
> CATALINA_HOME/webapps
>   /myapp1/ROOT
>   /myapp2/ROOT
>   /myapp3/ROOT

Well, I didn't say that, but if I had said something like that, I would
have suggested:

CATALINA_HOME/webapps (contains nothing)

VIRTUAL_HOME/www.domain1.com[/webapps]
ROOT
myapp1
myapp2
...

VIRTUAL_HOME/www.domain2.com[/webapps]
ROOT
myapp1
myapp2
...

You will need separate  elements in your server.xml file. The
"appBase" for each of these should be VIRTUAL_HOST/www.[whatever].com,
or whatever you choose to be your directory layout.

If you are deploying all the same applications on all virtual hosts,
then you can ignore the whole virtual host concept and just use a
default host to serve everything regardless of the hostname.

> So I would've thought that I'd have the appBase of each host be 
> myappX/ROOT

No, no no. The "appBase" tells Tomcat where to look for deployable
applications, not the directory where /index.html should be found. This
is NOT the same thing as DocumentRoot in Apache httpd. Shave off the
ROOT and you've got yourself a decent configuration. If there is a
directory called ROOT (or a WAR file called ROOT.war) in the appBase
directory, /that/ application will be used as the one that is deployed
with no context path (i.e on / instead of /myapp).

> but what would the corresponding context.xml be?

The context.xml file should not contain any path information whatsoever.
All you need is JNDI resources, realm configuration and stuff like that.
This is a perfectly good context.xml file:



You don't need anything else unless your application needs special
configuration. If you don't have anything in your context.xml file, you
can even leave it out, since Tomcat will give you the default deployment
configuration (which is an empty config).

> Does it actually work holding this file in /conf, I'm not sure about
> having this in the webapp, is it standard to have a
> META-INF/context.xml or is that a Tomcat thing?

This is a Tomcat thing only.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+ol+9CaO5/Lv0PARAkpzAKCLVOu23XOa63lHvEMIvOOSe/DNSACfUa7m
U9DbG+9+gn2Q6mXVcI759Pc=
=b2Kr
-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]



Re: Java 1.6

2007-09-26 Thread Pid
Daniel M Garland wrote:
> Is there any performance increase that you've noticed?

I've not benchmarked it, but our annual traffic high point passed (with
a traffic increase) and without the normal tuning and tweaking this
time.  So I'd have to say anedoctally - yes.

I'm not sure if compiling Tomcat under 1.6 would produce even better
performance - I don't know enough about byte code to comment on that,
but some of the more enlightened listers may do.

p



> Pid wrote:
>> David Smith wrote:
>>> I think that was pure speculation.  I use JDK 1.6 w/ Tomcat 5.5 in
>>> production and have had no issue.
>>
>> Likewise, and they go very nicely indeed.
>>
>> p
>>
>>
>>> --David
>>>
>>> Marco wrote:
>>>
 Hello,



 I read in previous post today that someone wasn't sure whether Java
 1.6 is
 compatible with tomcat 5.5.

 This is new to me. Does anyone know more about this (more
 specifically, what
 versions of tomcat DO work with SUN jvm 1.6)?





 Regards,



 Marco.


  

>>>
>>> -
>>> 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]
>>
>>
>> __
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> __
>>
> 
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> __
> 
> -
> 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: Security restrictions for Tomcat

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Alla,

alla winter wrote:
> Thanks for the quick response.
> So, I want to make sure that understand it right : you are proposing that
> the servlet should  display the file, instead of allowing Tomcat to invoke
> Microsoft Word to disply the file content.

I think you are misunderstanding what is really going on at a
fundamental level. Tomcat will never invoke Microsoft Word for any
reason, unless you have something truly crazy going on in the background.

What I'm suggesting is that you write your own code to serve the
contents of a static file. It's pretty simple: open the file, write the
appropriate HTTP headers, copy the bytes to the servlet output stream,
close all streams, and you are done.

> The only issue with that is that
> the file is created in the RTF format and it has control characters that
> governs the formatting.

This is irrelevant. It doesn't matter if you are serving a text file or
a PDF, you are just serving bytes to the web browser.

> The second question was about how to set up TOMCAT not to allow the
> directory listing

Actually, I think you have to specifically enable directory listings. If
you haven't enabled them, then you shouldn't be getting any. Are you
able to get a directory listing?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+op/9CaO5/Lv0PARAjKYAKCiAakzT34vnC6U2Qz6cN2LpNL6hQCdGDGi
gkHO3hS4/W3Y4auUSX2Y/oA=
=Rrq5
-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]



Re: Java 1.6

2007-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel,

Daniel M Garland wrote:
> Is there any performance increase that you've noticed?

Relative to what?

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+oqd9CaO5/Lv0PARAhV2AJ9JKEIJq0q6mNM8oP7OViC3Ae/RegCgwART
gV+9EbpMXyGlQN7jaP+bR2Q=
=/xgh
-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]



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread David kerber
Is your tomcat set to roll the log files at midnight?  Maybe there's 
something going on related to that?



Pid wrote:

Martin Cavanagh wrote:

  

just to to check - there is no hidden setting in Tomcat which says -
shut me down at midnight sometimes for an inexplainable reason?



Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of
humour - they're always building crazy easter eggs into Tomcat.

No, Martin, there's no secret scheduled shutdown setting.

I've asked about the logs before, but I'll ask again...
What's in the logs immediately before the shutdown?

You'll need to look in catalina.out, any app logs and the access log for
the app.


If you're using the default JVM settings, there's a chance that you
might not be running on the server JVM, so your app may have a limited
amount of memory at it's disposal (32Mb if memory serves).  If it's
hanging for some reason (e.g. an app internal job at midnight?) would
VMWare shut it down as a bad/dead process?

Evidence of this might be found in the logs, by unexpected gaps in
access log traffic, error messages in catalina.out etc.


You could also configure jvm gc logging, (google for this), which may
tell you something.


p



  

Martin



-
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 crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
> From: Gabe Wong [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat crash @ midnight - but why?
> 
> Sounds very much like a memory issue as echoed by others on the list. 

I don't think so.  Lack of RAM might cause performance problems due to
excessive paging, but it's not going to cause a shutdown.  If there were
JVM heap issues, there would be OOME exceptions logged, and Tomcat would
not be going through a normal shutdown.

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



RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
> From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat crash @ midnight - but why?
> 
> There is no \bin\shutdown.bat file - so this isn't being directly 
> triggered.

That just means you installed from the .exe rather than the .zip
distribution.  Something could still be running around terminating the
Tomcat service at midnight.  Take a look at the properties for the
Apache Tomcat service in the Windows Control Panel -> Admin Tools ->
Services, and see if it has any dependencies or other unusual
characteristics set.

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Alexey Solofnenko
InstallShield now has auto update feature too. Plus there is auto update 
in antiviruses, Google Pack, other products. Also disk defragmenters may 
want to reboot the machine to defragment system files. Sometimes they 
log messages in EventLog.


Martin Cavanagh wrote:

Thanks Alexey.

Notifications only :(

Keep the ideas coming guys!

just to to check - there is no hidden setting in Tomcat which says - 
shut me down at midnight sometimes for an inexplainable reason?


Martin

Alexey Solofnenko wrote:

Maybe it is caused by automatic Windows Update. Did you check it?

- Alexey.

Martin Cavanagh wrote:

Hi guys, I'm still having this problem.

Its happened 3 times now.  Always at exactly midnight.  21.09, 25.09 
and 26.09.


We have VM Ware Server as the hardware - could this cause the problem?

I have a firewall on the machine with only the HTTPS port open.

In the config file there is the standard AJP port (8009) - what does 
this actually do?


Hardware : VM Ware Server
OS: Win 2003
Tomcat Version: 5.5.23

Any ideas?

Thanks

Martin

David Smith wrote:
Huh??  The shutdown port explicitly binds to the localhost 
interface.  External clients cannot access it anyway.  Easily 
demonstrated with a netstat command.


--David



Martin Gainty wrote:


Hi Pid

you're going to need a firewall if someone can telnet to your 
shutdown port

(check server.xml for the exact port number)

Martin--
- Original Message -
From: "Pid" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Friday, September 21, 2007 7:19 AM
Subject: Re: Tomcat crash @ midnight - but why?


 


What's immediately before the shutdown description in the logs?

p



Martin Cavanagh wrote:
 

Why would windows report it as crashing then?

I know I didn't shut it down, I was sleeping, as I assume 
everyone else

was who had access to the system..

Thanks

Martin

David Delbecq wrote:
 
According to your log it did not crash. It did shutdown 
following the

shutdown procedure (which can be executed by bin\shutdown.bat). I
suggest you investigate possibilities that a local service is 
setup to

shutdown tomcat at midnight on the server.

The tomcat shutdown procedure is started when tomcat receive the
SHUTDOWN string at the admin connector (8005 here). This 
connector is
  

by
 


default accessible only on local machine.

En l'instant précis du 21/09/07 09:21, Martin Cavanagh 
s'exprimait en

ces termes:

   

Hi everyone.

Yesterday I started a 2nd Apache Server for my program.  It was
installed several months ago.  Version 5.5.0.23.

The server is running on Windows 2003 Server with Java JRE 
1.5.0_11


It worked fine with my program for several hours.  Then 
exactly at

midnight it crashed.

Dienst "Apache Tomcat" wurde unerwartet beendet. Dies ist 
bereits 1

Mal passiert. - Which translates to,
Service "Apache Tomcat" stopped unexpectedly.  This has 
happened once

already.

The catalina logs show
21.09.2007 00:00:00 org.apache.coyote.http11.Http11AprProtocol 
pause

INFO: Pausing Coyote HTTP/1.1 on http-443
21.09.2007 00:00:00 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
21.09.2007 00:00:01 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
21.09.2007 00:00:01 org.apache.coyote.http11.Http11AprProtocol 
destroy

INFO: Stopping Coyote HTTP/1.1 on http-443
21.09.2007 00:00:01 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009

Which unfortunately isn't really particularly useful.  I can't 
see any
other logs regarding this.  How do I find out why my Tomcat 
crashed?


Thanks

Martin




  

- 


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]














--

Alexey N. Solofnenko 
Pleasant Hill, CA (GMT-8 usually)

-
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: UTF8

2007-09-26 Thread Amnon Lahav
i just noticed the reply , i don't understand what u mean would you mind
explaining ?

On 9/23/07, Lucas Galfaso <[EMAIL PROTECTED]> wrote:
>
> hi,
>   What happens if you escape every char in the XML file? This is you
> replace character number nnn to "&#nnn;" (quotes for clarity.) The
> number has to be the ISO-10646 of the character and, lucky for you,
> this is the case of Javas internal encoding.
>
> Regards,
>   lg
>
> On 9/22/07, Amnon Lahav <[EMAIL PROTECTED]> wrote:
> > hi ,
> > i'm using tomcat 5.5 and jdk5 allso using commons.fileupload , when
> > uploading a XML that contains hebrew fonts i can't seem to get it in
> utf8 in
> > the servlet tough JSP is configured to utf8 with :
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8" %>
> >
> >  > "http://www.w3.org/TR/html4/loose.dtd";>
> >
> > 
> >
> >
> >
> > i suspect that i might be getting in utf 8 but maybe it differs from
> java's
> > UTF8 (that's impossible isn't it ?) because when i try to convert using
> new
> > String(stringByte,"UTF-8") it returns the same while with other
> encodings in
> > can see in debug content changes ... i'm realy at a jam here people i
> have a
> > deadline adn i can't seem to fix this silly bug any ideas ?
> >
> > when i open the xml with firefox and check properties it says
> windows-1255
> > but when i try using the getbytes method to init stringByte it doesn't
> > matter , i had this problem once with tomcat but it was with a simple
> > textarea input and then i just converted to utf8 like i described above
> from
> > iso-8859-1 but now i can't seem to do that ..
> >
> >
> >
> >
> > -
> > 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 crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Thanks Pid - some good tips

Pid wrote:

Martin Cavanagh wrote:

  

just to to check - there is no hidden setting in Tomcat which says -
shut me down at midnight sometimes for an inexplainable reason?



Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of
humour - they're always building crazy easter eggs into Tomcat.

No, Martin, there's no secret scheduled shutdown setting.
  

phew :)

I've asked about the logs before, but I'll ask again...
What's in the logs immediately before the shutdown?
  
Like I said nothing - I posted them once before - but here they come 
again.  This time I'm even including the Std-Out, which is just junk 
from my program..although now I see something that could either be 
the problem - or a symptom of the problem.


Each time when Tomcat has crashed, it has been at midnight.  At exactly 
midnight my program changes log directorys - from 20-09-2007 to 
21-09-2007.  This is a TimerTask.  A thread which runs at exactly 
midnightat each of these crashes it has reported "Can't create 
directory '\.cs-aterm\logs\SYSTEM\2007-09-25'".  I can't help wondering 
if that might somehow be related.  However if that happens, it should 
result in no logs being produced, not in Tomcat crashing.


I've also been using this logging technique for years (inherited from 
the previous programmer).  It always worked fine - on many servers.

You'll need to look in catalina.out, any app logs and the access log for
the app.


If you're using the default JVM settings, there's a chance that you
might not be running on the server JVM, so your app may have a limited
amount of memory at it's disposal (32Mb if memory serves).  If it's
hanging for some reason (e.g. an app internal job at midnight?) would
VMWare shut it down as a bad/dead process?
  

Hmmm - how houw I change the JVM into a Server JVM?

Evidence of this might be found in the logs, by unexpected gaps in
access log traffic, error messages in catalina.out etc.


You could also configure jvm gc logging, (google for this), which may
tell you something.
  

That sounds like this is worth looking into


p



  

Martin



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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341
19.09.2007 12:21:38 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
19.09.2007 12:21:38 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
19.09.2007 12:21:39 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
19.09.2007 12:21:40 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
19.09.2007 12:21:40 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:30 org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
19.09.2007 12:22:30 org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:30 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1860 ms
19.09.2007 12:22:30 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
19.09.2007 12:22:30 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
19.09.2007 12:22:30 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
19.09.2007 12:22:31 org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive soap.war
19.09.2007 12:22:32 org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-80
19.09.2007 12:22:32 org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
19.09.2007 12:22:32 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
19.09.2007 12:22:32 org.apache.catalina.startup.Catalina start
INFO: Server startup in 2140 ms
20.09.2007 10:24:39 org.apache.coyote.http11.Http11AprProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
20.09.2007 10:24:39 org.apache.coyote.ajp.AjpAprProtocol pause
INFO: Pausing Coyote AJP/1.3 on ajp-8009
20.09.2007 10:24:40 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
20.09.2007 10:24:40 org.apache.coyote.http11.Http11AprProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
20.09.2007 10:24:40 org.apache.coyote.ajp.AjpAprProtocol destroy
INFO: Stopping Coyote AJP/1.3 on ajp-8009
20.09.2007 12:22:20 org.apache.coyote.http11.Http11AprProtoc

Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

David kerber wrote:
Is your tomcat set to roll the log files at midnight?  Maybe there's 
something going on related to that?
no i don't think so - (but how do I control that - It would be cool to 
use that).  Its pretty much a standard Tomcat installation - with HTTPS 
turned on and HTTP turned off.


My standard tomcat logs only change their  filenames, when i restart tomcat.



Pid wrote:

Martin Cavanagh wrote:

 

just to to check - there is no hidden setting in Tomcat which says -
shut me down at midnight sometimes for an inexplainable reason?



Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of
humour - they're always building crazy easter eggs into Tomcat.

No, Martin, there's no secret scheduled shutdown setting.

I've asked about the logs before, but I'll ask again...
What's in the logs immediately before the shutdown?

You'll need to look in catalina.out, any app logs and the access log for
the app.


If you're using the default JVM settings, there's a chance that you
might not be running on the server JVM, so your app may have a limited
amount of memory at it's disposal (32Mb if memory serves).  If it's
hanging for some reason (e.g. an app internal job at midnight?) would
VMWare shut it down as a bad/dead process?

Evidence of this might be found in the logs, by unexpected gaps in
access log traffic, error messages in catalina.out etc.


You could also configure jvm gc logging, (google for this), which may
tell you something.


p



 

Martin



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







--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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 crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
> From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat crash @ midnight - but why?
> 
> Hmmm - how houw I change the JVM into a Server JVM?

Server vs client JVM is likely to be totally irrelevant, but in any
event, run the tomcat6w.exe program, go to the Java tab, and see what is
set for Java Virtual Machine.  If the "Use default" check box is set,
clear it, and enter the location of the server jvm.dll file (e.g.,
C:\jdk1.6.0\jre\bin\server\jvm.dll).  You'll have to change the location
to match your JVM installation, of course.

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



Re: Tomcat crash @ midnight - but why?

2007-09-26 Thread Martin Cavanagh

Caldarale, Charles R wrote:
From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
Subject: Re: Tomcat crash @ midnight - but why?


There is no \bin\shutdown.bat file - so this isn't being directly 
triggered.



That just means you installed from the .exe rather than the .zip
distribution.  Something could still be running around terminating the
Tomcat service at midnight.  Take a look at the properties for the
Apache Tomcat service in the Windows Control Panel -> Admin Tools ->
Services, and see if it has any dependencies or other unusual
characteristics set.
  

There don't seem to be.

The Server is started with \Tomcat\bin\tomcat5.exe //RS//Tomcat5 - is 
that normal?


A temp solution appeared there - it is possible to tell windows what to 
do if a service stops - i could tell it to automatically restart - which 
would be a solution - not the best but i saves me having to monitor it 
at midnight


Martin



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




  



--
Con-Sense-GmbH
__
_Martin Cavanagh_

Tel.: +49541 800 83 0
Fax: +49541 800 83 99

[EMAIL PROTECTED] 

Con-Sense GmbH
Neuer Graben 25
49074 Osnabrück
www.con-sense-group.com 

Geschäftsführer Eckhard Schulz
Amtsgericht Hildesheim HRB 3341

-
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 crash @ midnight - but why?

2007-09-26 Thread Pid
Martin Cavanagh wrote:
> Thanks Pid - some good tips
> Hmmm - how houw I change the JVM into a Server JVM?

(google is your friend).

-server will do it, if it's not autoselected.


>> -
>> 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 crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
> From: Martin Cavanagh [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat crash @ midnight - but why?
> 
> The Server is started with \Tomcat\bin\tomcat5.exe //RS//Tomcat5 - is 
> that normal?

Yes, that's fine.

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



RE: Tomcat crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
> From: Pid [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat crash @ midnight - but why?
> 
> -server will do it, if it's not autoselected.

Tomcat is running a Windows service, so command line options cannot be
used.

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



SESSIONS.ser (Too many open files)

2007-09-26 Thread Ranjan Kumar Baisak

Hi Experts,
   I am facing a strange problem in my tomcat application. 
Suddenly it generates following Exceptions


java.io.FileNotFoundException: 
/server/http/site/music.yamaha.com/site/work/SESSIONS.ser (Too many open 
files)

  at java.io.FileOutputStream.open(Native Method)
  ..


And some other application FNF

java.io.FileNotFoundException: 
/server/http/site/ssd.com/site/dist/tilesCopy/en_US/siteTree.xml (Too 
many open files)

  at java.io.FileInputStream.open(Native Method)
...
...

What might be the possible causes that generates such exception?
Some people suggested me to check whether application is running on 
development mode, and if yes then change it to deployment mode i.e.


   configuration
  deployment
  


I am not using any  in my web.xml.
I would appreciate your thoughtful suggestion.

regards,
Ranjan


-
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 crash @ midnight - but why?

2007-09-26 Thread Jim Cox

Each time when Tomcat has crashed, it has been at midnight.  At exactly
midnight my program changes log directorys - from 20-09-2007 to
21-09-2007.  This is a TimerTask.  A thread which runs at exactly
midnightat each of these crashes it has reported "Can't create
directory '\.cs-aterm\logs\SYSTEM\2007-09-25'".  I can't help wondering
if that might somehow be related.  However if that happens, it should
result in no logs being produced, not in Tomcat crashing.


Are you simply running out of disk space, or file handles, or some
other OS resource?

On 9/26/07, Martin Cavanagh <[EMAIL PROTECTED]> wrote:
> Thanks Pid - some good tips
>
> Pid wrote:
> > Martin Cavanagh wrote:
> >
> >
> >> just to to check - there is no hidden setting in Tomcat which says -
> >> shut me down at midnight sometimes for an inexplainable reason?
> >>
> >
> > Oh yeah, forgot about that one. Filip, Remy et al have a funny sense of
> > humour - they're always building crazy easter eggs into Tomcat.
> >
> > No, Martin, there's no secret scheduled shutdown setting.
> >
> phew :)
> > I've asked about the logs before, but I'll ask again...
> > What's in the logs immediately before the shutdown?
> >
> Like I said nothing - I posted them once before - but here they come
> again.  This time I'm even including the Std-Out, which is just junk
> from my program..although now I see something that could either be
> the problem - or a symptom of the problem.
>
> Each time when Tomcat has crashed, it has been at midnight.  At exactly
> midnight my program changes log directorys - from 20-09-2007 to
> 21-09-2007.  This is a TimerTask.  A thread which runs at exactly
> midnightat each of these crashes it has reported "Can't create
> directory '\.cs-aterm\logs\SYSTEM\2007-09-25'".  I can't help wondering
> if that might somehow be related.  However if that happens, it should
> result in no logs being produced, not in Tomcat crashing.
>
> I've also been using this logging technique for years (inherited from
> the previous programmer).  It always worked fine - on many servers.
> > You'll need to look in catalina.out, any app logs and the access log for
> > the app.
> >
> >
> > If you're using the default JVM settings, there's a chance that you
> > might not be running on the server JVM, so your app may have a limited
> > amount of memory at it's disposal (32Mb if memory serves).  If it's
> > hanging for some reason (e.g. an app internal job at midnight?) would
> > VMWare shut it down as a bad/dead process?
> >
> Hmmm - how houw I change the JVM into a Server JVM?
> > Evidence of this might be found in the logs, by unexpected gaps in
> > access log traffic, error messages in catalina.out etc.
> >
> >
> > You could also configure jvm gc logging, (google for this), which may
> > tell you something.
> >
> That sounds like this is worth looking into
> >
> > p
> >
> >
> >
> >
> >> Martin
> >>
> >
> > -
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
>
>
> --
> Con-Sense-GmbH
> __
> _Martin Cavanagh_
>
> Tel.: +49541 800 83 0
> Fax: +49541 800 83 99
>
> [EMAIL PROTECTED] 
>
> Con-Sense GmbH
> Neuer Graben 25
> 49074 Osnabrück
> www.con-sense-group.com 
>
> Geschäftsführer Eckhard Schulz
> Amtsgericht Hildesheim HRB 3341
>
> 19.09.2007 12:21:38 org.apache.coyote.http11.Http11AprProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-80
> 19.09.2007 12:21:38 org.apache.coyote.ajp.AjpAprProtocol pause
> INFO: Pausing Coyote AJP/1.3 on ajp-8009
> 19.09.2007 12:21:39 org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> 19.09.2007 12:21:40 org.apache.coyote.http11.Http11AprProtocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-80
> 19.09.2007 12:21:40 org.apache.coyote.ajp.AjpAprProtocol destroy
> INFO: Stopping Coyote AJP/1.3 on ajp-8009
> 19.09.2007 12:22:30 org.apache.coyote.http11.Http11AprProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-80
> 19.09.2007 12:22:30 org.apache.coyote.ajp.AjpAprProtocol init
> INFO: Initializing Coyote AJP/1.3 on ajp-8009
> 19.09.2007 12:22:30 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1860 ms
> 19.09.2007 12:22:30 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 19.09.2007 12:22:30 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
> 19.09.2007 12:22:30 org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> 19.09.2007 12:22:31 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive soap.war
> 19.09.2007 12:22:32 org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-80
> 19.09.2007 12:22:32 org.apache.coyote.ajp.AjpAprPr

Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread David Smith

I would think this would be the root issue: "Too many open files"

What OS are you running.  Some limit the number of open file handles.  
Also might want to check to be sure you are closing files when finished 
with them in your webapp.


--David

Ranjan Kumar Baisak wrote:


Hi Experts,
   I am facing a strange problem in my tomcat application. 
Suddenly it generates following Exceptions


java.io.FileNotFoundException: 
/server/http/site/music.yamaha.com/site/work/SESSIONS.ser (Too many 
open files)

  at java.io.FileOutputStream.open(Native Method)
  ..


And some other application FNF

java.io.FileNotFoundException: 
/server/http/site/ssd.com/site/dist/tilesCopy/en_US/siteTree.xml (Too 
many open files)

  at java.io.FileInputStream.open(Native Method)
...
...

What might be the possible causes that generates such exception?
Some people suggested me to check whether application is running on 
development mode, and if yes then change it to deployment mode i.e.


   configuration
  deployment
  


I am not using any  in my web.xml.
I would appreciate your thoughtful suggestion.

regards,
Ranjan


-
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 crash @ midnight - but why?

2007-09-26 Thread Pid
Martin Cavanagh wrote:

> Each time when Tomcat has crashed, it has been at midnight.  At exactly
> midnight my program changes log directorys - from 20-09-2007 to
> 21-09-2007.  This is a TimerTask.  A thread which runs at exactly
> midnightat each of these crashes it has reported "Can't create
> directory '\.cs-aterm\logs\SYSTEM\2007-09-25'".  I can't help wondering
> if that might somehow be related.  However if that happens, it should
> result in no logs being produced, not in Tomcat crashing.

Is this the case for all 3 shutdown instances?

If so, I'd suggest that understanding why that is happening will lead
you to the cause of the shutdown...

You're not really logging much from your app it would appear - is there
any way to increase the logging level, or haven't you got much in the
way of logging in the code?

p

-
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: HTTP/1.1 400 no host matches server name

2007-09-26 Thread David Delbecq
Are you behind an apache server, using mod_jk? Or is tomcat accessed 
directly. As omeone suggested, check you have a valid default host in 
tomcat. If you are behind an apache web server, you might to check it's 
not the apache server that answer with HTTP400 (tomcat error pages 
always include tomcat reference and are white and blue by default). You 
could also add aliases to your localhost  to match "myserver".

Andrew Hole a écrit :

Hello!

I'm getting the following error:

"HTTP/1.1 400 no host matches server name myserver"

Why this happens?

workers.properties
# --
# Load Balancer worker PFH
# --
worker.pfhbalancer.type= lb
worker.pfhbalancer.balanced_workers= upg4out,upg7out

# 
# First worker
# 
worker.upg4out.port= 8060
worker.upg4out.host= localhost
worker.upg4out.type= ajp13

# 
# Second worker
# 
worker.upg7out.port= 8075
worker.upg7out.host= localhost
worker.upg7out.type= ajp13

httpd.conf
JkMount /outpat/gateway  pfhbalancer
JkMount /outpat/ehrviewer/* vwbalancer

-
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 crash @ midnight - but why?

2007-09-26 Thread Pid
Caldarale, Charles R wrote:
>> From: Pid [mailto:[EMAIL PROTECTED] 
>> Subject: Re: Tomcat crash @ midnight - but why?
>>
>> -server will do it, if it's not autoselected.
> 
> Tomcat is running a Windows service, so command line options cannot be
> used.
> 
>  - Chuck

(doh)


> 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: Tomcat crash @ midnight - but why?

2007-09-26 Thread Tim Funk
To test the TimerTask theory - I'd suggest changing the TimerTask to run 
at 12:30 and see the next crash


-Tim

Pid wrote:

Martin Cavanagh wrote:


Each time when Tomcat has crashed, it has been at midnight.  At exactly
midnight my program changes log directorys - from 20-09-2007 to
21-09-2007.  This is a TimerTask.  A thread which runs at exactly
midnightat each of these crashes it has reported "Can't create
directory '\.cs-aterm\logs\SYSTEM\2007-09-25'".  I can't help wondering
if that might somehow be related.  However if that happens, it should
result in no logs being produced, not in Tomcat crashing.




-
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: Security restrictions for Tomcat

2007-09-26 Thread alla winter
I am confused now
web.xml instructs Tomcat what application needs to be called for a given
MIME type
for example:
- 
  rtf
  application/vnd.ms-word
  

 Tomcat pass the request to the  third party application based on the MIME
type, so if I show the link to the .RTF file and the user selects the link,
the Microsoft Word will display the selected file.  The same with PDF files
- the  the ADOBE reader is invoked
My undesraning is that by writing file bytes to the servlet output, I am
just creating and HTML file where the file content is a body of the HTML

But if I output the bytes of the file to the servlet output, it will look
the same way as I would open RTF file in the notepad - with all controll
characters inside.
Unless I am missing something here...


As far as directory listing - yes, I do see the directory listing for all
folders that are underneath of my application except WEB-INF and I didn't do
any special set up for that - I am using all default XMLs except the
web.xmlwhere I am defining my servlets.

I appreciate your help.
thanks

On 9/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Alla,
>
> alla winter wrote:
> > Thanks for the quick response.
> > So, I want to make sure that understand it right : you are proposing
> that
> > the servlet should  display the file, instead of allowing Tomcat to
> invoke
> > Microsoft Word to disply the file content.
>
> I think you are misunderstanding what is really going on at a
> fundamental level. Tomcat will never invoke Microsoft Word for any
> reason, unless you have something truly crazy going on in the background.
>
> What I'm suggesting is that you write your own code to serve the
> contents of a static file. It's pretty simple: open the file, write the
> appropriate HTTP headers, copy the bytes to the servlet output stream,
> close all streams, and you are done.
>
> > The only issue with that is that
> > the file is created in the RTF format and it has control characters that
> > governs the formatting.
>
> This is irrelevant. It doesn't matter if you are serving a text file or
> a PDF, you are just serving bytes to the web browser.
>
> > The second question was about how to set up TOMCAT not to allow the
> > directory listing
>
> Actually, I think you have to specifically enable directory listings. If
> you haven't enabled them, then you shouldn't be getting any. Are you
> able to get a directory listing?
>
> - -chris
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG+op/9CaO5/Lv0PARAjKYAKCiAakzT34vnC6U2Qz6cN2LpNL6hQCdGDGi
> gkHO3hS4/W3Y4auUSX2Y/oA=
> =Rrq5
> -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]
>
>


Re: Security restrictions for Tomcat

2007-09-26 Thread Pid
alla winter wrote:
> I am confused now
> web.xml instructs Tomcat what application needs to be called for a given
> MIME type

No, unless you've got some weird setup on a windows machine Tomcat is
not opening MSWord.  The mime type is sent to the browser in an http
header, and the browser decides what to open it with.

For example, if you didn't have MSWord installed, but had, say,
OpenOffice, you could find that OpenOffice opens the file.

> for example:
> - 
>   rtf
>   application/vnd.ms-word
>   
> 
>  Tomcat pass the request to the  third party application based on the MIME
> type, so if I show the link to the .RTF file and the user selects the link,
> the Microsoft Word will display the selected file.  The same with PDF files
> - the  the ADOBE reader is invoked
> My undesraning is that by writing file bytes to the servlet output, I am
> just creating and HTML file where the file content is a body of the HTML

Again no, the output is handled by the browser - if you set:

 Content-Type: text/html

the browser will do as it's told and try to process the output as an
HTML file.



> But if I output the bytes of the file to the servlet output, it will look
> the same way as I would open RTF file in the notepad - with all controll
> characters inside.
> Unless I am missing something here...

Yes, the Content-Type header is the key to this.

p


> As far as directory listing - yes, I do see the directory listing for all
> folders that are underneath of my application except WEB-INF and I didn't do
> any special set up for that - I am using all default XMLs except the
> web.xmlwhere I am defining my servlets.
> 
> I appreciate your help.
> thanks
> 
> On 9/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> Alla,
> 
> alla winter wrote:
 Thanks for the quick response.
 So, I want to make sure that understand it right : you are proposing
> that
 the servlet should  display the file, instead of allowing Tomcat to
> invoke
 Microsoft Word to disply the file content.
> I think you are misunderstanding what is really going on at a
> fundamental level. Tomcat will never invoke Microsoft Word for any
> reason, unless you have something truly crazy going on in the background.
> 
> What I'm suggesting is that you write your own code to serve the
> contents of a static file. It's pretty simple: open the file, write the
> appropriate HTTP headers, copy the bytes to the servlet output stream,
> close all streams, and you are done.
> 
 The only issue with that is that
 the file is created in the RTF format and it has control characters that
 governs the formatting.
> This is irrelevant. It doesn't matter if you are serving a text file or
> a PDF, you are just serving bytes to the web browser.
> 
 The second question was about how to set up TOMCAT not to allow the
 directory listing
> Actually, I think you have to specifically enable directory listings. If
> you haven't enabled them, then you shouldn't be getting any. Are you
> able to get a directory listing?
> 
> -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: SESSIONS.ser (Too many open files)

2007-09-26 Thread Ranjan Kumar Baisak

I would think this would be the root issue: "Too many open files"

We dont have much file handling operations in our web applications, but 
again I am going to look minutely all IO operations in my application.
What OS are you running.  Some limit the number of open file handles.  
Also might want to check to be sure you are closing files when 
finished with them in your webapp.


its running on  *Red Hat *Enterprise Linux AS 4. I am at all not good at 
system programming, but I would love to know any such commands/utilities 
exist that can tell me detail about what are the files getting opened in 
my web application which results such exception.


regards,



Ranjan Kumar Baisak wrote:


Hi Experts,
   I am facing a strange problem in my tomcat 
application. Suddenly it generates following Exceptions


java.io.FileNotFoundException: 
/server/http/site/music.yamaha.com/site/work/SESSIONS.ser (Too many 
open files)

  at java.io.FileOutputStream.open(Native Method)
  ..


And some other application FNF

java.io.FileNotFoundException: 
/server/http/site/ssd.com/site/dist/tilesCopy/en_US/siteTree.xml (Too 
many open files)

  at java.io.FileInputStream.open(Native Method)
...
...

What might be the possible causes that generates such exception?
Some people suggested me to check whether application is running on 
development mode, and if yes then change it to deployment mode i.e.


   configuration
  deployment
  


I am not using any  in my web.xml.
I would appreciate your thoughtful suggestion.

regards,
Ranjan


-
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: Security restrictions for Tomcat

2007-09-26 Thread alla winter
OK, I got it, the content type will do the trick.  Thanks

But I would appreciate if you answer on my second question regarding the
directory listing
I can see all the directory listing except WEB-INF directory.  I am using
all default XMLs for configuration without any changes, except web.xml were
I defined my servlets.
What should I do to disallow the directory listing?
thanks


On 9/26/07, Pid <[EMAIL PROTECTED]> wrote:
>
> alla winter wrote:
> > I am confused now
> > web.xml instructs Tomcat what application needs to be called for a given
> > MIME type
>
> No, unless you've got some weird setup on a windows machine Tomcat is
> not opening MSWord.  The mime type is sent to the browser in an http
> header, and the browser decides what to open it with.
>
> For example, if you didn't have MSWord installed, but had, say,
> OpenOffice, you could find that OpenOffice opens the file.
>
> > for example:
> > - 
> >   rtf
> >   application/vnd.ms-word
> >   
> >
> >  Tomcat pass the request to the  third party application based on the
> MIME
> > type, so if I show the link to the .RTF file and the user selects the
> link,
> > the Microsoft Word will display the selected file.  The same with PDF
> files
> > - the  the ADOBE reader is invoked
> > My undesraning is that by writing file bytes to the servlet output, I am
> > just creating and HTML file where the file content is a body of the HTML
>
> Again no, the output is handled by the browser - if you set:
>
> Content-Type: text/html
>
> the browser will do as it's told and try to process the output as an
> HTML file.
>
>
>
> > But if I output the bytes of the file to the servlet output, it will
> look
> > the same way as I would open RTF file in the notepad - with all controll
> > characters inside.
> > Unless I am missing something here...
>
> Yes, the Content-Type header is the key to this.
>
> p
>
>
> > As far as directory listing - yes, I do see the directory listing for
> all
> > folders that are underneath of my application except WEB-INF and I
> didn't do
> > any special set up for that - I am using all default XMLs except the
> > web.xmlwhere I am defining my servlets.
> >
> > I appreciate your help.
> > thanks
> >
> > On 9/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> > Alla,
> >
> > alla winter wrote:
>  Thanks for the quick response.
>  So, I want to make sure that understand it right : you are proposing
> > that
>  the servlet should  display the file, instead of allowing Tomcat to
> > invoke
>  Microsoft Word to disply the file content.
> > I think you are misunderstanding what is really going on at a
> > fundamental level. Tomcat will never invoke Microsoft Word for any
> > reason, unless you have something truly crazy going on in the
> background.
> >
> > What I'm suggesting is that you write your own code to serve the
> > contents of a static file. It's pretty simple: open the file, write the
> > appropriate HTTP headers, copy the bytes to the servlet output stream,
> > close all streams, and you are done.
> >
>  The only issue with that is that
>  the file is created in the RTF format and it has control characters
> that
>  governs the formatting.
> > This is irrelevant. It doesn't matter if you are serving a text file or
> > a PDF, you are just serving bytes to the web browser.
> >
>  The second question was about how to set up TOMCAT not to allow the
>  directory listing
> > Actually, I think you have to specifically enable directory listings. If
> > you haven't enabled them, then you shouldn't be getting any. Are you
> > able to get a directory listing?
> >
> > -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: Tomcat crash @ midnight - but why?

2007-09-26 Thread Darek Czarkowski

Martin Cavanagh wrote:
Each time when Tomcat has crashed, it has been at midnight.  At 
exactly midnight my program changes log directorys - from 20-09-2007 
to 21-09-2007.  This is a TimerTask.  A thread which runs at exactly 
midnightat each of these crashes it has reported "Can't create 
directory '\.cs-aterm\logs\SYSTEM\2007-09-25'".  I can't help 
wondering if that might somehow be related.  However if that happens, 
it should result in no logs being produced, not in Tomcat crashing.


Now, this would be funny, can you search the source code of the deployed 
application for System.exit call?  :p


--
Darek Czarkowski
Ph: 604 294 6557 (Ext. 113)
Fx: 604 294 6507
www.infinitesource.ca
darekc at infinitesource dot ca 



-
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: Security restrictions for Tomcat

2007-09-26 Thread Mitesh Shah

To disable directory listing, change tag value to 'false' for init parameter
of listing in web.xml


listings
FALSE
  


Mitesh Shah
Hosted Services Engineer
eClinicalWorks LLC

-Original Message-
From: alla winter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 26, 2007 2:00 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Security restrictions for Tomcat

OK, I got it, the content type will do the trick.  Thanks

But I would appreciate if you answer on my second question regarding the
directory listing
I can see all the directory listing except WEB-INF directory.  I am using
all default XMLs for configuration without any changes, except web.xml were
I defined my servlets.
What should I do to disallow the directory listing?
thanks


On 9/26/07, Pid <[EMAIL PROTECTED]> wrote:
>
> alla winter wrote:
> > I am confused now
> > web.xml instructs Tomcat what application needs to be called for a given
> > MIME type
>
> No, unless you've got some weird setup on a windows machine Tomcat is
> not opening MSWord.  The mime type is sent to the browser in an http
> header, and the browser decides what to open it with.
>
> For example, if you didn't have MSWord installed, but had, say,
> OpenOffice, you could find that OpenOffice opens the file.
>
> > for example:
> > - 
> >   rtf
> >   application/vnd.ms-word
> >   
> >
> >  Tomcat pass the request to the  third party application based on the
> MIME
> > type, so if I show the link to the .RTF file and the user selects the
> link,
> > the Microsoft Word will display the selected file.  The same with PDF
> files
> > - the  the ADOBE reader is invoked
> > My undesraning is that by writing file bytes to the servlet output, I am
> > just creating and HTML file where the file content is a body of the HTML
>
> Again no, the output is handled by the browser - if you set:
>
> Content-Type: text/html
>
> the browser will do as it's told and try to process the output as an
> HTML file.
>
>
>
> > But if I output the bytes of the file to the servlet output, it will
> look
> > the same way as I would open RTF file in the notepad - with all controll
> > characters inside.
> > Unless I am missing something here...
>
> Yes, the Content-Type header is the key to this.
>
> p
>
>
> > As far as directory listing - yes, I do see the directory listing for
> all
> > folders that are underneath of my application except WEB-INF and I
> didn't do
> > any special set up for that - I am using all default XMLs except the
> > web.xmlwhere I am defining my servlets.
> >
> > I appreciate your help.
> > thanks
> >
> > On 9/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:
> > Alla,
> >
> > alla winter wrote:
>  Thanks for the quick response.
>  So, I want to make sure that understand it right : you are proposing
> > that
>  the servlet should  display the file, instead of allowing Tomcat to
> > invoke
>  Microsoft Word to disply the file content.
> > I think you are misunderstanding what is really going on at a
> > fundamental level. Tomcat will never invoke Microsoft Word for any
> > reason, unless you have something truly crazy going on in the
> background.
> >
> > What I'm suggesting is that you write your own code to serve the
> > contents of a static file. It's pretty simple: open the file, write the
> > appropriate HTTP headers, copy the bytes to the servlet output stream,
> > close all streams, and you are done.
> >
>  The only issue with that is that
>  the file is created in the RTF format and it has control characters
> that
>  governs the formatting.
> > This is irrelevant. It doesn't matter if you are serving a text file or
> > a PDF, you are just serving bytes to the web browser.
> >
>  The second question was about how to set up TOMCAT not to allow the
>  directory listing
> > Actually, I think you have to specifically enable directory listings. If
> > you haven't enabled them, then you shouldn't be getting any. Are you
> > able to get a directory listing?
> >
> > -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]
>
>


-
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: Security restrictions for Tomcat

2007-09-26 Thread Caldarale, Charles R
> From: alla winter [mailto:[EMAIL PROTECTED] 
> Subject: Re: Security restrictions for Tomcat
> 
> I can see all the directory listing except WEB-INF directory. 
> I am using all default XMLs for configuration without any
> changes, except web.xml were I defined my servlets.

Directory listings are disabled by default, as described in the
DefaultServlet section of the conf/web.xml file.  You have either set
the listings parameter to true, or you have overridden the
DefaultServlet with one of your own in your webapp's WEB-INF/web.xml
file, and that one is displaying the directory contents.

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



BASIC auth question, simple example...

2007-09-26 Thread Greg Morphis
Hi, I'm a n00b so bare with me!

I've got Tomcat 5.5 installed on my machine to the default location
c:\Tomcat5.5

I'm trying to get a simple example of BASIC auth running and I'm not
having any luck.

I created the folder
C:\Tomcat5.5\webapps\security\
In there I have
C:\Tomcat5.5\webapps\security\index.html
with just a simple "Hello World"
and
C:\Tomcat5.5\webapps\security\WEB-INF\web.xml

In the web.xml file I have

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">

   
  
 Protected Area
 
 /security/*
  
  
 
 dau
  




  BASIC
  Example BASIC Authentication Area




  dau



and in the conf/tomcat-users.xml I added the dau role.
This is not working. When I run the page I'm taken to the Hello World
page, why am I not prompted for the password?

It has to be something simple!?

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: SESSIONS.ser (Too many open files)

2007-09-26 Thread Darek Czarkowski

Ranjan Kumar Baisak wrote:

I would think this would be the root issue: "Too many open files"

We dont have much file handling operations in our web applications, 
but again I am going to look minutely all IO operations in my 
application.
What OS are you running.  Some limit the number of open file 
handles.  Also might want to check to be sure you are closing files 
when finished with them in your webapp.


its running on  *Red Hat *Enterprise Linux AS 4. I am at all not good 
at system programming, but I would love to know any such 
commands/utilities exist that can tell me detail about what are the 
files getting opened in my web application which results such exception.


regards,



Ranjan Kumar Baisak wrote:


Hi Experts,
   I am facing a strange problem in my tomcat 
application. Suddenly it generates following Exceptions


java.io.FileNotFoundException: 
/server/http/site/music.yamaha.com/site/work/SESSIONS.ser (Too many 
open files)

  at java.io.FileOutputStream.open(Native Method)
  ..


And some other application FNF

java.io.FileNotFoundException: 
/server/http/site/ssd.com/site/dist/tilesCopy/en_US/siteTree.xml 
(Too many open files)

  at java.io.FileInputStream.open(Native Method)
...
...

What might be the possible causes that generates such exception?
Some people suggested me to check whether application is running on 
development mode, and if yes then change it to deployment mode i.e.


   configuration
  deployment
  


I am not using any  in my web.xml.
I would appreciate your thoughtful suggestion.

regards,
Ranjan


-
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 see your current settings use 'ulimit -a'. If you want to make 
permanent changes edit /etc/security/limits.conf
Everything in a system is a file, not just a single webpage, the default 
are not enough for your requirements.


--
Darek Czarkowski
Ph: 604 294 6557 (Ext. 113)
Fx: 604 294 6507
www.infinitesource.ca
darekc at infinitesource dot ca 



-
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: SESSIONS.ser (Too many open files)

2007-09-26 Thread Ranjan Kumar Baisak


To see your current settings use 'ulimit -a'. If you want to make 
permanent changes edit /etc/security/limits.conf
Everything in a system is a file, not just a single webpage, the 
default are not enough for your requirements.


Ok now I got it. default value for open files is 1024 and I think I need 
to increase open file descriptor limit.

Thanks a lot, I hope not to get this problem again.

-RB

-
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: SESSIONS.ser (Too many open files)

2007-09-26 Thread David Delbecq

Ranjan Kumar Baisak a écrit :
but I would love to know any such commands/utilities exist that can 
tell me detail about what are the files getting opened in my web 
application which results such exception. 

lsof will do it

-
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: BASIC auth question, simple example...

2007-09-26 Thread David Delbecq

Greg Morphis a écrit :

I created the folder
C:\Tomcat5.5\webapps\security\
  

So webapp name is "security", reachabel by http://server/security/

   
  
 Protected Area
 
 /security/*
  
  
 
 dau
  

You mapped security constraint to folder "/security/*" in your webapp. 
That means http://server/security/security/*
You probably should, considering where you index.xhtml is, map the 
security constraint to /* :)



-
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 crash @ midnight - but why?

2007-09-26 Thread Caldarale, Charles R
> From: Darek Czarkowski [mailto:[EMAIL PROTECTED] 
> Subject: Re: Tomcat crash @ midnight - but why?
> 
> Now, this would be funny, can you search the source code of 
> the deployed application for System.exit call?

Doesn't quite fit the symptoms.  When a webapp calls System.exit(), the
following entry does NOT appear in the logs:

Sep 26, 2007 1:23:07 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080

Whereas when the service is stopped or the shutdown string is sent to
the shutdown port, the above message does appear in the logs.  The OP
did report that the "Pausing ..." message is present.

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



Re: SESSIONS.ser (Too many open files)

2007-09-26 Thread David Delbecq
In unix, opened pipe (stdout/stdin, etc) and network sockets are 
considered opened files btw

Ranjan Kumar Baisak a écrit :


To see your current settings use 'ulimit -a'. If you want to make 
permanent changes edit /etc/security/limits.conf
Everything in a system is a file, not just a single webpage, the 
default are not enough for your requirements.


Ok now I got it. default value for open files is 1024 and I think I 
need to increase open file descriptor limit.

Thanks a lot, I hope not to get this problem again.

-RB

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



Tomcat 5.5.20 Stops Responding

2007-09-26 Thread Etienne Lacombe
Hello,

I would like some help in locating the cause of a problem on a Tomcat 5.5.20
server. I looked at many things but I don't know what else to look for.

Setup
   Linux
   Tomcat 5.5.20
   Java 1.6

The server runs fine for some days and then suddenly stops responding to
requests - the client's browser waits for a respond and times out.

On the server, there is no CPU usage. However, when trying to access any of
the webapps, including the Manager, they all time out.

We tried connecting to the JVM using the JConsole and we don't get a response
to that either.

I went through all the log files and could not find any significant error (no
out-of-memory, etc). Only a few error in our program but nothing that would
cause the whole server to freeze up. There were a few socket connection error
but they were not near the time of the freeze per what I could see.

If anybody could help me by directing me to what else I should look for, that
would be greatly appreciated!

Etienne



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



  1   2   >