RE: Mod_jk : increase maxfilesize for download

2006-09-24 Thread Jean-Bernard BRIAND
Hello,

Thanks for your respawn but my problem is the size of file to download and
not the numbers of simultanous download.

bye,

Jean-Bernard BRIAND
mailto:[EMAIL PROTECTED]




-Message d'origine-
De : Martin Gainty [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 24 septembre 2006 02:51
À : Tomcat Users List
Objet : Re: Mod_jk : increase maxfilesize for download


Jean-
your anglais is quite good-
If you want to optimise your mod_jk configuration
take a look at minThreads, maxThreads parameter for Connector configuration
at
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
Bon Chance,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: Jean-Bernard BRIAND [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Saturday, September 23, 2006 7:56 PM
Subject: Mod_jk : increase maxfilesize for download


 Hello,

 I use Tomcat 4.1.31, Apache 2.0.46 and mod_jk 1.2.18.

 I can't download a file with a size greatest than 71Ko over mod_jk. With a
 direct access to Apache or Tomcat i can download a file greatest than 5Mo.

 How can i tune my connector for serve this download ?


 Sorry for my english 

 Bye,
 
 Jean-Bernard BRIAND
 mailto:[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]



Tomcat 5.5.17 with windows xp

2006-09-24 Thread Oliver Wagner
Hello,
the last years I developed my webapps with tomcat and Linux. Because of my new 
employer I have to use windows now. But there occurs a problem. At the moment I 
debug my webapp.

With Tomcat and Linux I just have to restart the server and the container is 
completely erased. After the restart the tomcat react like it was never touched 
before.

Tomcat and windows react different. A exception occurred, I change some classes 
to solve the problem, I stop the Tomcat, wait a second and start the tomcat 
again. But the Tomcat behaviour is very strange. A normal behaviour (like 
with Linux) is only possible, if I restart my computer (windows).

But that need very much time, what can I do to have the same behaviour like 
tomcat and Linux? I hope someone can help me.

Tia

Oli


-
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: Mod_jk : increase maxfilesize for download

2006-09-24 Thread Rainer Jung

This is not an expected behaviour.

Any errors on the mod_jk or the tomcat side?

What are your mod_jk settings (Jk* ind httpd.conf and 
workers.properties), what are your AJP13 connector settings on the 
tomcat side?


Regards,

Rainer

Jean-Bernard BRIAND wrote:

Hello,

Thanks for your respawn but my problem is the size of file to download and
not the numbers of simultanous download.

bye,

Jean-Bernard BRIAND
mailto:[EMAIL PROTECTED]




-Message d'origine-
De : Martin Gainty [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 24 septembre 2006 02:51
À : Tomcat Users List
Objet : Re: Mod_jk : increase maxfilesize for download


Jean-
your anglais is quite good-
If you want to optimise your mod_jk configuration
take a look at minThreads, maxThreads parameter for Connector configuration
at
http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
Bon Chance,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: Jean-Bernard BRIAND [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Saturday, September 23, 2006 7:56 PM
Subject: Mod_jk : increase maxfilesize for download



Hello,

I use Tomcat 4.1.31, Apache 2.0.46 and mod_jk 1.2.18.

I can't download a file with a size greatest than 71Ko over mod_jk. With a
direct access to Apache or Tomcat i can download a file greatest than 5Mo.

How can i tune my connector for serve this download ?


Sorry for my english 

Bye,

Jean-Bernard BRIAND
mailto:[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]



--
kippdata informationstechnologie GmbH
Bornheimer Str. 33a
53111 Bonn

Tel.: 0228/98549-0
Fax:  0228/98549-50
www.kippdata.de
===
kippdata informationstechnologie GmbH
Bornheimer Str. 33a
D-53111 Bonn

Tel.: +49/0228/98549-0
Fax:  +49/0228/98549-50
www.kippdata.de

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



AW: Tomcat 5.5.17 with windows xp

2006-09-24 Thread Oliver Wagner
Hello,
now I noticed, that it is enough to restart my browser. The browser restart is 
needed by IE and Firefox. With Linux I don't need to restart the Firefox to see 
the changes from the restarted web server. What is the reason for that 
behaviour?

I use the session-mechanism from the tomcat - is that the root of the problem?

Greets

Oli

PS:
Sorry for my bad English.

 -Ursprüngliche Nachricht-
 Von: Oliver Wagner [mailto:[EMAIL PROTECTED]
 Gesendet: Sonntag, 24. September 2006 09:39
 An: users@tomcat.apache.org
 Betreff: Tomcat 5.5.17 with windows xp
 
 Hello,
 the last years I developed my webapps with tomcat and Linux. Because of my
 new employer I have to use windows now. But there occurs a problem. At the
 moment I debug my webapp.
 
 With Tomcat and Linux I just have to restart the server and the container
 is completely erased. After the restart the tomcat react like it was never
 touched before.
 
 Tomcat and windows react different. A exception occurred, I change some
 classes to solve the problem, I stop the Tomcat, wait a second and start
 the tomcat again. But the Tomcat behaviour is very strange. A normal
 behaviour (like with Linux) is only possible, if I restart my computer
 (windows).
 
 But that need very much time, what can I do to have the same behaviour
 like tomcat and Linux? I hope someone can help me.
 
 Tia
 
 Oli
 
 
 -
 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 seems slowing down, need help

2006-09-24 Thread jankitten

In single linux machine, after running Apache, per each account each tomcat
is running for web hosting service.

In a while after, although running just one or two tomcats, the websites
which were properly running on the explorer no longer respond.  I think
tomcat process is still on but the website does not show on the explorer and
only leaves blank.

current configuration for the server is as below:

Apache 2.0.59
JKConnector mod_jk 1.2.18
tomcat : 4.1
jdk : 1.5.0

any experience reply is welcome.  any tip, hints is preciated


-- 
View this message in context: 
http://www.nabble.com/tomcat-seems-slowing-down%2C-need-help-tf2326113.html#a6471383
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: static objects, server.xml and preventing running out of available file descriptors

2006-09-24 Thread Mladen Adamovic

Leon Rosenberg wrote:

I use WordNetProcessor in many JSP files and it seems if I use it in
static way using
%! static WordNetProcessor wordNetProcessor=new WordNetProcessor(); %
it won't lock many files.


then your WordNetProcessor class is probably buggy. Maybe you should
show us your code to detect where the problem is.


That class uses other library (JWNL) which opens some files and I cannot 
modify that other library and I think it is not practical at this moment 
to search for bugs in that library.





you can lower the thread count, but I think it won't help you much. Do
you know how many concurrent users your site actually have?


Currently, it don't have many concurrent users (~400 uniques a day) but 
my traffic goes up, since website is just 6 months old.
Also, some users tends to send many requests a day. Some even 500 
requests a day (seems to be manual, from log files).
At this moment 5 threads would be probably enough, but in the future I 
might need significantly more in case of i.e. slashdot effect or DoS 
attacks.



regards
Leon


Thanks for your answer.


-
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: Mod_jk : increase maxfilesize for download

2006-09-24 Thread Martin Gainty
You misunderstand the answer 
If you're not using a DB to handle the storage of these large units AND
If you're not using any type of CompressionFilter 
then you will have to break up your transmission to individual fragments inside 
threads 
and then reassemble the individual these fragments at the other end
Bye
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Jean-Bernard BRIAND [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Martin Gainty [EMAIL 
PROTECTED]
Sent: Sunday, September 24, 2006 3:19 AM
Subject: RE: Mod_jk : increase maxfilesize for download


 Hello,
 
 Thanks for your respawn but my problem is the size of file to download and
 not the numbers of simultanous download.
 
 bye,
 
 Jean-Bernard BRIAND
 mailto:[EMAIL PROTECTED]
 
 
 
 
 -Message d'origine-
 De : Martin Gainty [mailto:[EMAIL PROTECTED]
 Envoyé : dimanche 24 septembre 2006 02:51
 À : Tomcat Users List
 Objet : Re: Mod_jk : increase maxfilesize for download
 
 
 Jean-
 your anglais is quite good-
 If you want to optimise your mod_jk configuration
 take a look at minThreads, maxThreads parameter for Connector configuration
 at
 http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html
 Bon Chance,
 Martin --
 *
 This email message and any files transmitted with it contain confidential
 information intended only for the person(s) to whom this email message is
 addressed.  If you have received this email message in error, please notify
 the sender immediately by telephone or email and destroy the original
 message without making a copy.  Thank you.
 
 
 
 - Original Message -
 From: Jean-Bernard BRIAND [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Saturday, September 23, 2006 7:56 PM
 Subject: Mod_jk : increase maxfilesize for download
 
 
 Hello,

 I use Tomcat 4.1.31, Apache 2.0.46 and mod_jk 1.2.18.

 I can't download a file with a size greatest than 71Ko over mod_jk. With a
 direct access to Apache or Tomcat i can download a file greatest than 5Mo.

 How can i tune my connector for serve this download ?


 Sorry for my english 

 Bye,
 
 Jean-Bernard BRIAND
 mailto:[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]


 


ASP.NET HttpHandler in Tomcat?!

2006-09-24 Thread nubie

Hi,
  I'm sorry to bother you all, but I need to know is there a way to setup an
ASP.NET HttpHandler-like servlet or something similar on Tomcat 5.x?!
  I'd basically just like to have all of the same file extension requests to
be processed with just one servlet?! Is that at all possible!?
  I realize that must be a trivial thing to an experienced Tomcat user (I'm
a n00b, sorry!? :( ) but I tried searching for HttpHandler equivalent on
Tomcat and came up with nothing concrete?! Any place with a sample to
explain how that can easily be configured on Tomcat would greatly be
appreciated!
  TIA
-- 
View this message in context: 
http://www.nabble.com/ASP.NET-HttpHandler-in-Tomcat-%21-tf2326374.html#a6472113
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: ASP.NET HttpHandler in Tomcat?!

2006-09-24 Thread Lung Chan

There's a lot of framework that do just that.

Try spring framework
www.springframework.org, there's a tutorial in the site that introduced
spring MVC

You will be very happy after

On 9/24/06, nubie [EMAIL PROTECTED] wrote:



Hi,
  I'm sorry to bother you all, but I need to know is there a way to setup
an
ASP.NET HttpHandler-like servlet or something similar on Tomcat 5.x?!
  I'd basically just like to have all of the same file extension requests
to
be processed with just one servlet?! Is that at all possible!?
  I realize that must be a trivial thing to an experienced Tomcat user
(I'm
a n00b, sorry!? :( ) but I tried searching for HttpHandler equivalent on
Tomcat and came up with nothing concrete?! Any place with a sample to
explain how that can easily be configured on Tomcat would greatly be
appreciated!
  TIA
--
View this message in context:
http://www.nabble.com/ASP.NET-HttpHandler-in-Tomcat-%21-tf2326374.html#a6472113
Sent from the Tomcat - User mailing list archive at Nabble.com.


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




Re: Mod_jk : increase maxfilesize for download

2006-09-24 Thread Mark Thomas
Martin Gainty wrote:

Umm no.

 If you're not using a DB to handle the storage of these large units AND

How data is stored has no impact on how it is transmitted.

 If you're not using any type of CompressionFilter 
 then you will have to break up your transmission to individual fragments 
 inside threads 
 and then reassemble the individual these fragments at the other end

Tomcat should easily handle files in the tens of megabytes range. As
Rainer said earlier in this thread, the limit experienced by the OP is
not expected.

Mark


-
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: static objects, server.xml and preventing running out of available file descriptors

2006-09-24 Thread Leon Rosenberg

Hi Mladen,

On 9/24/06, Mladen Adamovic [EMAIL PROTECTED] wrote:

Leon Rosenberg wrote:
 I use WordNetProcessor in many JSP files and it seems if I use it in
 static way using
 %! static WordNetProcessor wordNetProcessor=new WordNetProcessor(); %
 it won't lock many files.

 then your WordNetProcessor class is probably buggy. Maybe you should
 show us your code to detect where the problem is.

That class uses other library (JWNL) which opens some files and I cannot
modify that other library and I think it is not practical at this moment
to search for bugs in that library.


No, but maybe you are using it the wrong way?





 you can lower the thread count, but I think it won't help you much. Do
 you know how many concurrent users your site actually have?

Currently, it don't have many concurrent users (~400 uniques a day) but
my traffic goes up, since website is just 6 months old.
Also, some users tends to send many requests a day. Some even 500
requests a day (seems to be manual, from log files).
At this moment 5 threads would be probably enough, but in the future I
might need significantly more in case of i.e. slashdot effect or DoS
attacks.



Still, decreasing threads isn't a solution :-) It may work for some
months, but in long term you should try to find out who's eating away
your file descriptors, or change the hoster.

Btw, I like your site, especially the SEO tools :-)
Leon

-
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: static objects, server.xml and preventing running out of available file descriptors

2006-09-24 Thread Mladen Adamovic
I've put System.gc() in one place in the code and I'm seeing that lsof 
| wc -l shows that my web application uses less file descriptors as 
time go on :)


I hope the server won't run out of available file descriptors in the future.

Also, I've put in /etc/profile.local the line ulimit -n 8192, hoping 
it will help.


I'm planing to make a cron job which will check server each 10 minutes 
and reboot the computer if web server is unavailable at the third time 
(wget returns error).





-
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: Struggling with basic database connection

2006-09-24 Thread Alan Chandler
On Saturday 23 September 2006 15:23, David Smith wrote:
 Correction: context.xml belongs in META-INF of the war archive.


I have just conducted experiments with Tomcat 5.0

putting a context.xml file in META-INF doesn't appear to work

I have not been having success with putting in conf/server.xml - but I have 
had success with putting the context in conf/Catalina/localhost/akcmoney.xml


-- 
Alan Chandler
http://www.chandlerfamily.org.uk


-
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: Problem with Tomcat 5.5.15, [173 javajni.c] [error] %1 is not a valid Win32 application

2006-09-24 Thread joon yoo

Mr. Lau,

Thank you very much for this batch file, it was a great help in
getting tomcat 5.5.17 running on my 64bit win2k3 install.

May I ask if you would possibly add some java memory management
options to the batch file so that it may take advantage of the 64bit
jvm?

With great appreciation and gratitude,

joon yoo


On 4/6/06, Juan Jose Garcia Lau  wrote:

No Matt I didn't get answer, but I think the problem it's the program that run 
as a service: tomcat5w.exe.  It runs as 32bit, so when this tries to start the 
tomcat at 64 bit gives the error.



But I resolve temporally this way:



I make this bat file, just fix the path for your machine.



---



if %OS% == Windows_NT setlocal



SET JAVA_HOME=d:\jdk1.5.0_06

SET CATALINA_HOME=d:\Tomcat_5.5.15



start Tomcat 5.5.15 %JAVA_HOME%\bin\java -classpath %JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\bin\bootstrap.jar 
-Dcatalina.home=%CATALINA_HOME% -Dcatalina.base=%CATALINA_HOME% -Djava.endorsed.dirs=%CATALINA_HOME%\common\endorsed 
-Djava.io.tmpdir=%CATALINA_HOME%\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-Djava.util.logging.config.file=%CATALINA_HOME%\conf\logging.properties -Djava.security.manager 
-Djava.security.policy==%CATALINA_HOME%\conf\catalina.policy org.apache.catalina.startup.Bootstrap start



---



The problem, it's that tomcat is not running as a service and you need to be 
logged with an account.



You may also find useful to download this tcnative-1.dll for AMD win64 at

http://tomcat.heanet.ie/native/1.1.2/binaries/win64/amd64/



Hope this help you.



If you find how to run Tomcat as a service in win64 don't forget to tell me.



Good luck and Regards,



Juan José García Lau
Información y Tecnología



From: Matt Hill [mailto:[EMAIL PROTECTED]
Sent: Miércoles, 05 de Abril de 2006 09:11 p.m.
To: Juan Jose Garcia Lau
Subject: Problem with Tomcat 5.5.15, [173 javajni.c] [error] %1 is not a valid 
Win32 application



Hi Juan,



Did you ever get an answer to the problem below? We are having the same issue:



Hi, I have installed successfully tomcat 5.5.15 for development, but now
I need it to install in a production server, but the Apache Tomcat
service doesn't start.  I think the problem it's the machine because it
an AMD Opteron 64Bit with Windows 2003.

Anybody knows how can I resolve the issue?

Thanks in advance.

Juan Garcia


This is the log:

[2006-02-27 11:37:36] [info] Service Tomcat5 name Apache Tomcat
[2006-02-27 11:37:37] [info] Service Tomcat5 installed
[2006-02-27 11:37:37] [info] Procrun finished.
[2006-02-27 11:37:37] [info] Updating service...
[2006-02-27 11:37:38] [info] Service Tomcat5 updated
[2006-02-27 11:37:38] [info] Update service finished.
[2006-02-27 11:37:38] [info] Procrun finished.
[2006-02-27 11:37:39] [info] Updating service...
[2006-02-27 11:37:40] [info] Service Tomcat5 updated
[2006-02-27 11:37:40] [info] Update service finished.
[2006-02-27 11:37:40] [info] Procrun finished.
[2006-02-27 11:37:41] [info] Updating service...
[2006-02-27 11:37:41] [info] Service Tomcat5 updated
[2006-02-27 11:37:41] [info] Update service finished.
[2006-02-27 11:37:41] [info] Procrun finished.
[2006-02-27 11:37:46] [info] Running Service...
[2006-02-27 11:37:46] [info] Starting service...
[2006-02-27 11:37:46] [173  javajni.c] [error] %1 is not a valid Win32
application.
[2006-02-27 11:37:46] [924  prunsrv.c] [error] Failed creating java
D:\jdk1.5.0_06\jre\bin\server\jvm.dll
[2006-02-27 11:37:47] [1179 prunsrv.c] [error] ServiceStart returned 1
[2006-02-27 11:37:47] [info] Run service finished.
[2006-02-27 11:37:47] [info] Procrun finished.





Thanks,

Matt Hill




This message contains information from Banco Cuscatlan Guatemala, which may be 
confidential
and privileged.  If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note that
such actions are prohibited.  If you have received this transmission in error,
please disregard 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: ASP.NET HttpHandler in Tomcat?!

2006-09-24 Thread Tim Lucia
Or you can simply map all the file extension URLs to the servlet of your
choice.  A framework is *not* required.  Google for servlet-mapping.

Tim


-Original Message-
From: Lung Chan [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 24, 2006 10:09 AM
To: Tomcat Users List
Subject: Re: ASP.NET HttpHandler in Tomcat?!

There's a lot of framework that do just that.

Try spring framework
www.springframework.org, there's a tutorial in the site that introduced
spring MVC

You will be very happy after

On 9/24/06, nubie [EMAIL PROTECTED] wrote:


 Hi,
   I'm sorry to bother you all, but I need to know is there a way to setup
 an
 ASP.NET HttpHandler-like servlet or something similar on Tomcat 5.x?!
   I'd basically just like to have all of the same file extension requests
 to
 be processed with just one servlet?! Is that at all possible!?
   I realize that must be a trivial thing to an experienced Tomcat user
 (I'm
 a n00b, sorry!? :( ) but I tried searching for HttpHandler equivalent on
 Tomcat and came up with nothing concrete?! Any place with a sample to
 explain how that can easily be configured on Tomcat would greatly be
 appreciated!
   TIA
 --
 View this message in context:

http://www.nabble.com/ASP.NET-HttpHandler-in-Tomcat-%21-tf2326374.html#a6472
113
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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





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



Re: ASP.NET HttpHandler in Tomcat?!

2006-09-24 Thread Lung Chan

You are Right tim much easier,
but how do you know from which url that the request have been send?
which object give you this kinda information?

On 9/24/06, Tim Lucia [EMAIL PROTECTED] wrote:


Or you can simply map all the file extension URLs to the servlet of your
choice.  A framework is *not* required.  Google for servlet-mapping.

Tim


-Original Message-
From: Lung Chan [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 10:09 AM
To: Tomcat Users List
Subject: Re: ASP.NET HttpHandler in Tomcat?!

There's a lot of framework that do just that.

Try spring framework
www.springframework.org, there's a tutorial in the site that introduced
spring MVC

You will be very happy after

On 9/24/06, nubie [EMAIL PROTECTED] wrote:


 Hi,
   I'm sorry to bother you all, but I need to know is there a way to
setup
 an
 ASP.NET HttpHandler-like servlet or something similar on Tomcat 5.x?!
   I'd basically just like to have all of the same file extension
requests
 to
 be processed with just one servlet?! Is that at all possible!?
   I realize that must be a trivial thing to an experienced Tomcat user
 (I'm
 a n00b, sorry!? :( ) but I tried searching for HttpHandler equivalent
on
 Tomcat and came up with nothing concrete?! Any place with a sample to
 explain how that can easily be configured on Tomcat would greatly be
 appreciated!
   TIA
 --
 View this message in context:


http://www.nabble.com/ASP.NET-HttpHandler-in-Tomcat-%21-tf2326374.html#a6472
113
 Sent from the Tomcat - User mailing list archive at Nabble.com.


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





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




RE: ASP.NET HttpHandler in Tomcat?!

2006-09-24 Thread Tim Lucia
getPathInfo()

http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpServl
etRequest.html#getPathInfo()

getRequestURI()

http://java.sun.com/j2ee/sdk_1.2.1/techdocs/api/javax/servlet/http/HttpServl
etRequest.html#getRequestURI()


-Original Message-
From: Lung Chan [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 24, 2006 10:18 PM
To: Tomcat Users List
Subject: Re: ASP.NET HttpHandler in Tomcat?!

You are Right tim much easier,
but how do you know from which url that the request have been send?
which object give you this kinda information?

On 9/24/06, Tim Lucia [EMAIL PROTECTED] wrote:

 Or you can simply map all the file extension URLs to the servlet of your
 choice.  A framework is *not* required.  Google for servlet-mapping.

 Tim


 -Original Message-
 From: Lung Chan [mailto:[EMAIL PROTECTED]
 Sent: Sunday, September 24, 2006 10:09 AM
 To: Tomcat Users List
 Subject: Re: ASP.NET HttpHandler in Tomcat?!

 There's a lot of framework that do just that.

 Try spring framework
 www.springframework.org, there's a tutorial in the site that introduced
 spring MVC

 You will be very happy after

 On 9/24/06, nubie [EMAIL PROTECTED] wrote:
 
 
  Hi,
I'm sorry to bother you all, but I need to know is there a way to
 setup
  an
  ASP.NET HttpHandler-like servlet or something similar on Tomcat 5.x?!
I'd basically just like to have all of the same file extension
 requests
  to
  be processed with just one servlet?! Is that at all possible!?
I realize that must be a trivial thing to an experienced Tomcat user
  (I'm
  a n00b, sorry!? :( ) but I tried searching for HttpHandler equivalent
 on
  Tomcat and came up with nothing concrete?! Any place with a sample to
  explain how that can easily be configured on Tomcat would greatly be
  appreciated!
TIA
  --
  View this message in context:
 


http://www.nabble.com/ASP.NET-HttpHandler-in-Tomcat-%21-tf2326374.html#a6472
 113
  Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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





-
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: Upload Exception - Time out error

2006-09-24 Thread Sandeep Darvekar
Hi Mark,

Thanks for refereeing to this link. However when I looked at server.xml that
I have on my tamcat installation it does not show any attribute with name
maxPostSize. Here is my server.xml attached.
Please let me know how to configure it.

Thanks 
Sandeep Darvekar
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 22 September, 2006 4:20 AM
To: Tomcat Users List
Subject: Re: Upload Exception - Time out error

Sandeep Darvekar wrote:
 Hello,
 
 Is there any limit configuration on tomcat that restricts uploading the
 files above 2MB size?

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

You want maxPostSize

Mark


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

DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.
!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN

  !-- Comment these entries out to disable JMX MBeans support used for the 
   administration web application --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally, that Container is an Engine,
   but this is not required.

   Note:  A Service is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this level.
   --

  !-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- A Connector represents an endpoint by which requests are received
 and responses are returned.  Each Connector passes requests on to the
 associated Container (normally an Engine) for processing.

 By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
 You can also enable an SSL HTTP/1.1 Connector on port 8443 by
 following the instructions below and uncommenting the second Connector
 entry.  SSL support requires the following steps (see the SSL Config
 HOWTO in the Tomcat 5 documentation bundle for more detailed
 instructions):
 * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or
   later, and put the JAR files into $JAVA_HOME/jre/lib/ext.
 * Execute:
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
 $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
   with a password value of changeit for both the certificate and
   the keystore itself.

 By default, DNS lookups are enabled when a web application calls
 request.getRemoteHost().  This can have an adverse impact on
 performance, so you can disable it by setting the
 enableLookups attribute to false.  When DNS lookups are disabled,
 request.getRemoteHost() will return the String version of the
 IP address of the remote client.
--

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=8085 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  

RE: Upload Exception - Time out error

2006-09-24 Thread Caldarale, Charles R
 From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] 
 Subject: RE: Upload Exception - Time out error
 
 Thanks for refereeing to this link. However when I looked at 
 server.xml that I have on my tamcat installation it does not
 show any attribute with name maxPostSize.

Read the doc, not your server.xml - maxPostSize is an attribute of the
Connector element, and has a default value of 2MB.  Once more, with
feeling:
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 - 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: Upload Exception - Time out error

2006-09-24 Thread Sandeep Darvekar
Just to reconfirm, my server.xml should have connector element as

Connector port=8085 maxPostSize=10485760 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100

   connectionTimeout=2 disableUploadTimeout=true /

Where I am setting maxPostSize=10MB

Please correct me if I am wrong. I will be doing this change on production
server where I am facing this issue and cannot test this in staging as we
cannot reproduce this problem there.

Thanks for sending me the quick reply.

 

Thanks 

Sandeep Darvekar

Persistent Systems Pvt. Ltd. India

Ph: +1-408-406-1282 (Cell)

Ph: +91-98811-52525 (Cell, India)

Ph: +91-20-3023-4692 (Office, India)

 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 24 September, 2006 8:16 PM
To: Tomcat Users List
Subject: RE: Upload Exception - Time out error

 

 From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] 

 Subject: RE: Upload Exception - Time out error

 

 Thanks for refereeing to this link. However when I looked at 

 server.xml that I have on my tamcat installation it does not

 show any attribute with name maxPostSize.

 

Read the doc, not your server.xml - maxPostSize is an attribute of the

Connector element, and has a default value of 2MB.  Once more, with

feeling:

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

 

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


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.


Re: Upload Exception - Time out error

2006-09-24 Thread David Smith
The connector element you posted has it correctly.  I wouldn't try the 
short form 10MB though --  the docs don't mention that as a valid way 
of expressing the value.


As far as updating a production service, it's always best to try it in a 
parallel test environment.  If that's not an option, then make a copy of 
the existing server.xml and roll back to it if the change has unwanted 
side effects.  In this case I doubt there will be any.


--David

Sandeep Darvekar wrote:

Just to reconfirm, my server.xml should have connector element as

Connector port=8085 maxPostSize=10485760 maxHttpHeaderSize=8192

   maxThreads=150 minSpareThreads=25 maxSpareThreads=75

   enableLookups=false redirectPort=8443 acceptCount=100

   connectionTimeout=2 disableUploadTimeout=true /

Where I am setting maxPostSize=10MB

Please correct me if I am wrong. I will be doing this change on production
server where I am facing this issue and cannot test this in staging as we
cannot reproduce this problem there.

Thanks for sending me the quick reply.

 

Thanks 


Sandeep Darvekar

Persistent Systems Pvt. Ltd. India

Ph: +1-408-406-1282 (Cell)

Ph: +91-98811-52525 (Cell, India)

Ph: +91-20-3023-4692 (Office, India)

 


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: 24 September, 2006 8:16 PM

To: Tomcat Users List
Subject: RE: Upload Exception - Time out error

 

  
From: Sandeep Darvekar [mailto:[EMAIL PROTECTED] 



  

Subject: RE: Upload Exception - Time out error



  

  
Thanks for refereeing to this link. However when I looked at 



  

server.xml that I have on my tamcat installation it does not



  

show any attribute with name maxPostSize.



 


Read the doc, not your server.xml - maxPostSize is an attribute of the

Connector element, and has a default value of 2MB.  Once more, with

feeling:

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

 


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


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.

  



--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


-
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: static objects, server.xml and preventing running out of available file descriptors

2006-09-24 Thread Darryl Miles

Mladen Adamovic wrote:
Also, I've put in /etc/profile.local the line ulimit -n 8192, hoping 
it will help.


WARNING: If you are unix the JVM uses the select() then increasing the 
ulimit above the default 1024 maybe dangerous.  This is because the 
default select() usage set only allocates enough memory for 1024 
descriptors in its bitmap.  This can result in the bitmap modification 
functions FD_SET() from scribbling over memory off the end of the memory 
allocation.


It is also necessary to audit all system libraries that the JVM loads 
and uses during the course of running, everything that waits for 
non-blocking IO must be audited.




If you are unix take a look at ls -l /proc/$pid/fd/ to see where all 
your file descriptors are going.



Darryl


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