Re: 3GP and MPEG-4

2005-10-13 Thread ALEX HYDE
Hahaha. Cheers for that then.

--- Jon Wingfield [EMAIL PROTECTED] wrote:

 To simply serve the content, no.
 I needed to know about it so I could extract the
 metadata, and because I 
 felt the need to know - must get out more ;)
 
 Jon
 
 ALEX HYDE wrote:
  Thanks Jon. That's really useful. I didn't realise
 it
  could just serve other types with so little
 involved.
  That's really good news.
  
  Do I need to know about the 'box model' or can I
 just
  take it as given and use it as is?
  
  Thanks again.
  
  Regards
  
  --- Jon Wingfield [EMAIL PROTECTED] wrote:
  
  
 Sure. You just need to add the correct mime-types
 to
 the web.xml in 
 $TOMCAT_HOME/conf and tomcat's default servlet
 will
 serve them.
 
 http://www.iana.org/assignments/media-types/
 
 audio/mp4
 audio/3gpp
 
 video/mp4
 video/3gpp
 video/3gpp2
 
 The video ones are probably the ones to go for.
 The 3gpp and mp4 file formats use a box model.
 The metadata boxes of which tells the browser
 (phone) what is really in 
 the file.
 
 HTH,
 
 Jon
 
 ALEX HYDE wrote:
 
 Dear All,
 
 Please can someone tell me whether I can
 configure
 Tomcat to serve 3GP and MPEG-4 for mobile
 devices.
 
 And
 
 possibly a small explanation.
 
 Thanks very much.
 
 Regards
 
 Alex Hyde
 
 

 
 
 

___
  
 To help you stay safe and secure online, we've
 
 developed the all new Yahoo! Security Centre.
 http://uk.security.yahoo.com
 
 
 

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

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

___
 
  How much free photo storage do you get? Store your
 holiday 
  snaps for FREE with Yahoo! Photos
 http://uk.photos.yahoo.com
  
 

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

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






___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.com

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



Re: AccessLogValve with POST

2005-10-13 Thread Tim Funk
You can't. I doubt you want post data in your acess log since POST data can 
be large (very large, megabytes large).



-Tim

Peter Menzel wrote:


Hi there,

I configured a AccessLogValve in the Context of my webapp with the 
common pattern:
Valve className=org.apache.catalina.valves.AccessLogValve   
prefix=mywebapp suffix=.log  pattern=common /


Unfortunately it only logs the parameters of GET requests, i.e. the 
query string.

How can I configure the Valve to log POST parameters, too ?



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



rueh:Problem with charsets with apache,tomcat, mysql

2005-10-13 Thread rueh hänä
HI folks

Soon i get desperate.

I have a FC4 webserver, that runs apache 2.0.54 and tomcat 5.5, mysql 4.1.
This server will be the replacement of our old FC2 webserver, that runs
apache 2.0.48 and tomcat 5.0.18, mysql 3.23.

What ive done: I took the old config from the FC2 server and adapted it for
the new server. I also took the websites (jsp and html) on it.
My problem ist, that special characters as äöü (im swiss) couldnt be
displayed. Instead of them i get some unreadable cryptics. But i think, the
charset settings are overall correct. 

If i configure the default charset in httpd.conf to UTF-8, i can read normal
html-sites, that include special characters.. withouth any problems..But
only html-sites.. But if i use ISO-8859-1, even html-sites are displayed
cryptic. 

The system language is set to de_DE.UTF-8, as in httpd.conf and tomcat5.conf
(LANG=de_DE.UTF-8), but i also tried it with the ISO-8859-1 charset. I also
tried other charsets and different variations of them.. always with the same
result. The best setting until now was UTF-8. But this only works for
only-html sites. The special characters still arent displayed correct on
jsp-sites alternatively mysql database entries. 

Now im on this problem since about 10 hours. Nothing helped yet, no similar
problem/solution descriptions helped. Nothing in google is appropriate to my
problem. 

Is there anything, that i forgot, didnt understand, made wrong?

I think, either the problem is one little thing, or more than one thing,
that i have to change. I hope, its the second one. 

I really hope, you can give me am advice

-- 
Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
DSL-Flatrate für nur 4,99 Euro/Monat*  http://www.gmx.net/de/go/dsl

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



AW: rueh:Problem with charsets with apache,tomcat, mysql

2005-10-13 Thread Marcus Franke
Hi, 

have the same problem with a RHEL WS4.

Try using de_DE as your locale not the UTF-8 Version

 -Ursprüngliche Nachricht-
 Von: rueh hänä [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 13. Oktober 2005 15:32
 An: tomcat-user@jakarta.apache.org
 Betreff: rueh:Problem with charsets with apache,tomcat, mysql
 
 HI folks
 
 Soon i get desperate.
 
 I have a FC4 webserver, that runs apache 2.0.54 and tomcat 5.5, mysql 4.1.
 This server will be the replacement of our old FC2 webserver, that runs
 apache 2.0.48 and tomcat 5.0.18, mysql 3.23.
 
 What ive done: I took the old config from the FC2 server and adapted it
 for
 the new server. I also took the websites (jsp and html) on it.
 My problem ist, that special characters as äöü (im swiss) couldnt be
 displayed. Instead of them i get some unreadable cryptics. But i think,
 the
 charset settings are overall correct.
 
 If i configure the default charset in httpd.conf to UTF-8, i can read
 normal
 html-sites, that include special characters.. withouth any problems..But
 only html-sites.. But if i use ISO-8859-1, even html-sites are displayed
 cryptic.
 
 The system language is set to de_DE.UTF-8, as in httpd.conf and
 tomcat5.conf
 (LANG=de_DE.UTF-8), but i also tried it with the ISO-8859-1 charset. I
 also
 tried other charsets and different variations of them.. always with the
 same
 result. The best setting until now was UTF-8. But this only works for
 only-html sites. The special characters still arent displayed correct on
 jsp-sites alternatively mysql database entries.
 
 Now im on this problem since about 10 hours. Nothing helped yet, no
 similar
 problem/solution descriptions helped. Nothing in google is appropriate to
 my
 problem.
 
 Is there anything, that i forgot, didnt understand, made wrong?
 
 I think, either the problem is one little thing, or more than one thing,
 that i have to change. I hope, its the second one.
 
 I really hope, you can give me am advice
 
 --
 Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat,
 DSL-Flatrate für nur 4,99 Euro/Monat*  http://www.gmx.net/de/go/dsl
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: The query string

2005-10-13 Thread Matt Wiseley
Cristi,

Take look at
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSer
vletRequest.html

Using a combination of getRequestURL().toString() and
request.getQueryString() should give you what you're looking for.

Matt


-Original Message-
From: Kyle [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 13, 2005 9:16 AM
To: Tomcat Users List
Subject: Re: The query string

Aren't these just ServletRequest parameters, so
request.getParameter(string) should do it shouldn't it?

cristi wrote:


 Hello all


 If a client makes the following request to a servlet container :

 http://localhost:8080/cont/admin/page.jsp?doc=1002003id=ZTJ006P1005

 is it possible to have access to this string directly ?

 Thx
 Cristi





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


--

Kind Regards

Kyle Lange

Tel: +61 (0)431 88 3978


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


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



Re: Sudden JVM crashes - a Tomcat problem?

2005-10-13 Thread Joakim Ahlén

Hi,

I am not a JVM-guru, but I'm guessing here. Tomcat 5.5 demands, as far 
as i know, jdk 1.5. You're not stating which version of tomcat you're 
using so this might not even be the case for you.


I'm not sure if this can cause a JVM crash like this, but my idea is 
that class files compiled with jdk 1.5 might crash if executed with jdk 
1.4 since jdk 1.5 has specific new features that are not available in 
jdk 1.4.


//j

Robert Sösemann wrote:

Hello,


we have a really tricky problem while running our web-application:

The JVM crashes from time to time for no apparent reason.
There seems to be no direct relation to any user-action, 
method-call or whatever.


We've checked the JVM crash dumps, but were not able to find
something suspicious. The only ideas we've come up, were the 
usual suspects: JNI-calls and JDBC-Type2-drivers.


This is our current setup:
- JVM 1.4.2_09 on Linux SuSE 9.3
- mysql-database 4.1.14-max with 
- mysql-connector-java-3.0.14-production driver

- postgresql-database 8.0.3 with postgresql-8.0-312.jdbc3 driver

The only JNI-calls that I know of, is through some 3rd party
UUID-library from org.doomdark.jug. Maybe the forementioned 
jdbc-drivers contain JNI-calls, despite being Type4-drivers.


I've also checked a bunch of mailing-lists and it seems there
are some outstanding bugs in hotspot, that may trigger the 
crash. Does anybody have more information or a workaround for this?



Who can help? Thanks in advance!

Robert
Leiter Softwareentwicklung


Gölz  Schwarz GmbH 
Waltherstr. 29, 80337 München, Germany 
phone: + 49 - (0)89 / 54 46 70 - 0 
fax: +49 - (0)89 / 54 46 70 - 10 
e-mail: [EMAIL PROTECTED] 
web: http://www.goelz.com 


Sie suchen den aktiven Dialog mit Ihren Kunden? Sie möchten neue Wege gehen, um
Ihre Zielgruppen online zu motivieren und zu binden? Dann haben wir genau das 
Richtige
für Sie: Marketing Suite - die Komplett-Lösung für intelligentes Online 
Marketing!
Informationen zur Marketing Suite erhalten Sie unter 
http://www.goelz.com/marketingsuite.

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

  


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



RE: Sudden JVM crashes - a Tomcat problem?

2005-10-13 Thread Caldarale, Charles R
 From: Joakim Ahlén [mailto:[EMAIL PROTECTED] 
 Subject: Re: Sudden JVM crashes - a Tomcat problem?
 
 I am not a JVM-guru, but I'm guessing here. Tomcat 5.5 
 demands, as far as i know, jdk 1.5.

That's simply not true.  Tomcat 5.5 runs fine on a 1.4 JRE once the Compat.zip 
download is installed.  Please verify your data before posting.

Any class files generated with -target 1.5 parameter will generate exceptions 
during class loading, not JVM crashes.

 - Chuck


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

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



effects of context defining twice

2005-10-13 Thread sudip shrestha
Configuration: Tomcat 5.5.7 + JDK 1.5.0_01 + Struts 1.2.7 + Hibernate
2.1.8+ Debian Sarge + Kernel
2.6.9 + Apache 2.0.53

I found that my administrator had forgotten to remove context element from
the server.xml file when I had META-INF/context.xml (which in effect creates
the webAppName.xml file in tomcat-install/conf/Catalina/host-name/. I have
one connection pool for Ldap Connection (uses
mozilla.org/directoryhttp://mozilla.org/directorynetscape
java-ldap-sdk) and another for DBCP for JDBC connections in our
company webapp.

Now, I found this out after outputting some verbose during the
tomcat-startup, and I have removed this yesterday, and it is working ok now.
I am assuming that because of context duplication, there were two instances
of two connection pools as well as two Hibernate Session Factories (I found
that during the startup-Database was being mapped twice)

We used to have our application locked up after every week, sometimes a half
week.The pages that didn't have to do anything with ldap/jdbc would just
come fine, but any other page would just lock up and would have to wait
forever...

I am not sure if this is due to context-duplication or not.This is yet
to be seen as I have just removed this redundancy.But I would like to
know if there are any known dependencies because of this redundancy from the
the developers as well..


RE: upgrade from 5.0.28

2005-10-13 Thread Caldarale, Charles R
 From: Mark [mailto:[EMAIL PROTECTED] 
 Subject: upgrade from 5.0.28
 
 Can somebody recommend the version for upgrade from tomcat 5.0.28
 that will use java 1.4.2.

All Tomcat 5.5 versions run on JRE 1.4.2 when the Compat.zip download is
installed.  Version 5.5.12 has just recently been marked stable, and
seems to run successfully in our testing (admittedly somewhat limited at
this point).  We had been using 5.5.9 before that with no problems.

 - Chuck


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

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



Re: effects of context defining twice

2005-10-13 Thread sudip shrestha
Just wanted to mention, cpu usage and memory usage just look fine and there
is no output/exception on any of the log files during the lock up period.

-- Forwarded message --
From: sudip shrestha [EMAIL PROTECTED]
Date: Oct 13, 2005 9:04 AM
Subject: effects of context defining twice
To: Tomcat Users List tomcat-user@jakarta.apache.org,
tomcat-dev@jakarta.apache.org


Configuration: Tomcat 5.5.7 + JDK 1.5.0_01 + Struts 1.2.7 + Hibernate
2.1.8+ Debian Sarge + Kernel
2.6.9 + Apache 2.0.53

I found that my administrator had forgotten to remove context element from
the server.xml file when I had META-INF/context.xml (which in effect creates
the webAppName.xml file in tomcat-install/conf/Catalina/host-name/. I have
one connection pool for Ldap Connection (uses
mozilla.org/directoryhttp://mozilla.org/directorynetscape
java-ldap-sdk) and another for DBCP for JDBC connections in our
company webapp.

Now, I found this out after outputting some verbose during the
tomcat-startup, and I have removed this yesterday, and it is working ok now.
I am assuming that because of context duplication, there were two instances
of two connection pools as well as two Hibernate Session Factories (I found
that during the startup-Database was being mapped twice)

We used to have our application locked up after every week, sometimes a half
week.The pages that didn't have to do anything with ldap/jdbc would just
come fine, but any other page would just lock up and would have to wait
forever...

I am not sure if this is due to context-duplication or not.This is yet
to be seen as I have just removed this redundancy.But I would like to
know if there are any known dependencies because of this redundancy from the
the developers as well..


Re: AW: rueh:Problem with charsets with apache,tomcat, mysql

2005-10-13 Thread Wade Chandler
--- rueh hänä [EMAIL PROTECTED] wrote:

 Hi.
 
 I used de_DE, too, same effect.. I dont know, whats
 happening. The best
 setting until now was UTF-8, because at least the
 html-sites were displayed
 correctly. The old server uses de_DE, too, and the
 configs are set to
 iso-8859-15. Now i set this setting once again, to
 be secure. But as i
 expected, nothing changed. 
 
 
 
  Von: Marcus Franke [EMAIL PROTECTED]
  An: Tomcat Users List users@tomcat.apache.org
  Betreff: AW: rueh:Problem with charsets with
 apache,tomcat, mysql
  Datum: Thu, 13 Oct 2005 15:36:52 +0200
  
  Hi, 
  
  have the same problem with a RHEL WS4.
  
  Try using de_DE as your locale not the UTF-8
 Version
  
   -Ursprüngliche Nachricht-
   Von: rueh hänä [mailto:[EMAIL PROTECTED]
   Gesendet: Donnerstag, 13. Oktober 2005 15:32
   An: tomcat-user@jakarta.apache.org
   Betreff: rueh:Problem with charsets with
 apache,tomcat, mysql
   
   HI folks
   
   Soon i get desperate.
   
   I have a FC4 webserver, that runs apache 2.0.54
 and tomcat 5.5, mysql
  4.1.
   This server will be the replacement of our old
 FC2 webserver, that runs
   apache 2.0.48 and tomcat 5.0.18, mysql 3.23.
   
   What ive done: I took the old config from the
 FC2 server and adapted it
   for
   the new server. I also took the websites (jsp
 and html) on it.
   My problem ist, that special characters as äöü
 (im swiss) couldnt be
   displayed. Instead of them i get some unreadable
 cryptics. But i think,
   the
   charset settings are overall correct.
   
   If i configure the default charset in httpd.conf
 to UTF-8, i can read
   normal
   html-sites, that include special characters..
 withouth any problems..But
   only html-sites.. But if i use ISO-8859-1, even
 html-sites are displayed
   cryptic.
   
   The system language is set to de_DE.UTF-8, as in
 httpd.conf and
   tomcat5.conf
   (LANG=de_DE.UTF-8), but i also tried it with the
 ISO-8859-1 charset. I
   also
   tried other charsets and different variations of
 them.. always with the
   same
   result. The best setting until now was UTF-8.
 But this only works for
   only-html sites. The special characters still
 arent displayed correct on
   jsp-sites alternatively mysql database entries.
   
   Now im on this problem since about 10 hours.
 Nothing helped yet, no
   similar
   problem/solution descriptions helped. Nothing in
 google is appropriate
  to
   my
   problem.
   
   Is there anything, that i forgot, didnt
 understand, made wrong?
   
   I think, either the problem is one little thing,
 or more than one thing,
   that i have to change. I hope, its the second
 one.
   
   I really hope, you can give me am advice
   
   --
   Highspeed-Freiheit. Bei GMX supergünstig, z.B.
 GMX DSL_Cityflat,
   DSL-Flatrate für nur 4,99 Euro/Monat* 
 http://www.gmx.net/de/go/dsl
   
  

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

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 -- 
 NEU: Telefon-Flatrate fürs dt. Festnetz! GMX
 Phone_Flat: 9,99 Euro/Mon.*
 Für DSL-Nutzer. Ohne Providerwechsel!
 http://www.gmx.net/de/go/telefonie
 

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

Are static characters on your html pages displayed
correctly?  I had issues with the mysql driver where I
set to set the encoding on the driver itself as part
of the connection url.  You may need to do this if you
aren't already.  What I found was the data in the
database would get inserted wrong if I did not have
the correct encoding set on the driver, so I had to
correct my database connection encoding and the data
in the database as well.

Wade

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



Tomcat 4.1.31 hangs after 2 days .. any idea on what going on .. ?... please help

2005-10-13 Thread David Gagnon

Hi all,

 I have tomcat server in production and after some time (maybe 2 or 3 
days) it stops answering request.  When I acces the login page with my 
browser it just waits indefinitly for the page to load.. nothing happen.


 In my webapp I have a thread that look into the db .. I know that this 
thread is still working properly.  Is someone have any idea on what 
going on ?.. or on what can cause the server to hang the way it does?  
Or any suggestion to troubbleshoot to find what doing on?


I go throught Catalina.log and other logs file and there is nothing .. 
no exception not a clue :-(


This site is working for a while now and I don't know if the probleme 
just appears lately or was there since the beginning. 
The log file (Catalina.log) was 300megs .. I don't this as something to 
do with the problem thought. 
Here is other relevant information:


RedHat9, kernel 2.4.20-43.9
Mem:   20644402027876  36564  0 2920881204668
-/+ buffers/cache: 5311201533320
Swap:   942456 144260 798196
CPU Dual P4 Xeon 3Ghz HT disabled
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)

Thanks for your help.

/David Gagnon

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



RE: Tomcat 4.1.31 hangs after 2 days .. any idea on what going on .. ?... please help

2005-10-13 Thread Matt Wiseley
David,

Are you using a JDBC connection pool? I've seen Tomcat hang in this
way when there is a mismanaged connection pool (i.e. connections are
being left open until the pool runs out). Something to check any way...

Matt 

-Original Message-
From: David Gagnon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 13, 2005 1:03 PM
To: Tomcat Users List
Subject: Tomcat 4.1.31 hangs after 2 days .. any idea on what going on
.. ?... please help

Hi all,

  I have tomcat server in production and after some time (maybe 2 or 3
days) it stops answering request.  When I acces the login page with my
browser it just waits indefinitly for the page to load.. nothing happen.

  In my webapp I have a thread that look into the db .. I know that this
thread is still working properly.  Is someone have any idea on what
going on ?.. or on what can cause the server to hang the way it does?  
Or any suggestion to troubbleshoot to find what doing on?

I go throught Catalina.log and other logs file and there is nothing .. 
no exception not a clue :-(

This site is working for a while now and I don't know if the probleme
just appears lately or was there since the beginning. 
The log file (Catalina.log) was 300megs .. I don't this as something to
do with the problem thought. 
Here is other relevant information:

RedHat9, kernel 2.4.20-43.9
Mem:   20644402027876  36564  0 292088
1204668
-/+ buffers/cache: 5311201533320
Swap:   942456 144260 798196
CPU Dual P4 Xeon 3Ghz HT disabled
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)

Thanks for your help.

/David Gagnon

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


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



Re: Tomcat 4.1.31 hangs after 2 days .. any idea on what going on .. ?... please help

2005-10-13 Thread David Gagnon

Thanks for your answer !

 I'll check for that but like I said :

In my webapp I have a thread that look into the db .. I know that this
thread is still working properly.  Is someone have any idea on what

So sound to me that the problem is elsewhere.  But I will check for that 
anyway!  Thanks  for your help


/David

I will check f

Matt Wiseley wrote:


David,

Are you using a JDBC connection pool? I've seen Tomcat hang in this
way when there is a mismanaged connection pool (i.e. connections are
being left open until the pool runs out). Something to check any way...

Matt 


-Original Message-
From: David Gagnon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 13, 2005 1:03 PM

To: Tomcat Users List
Subject: Tomcat 4.1.31 hangs after 2 days .. any idea on what going on
.. ?... please help

Hi all,

 I have tomcat server in production and after some time (maybe 2 or 3
days) it stops answering request.  When I acces the login page with my
browser it just waits indefinitly for the page to load.. nothing happen.

 In my webapp I have a thread that look into the db .. I know that this
thread is still working properly.  Is someone have any idea on what
going on ?.. or on what can cause the server to hang the way it does?  
Or any suggestion to troubbleshoot to find what doing on?


I go throught Catalina.log and other logs file and there is nothing .. 
no exception not a clue :-(


This site is working for a while now and I don't know if the probleme
just appears lately or was there since the beginning. 
The log file (Catalina.log) was 300megs .. I don't this as something to
do with the problem thought. 
Here is other relevant information:


RedHat9, kernel 2.4.20-43.9
Mem:   20644402027876  36564  0 292088
1204668
-/+ buffers/cache: 5311201533320
Swap:   942456 144260 798196
CPU Dual P4 Xeon 3Ghz HT disabled
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)

Thanks for your help.

/David Gagnon

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


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


 




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



Re: Compiling mod_jk on FreeBSD

2005-10-13 Thread Randy Kunkee
Haven't looked at the code, but probably t is not an int. If it's a  
pointer, you're in for trouble.


Just to take a stab at it, try just casting the t instead of the  
whole expression. The following should compile and might even work:


   int tid = (int)t  0x;

Randy

On Oct 13, 2005, at 12:37 PM, Mike Stevens wrote:

I’m trying to compile mod_jk 1.2.14 under FreeBSD 5.3.  I have  
searched the tomcat archives for the last 6 months, and done some  
googling as well, to no avail.  I am getting the following error  
building mod_jk with gcc 3.4.2 and gmake 3.80:


Making all in common
gmake[1]: Entering directory `/usr/local/src/jakarta-tomcat- 
connectors-1.2.14.1-src/jk/native/common'
/usr/local/bin/bash /usr/local/apache2/build/libtool --silent -- 
mode=compile gcc -I/usr/local/apache2/include -g -O2 -DEAPI -g -O2 - 
DHAVE_APR  -I/usr/local/src/httpd-2.0.50/srclib/apr/include -I/usr/ 
local/src/httpd-2.0.50/srclib/apr-util/include -g -O2 -DEAPI - 
D_REENTRANT -D_THREAD_SAFE -I /include -I /include/ -c jk_util.c -o  
jk_util.lo

jk_util.c: In function `jk_gettid':
jk_util.c:1245: error: invalid operands to binary 
gmake[1]: *** [jk_util.lo] Error 1
gmake[1]: Leaving directory `/usr/local/src/jakarta-tomcat- 
connectors-1.2.14.1-src/jk/native/common'

gmake: *** [all-recursive] Error 1
[EMAIL PROTECTED]:/usr/local/src/jakarta-tomcat-connectors-1.2.14.1- 
src/jk/native$



The problem seems to be this line, near the end of  ./common/jk_util.c


int tid = (int)(t  0x);

Removing the  0x allows the jk_util to compile.  Clearly, I  
don’t know C, so I suspect strongly this is not the correct  
solution ;-).  Does anyone know how to get mod_jk to compile on  
FreeBSD?  TIA,


--
Mike



_
Tired of spam and viruses? Get a VolcanoMail account with  
SpamShield Pro and Anti-Virus technology! http://www.volcanomail.com/


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





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



RE: How to re-direct Tomcat output from console to file?

2005-10-13 Thread Mauricio Fernandez A.
you can find tomcat logs in $CATALINA_HOME/logs/catalina.out

Mauricio Fernández A.
Ingeniero de Sistemas
U. Autónoma de Manizales

-Mensaje original-
De: Philip Chang [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 13 octubre, 2005 21:10
Para: users@tomcat.apache.org
Asunto: How to re-direct Tomcat output from console to file?


Hello,

I am running Tomcat 5.0.27 on Windows 2000 Pro.

When I start Tomcat via

C:\Tomcat 5.0\bin\startup.bat

Tomcat would dump out many trace messages to the Windows Command Prompt,
such as:

usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
-debug
] [ -nonaming ] { start | stop }
Oct 13, 2005 3:05:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 13, 2005 3:05:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443

How can I redirect these trace messages to dump to a file instead?

Thanks for all pointers!
Philip



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


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



Re[2]: Jakarta Isapi Redirector on x64 Windows 2003 server / IIS 6.0

2005-10-13 Thread Victor Star
Hi Lyndon,

 No error messages anywhere.

 When you said no error messages anywhere, did you mean to include the Windows 
 Event Viewer?

Yes. For 64-bit AMD build there are errors. One about dll wanting AMD and 
another just saying ISAPI
filter can't be loaded - just after the first one.
But for the regular build - no messages on IIS restart. Just ISAPI filter 
status is Not Loaded - red
arrow.

Thanks,

-- 
Best regardz,
 Victor  

***
Do you ever feel that your sole purpose in life is simply to serve as a warning 
to others?


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



Re: Systems Architecture Pros and Cons

2005-10-13 Thread Peter Johnson


And you did :-) I'm sorry if my reply sounded grumpy (did it?). I guess 
I misinterpreted your intention for open discussion.


No wasn't grumpy I was a little frustrated as the discussion had gone 
off the bat from the beginning :(



The reason why I said two TCs is, well, it would be nice to have configs ready 
and tested for clustering. Without clustering TCs I don't think you can a 
cluster wide session. That would mean no load balancing as well.


This raises an interesting question, is there a known physical or 
practical limit to how many Tomcat instances can / should be in a single 
cluster? ... Yoav?


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



Re: RMI call fails if there is a space in tomcat home path.

2005-10-13 Thread sanjay paithankar
I tried the first one in your list, 
didn't work ..

-Sanjay 

--- Lyndon Tiu [EMAIL PROTECTED] wrote:

 On Thu, 13 Oct 2005 20:49:38 -0700 (PDT)
 users@tomcat.apache.org wrote:
  I search  on Bugzilla got following bug
 

http://issues.apache.org/bugzilla/show_bug.cgi?id=13983
  
 
 If the workarounds in the bugzilla don't work for
 you, I would try these three:
 
 1) c:\progra~1\abc
 
 2) C:\\Program\ Files\\abc
 
 3) C:/Program\ Files/abc
 
 --
 Lyndon Tiu
 

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




__ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

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