RE: Ream authentication + Apache Web Server Authentication

2005-02-01 Thread SAG - Jose Antonio Tarifa
That's my configuration, Apache serves static pages and tomcat dynamic ones.

My problem is authenticate the user with servlets FORM mechanism, and at the 
same time, be authenticated in Apache.  Like a Single-Sign-On.

Is that posible? Is there a mechanism to do that with JK2 connector?

José Antonio Tarifa Lorenzo
SAGE-OMEL
Tfno. +34 91 659 89 79
 

-Mensaje original-
De: Jorge Davila [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 31 de enero de 2005 21:43
Para: Tomcat Users List
Asunto: Re: Ream authentication + Apache Web Server Authentication

try to configure ajp13 connector to put apache in front of tomcat.



SAG - Jose Antonio Tarifa wrote:
 Hi.
  
 I have a question.  How can I mix authentication on both servers, Tomcat and 
 Apache?
  
 I want to use Form authentication with Tomcat, also I need Apache Web Server 
 to be authenticated.  Is posible to authenticate a user in Tomcat and get 
 authenticated in Apache at the same time?
  
 Thanks.
  
 José Antonio Tarifa Lorenzo
 SAGE-OMEL
 Tfno. +34 91 659 89 79
  
  
 


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



Mail Delivery (failure)

2005-02-01 Thread craigmcc
Message has been sent as a binary attachment.


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

Re: Problems connecting to Tomcat from remote machine

2005-02-01 Thread KwonNam Son
Have you checked Fedora's firewall?
As I know, Fedora's default firewall setting is to block 8080 port.

regards,
KwonNam.

On Tue, 1 Feb 2005 11:19:48 +0530, Debayan [EMAIL PROTECTED] wrote:
 Hi all,
 
 I recently installed Tomcat 4.1.31 on Linux Fedora Core 3. I downloaded
 the gzipped tar file from http://jakarta.apache.org and extracted it on a
 suitable directory. I also started it in the usual way and did not see any
 errors in the catalina.out file. I am also able to connect to the default
 Tomcat home page from the local machine using the URL http://localhost:8080
 
 However, I am simply unable to connect to the default Tomcat home page
 from any remote machine. The network interface on the Fedora box is fine -
 and I am able to connect to it over SSH/SFTP from any remote machine.
 However, I am not able to get to the Tomcat home page URL.
 
  Is there any specific configuration that needs to be done ? Any help on
 this would be most welcome.
 
 regards,
 Debayan.
 
 -
 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]



Problem with context path in TOMCAT 5.5.7

2005-02-01 Thread Martin Burgsmüller
Hi,
i have a problem with the Path attribute!
When i write it Path the application running but
not appears in in the manager application!

It´s only appers in Application list!

Context Path=/webapps/JSP_apps docBase=C:\Programme\Apache
Group\Apache2\htdocs\wonline\webapps\JSP_apps

debug=1 reloadable=true

/Context

Thanks for help!

Martin Burgsmüller



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



Re: Tomcat Log for Web site Stats view

2005-02-01 Thread Omar Adobati
take a look here to understand the way you can use to divide the logs
for the access on yours sites:
- http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html
- 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html#Access%20Log%20Valve

If you can find a good access-log analizer I'll be very glad to know it too.

Have a nice day,
  0mar


On Tue, 01 Feb 2005 11:56:52 +0530, Rajesh [EMAIL PROTECTED] wrote:
 Hai all
 
 I am using Tomcat5 i have 3 webapps.
 
 I know tomcat stores all its access logs of each site in logs folder .
 
 i want to display a WebSite Stats for thest 3 sites individuallin in
 there site ..
 
 Can anybody tell me how to do this ??
 
 its very urgent please help me
 
 if any free tool is available it will be soo helpfull
 
 thank you
 Rajesh
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Adobati Omar
[EMAIL PROTECTED]

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



Re: Notify

2005-02-01 Thread craigmcc

Protected Mail System Test.



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

Re: Slow HTTP upload of POST content

2005-02-01 Thread Parsons Technical Services
Search the archives. There is a thread on this and the cause.
http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]
Doug
- Original Message - 
From: Michael Merkulovich [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 2:14 AM
Subject: Slow HTTP upload of POST content


We are experiencing a very strange problem with HTTP uploads on tomcat5.
When uploading large files from IE over the network, upload speed is 
capped
at about 70kbytes/sec even though the network allows for much higher 
speeds.
Neither CPU nor disk access appears to be the bottleneck. When using 
FireFox
browser, upload speed is about 4000kbytes/sec. When using IE from the 
server
through loopback adapter, speed is 7000kbytes/sec.

This problem is happening on 2 separate servers. One is a win 2000 box 
with
a freshly installed OS. The other one is a brand new windows server 2003
enterprise edition.

I tried apache fileupload library and o'reilly MultipartRequest. I also
tried reading directly from InputStream all to the same effect.
There is one machine which runs file-for-file identical tomcat 
installation
under the same version of java. When accessing that machine with IE from
other boxes, uploads go fast.

I cannot figure out what's different between the machine on which it works
and the two on which it doesn't. Any ideas?
-- Mike
-
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: Failed JDBC connection hangs Tomcat

2005-02-01 Thread Arthur D'Alessandro
What version of the JTDS are you referring to, I know they recently
released 1.0 code...


On Sun, 30 Jan 2005 20:06:07 -0800, Hari Mailvaganam [EMAIL PROTECTED] wrote:
 The JTDS driver can cause the hanging you described - this has occured
 in a test we did on Win 2k, SQL Server 2k, 1.5 JDK.
 
 reagrds,
 
 Hari Mailvaganam
 
 
 On Sun, 30 Jan 2005 08:39:50 +0200, Igor [EMAIL PROTECTED] wrote:
  We have the same problem, that described in
 
  http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html
 
  There is ServletContextListener in our application, that schedule two tasks 
  for repeated fixed rate execution on context initialization 
  (Timer.scheduleAtFixedRate).
 
  First task is executed every minute. It queries MS SQL server, second task 
  is executed every hour.
 
  If MS SQL server goes down, first task tries to use connection to database.
  After this Tomcat may hang: when user tries to download a page, he or her 
  will wait for a long time (more that 1 day).
 
  At the same time second taks (that is executed every hour) works as it was 
  expected: there are corresponding entries in log file.
 
  First task is executed in separate thread, and I do not understand how can 
  it hang whole tomcat (at least one context).
 
  We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for MS 
  and JTDS drivers :-(
 
  Does somebody know how can I prevent tomcat from hang in such situations?
 
  Thank you in advance,
  Igor
 
  -
  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]
 
 


-- 
-Art D'Alessandro

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



AW: Slow HTTP upload of POST content

2005-02-01 Thread CHRISTOPH.EMMERSBERGER
Sorry i did'nt find the thread, althoug I searched for somthing like this.
If you know exactly, where the thread is, send me the adress, cause I dont
know where it is, and it would help me a lot of, not to loose more time
on this search.

thx

--
 BMW Group
 Herr Christoph Emmersberger
 Praktikant
 mailto:[EMAIL PROTECTED]
 Url: http://www.bmwgroup.de
-- 


-Ursprüngliche Nachricht-
Von: Parsons Technical Services 
[mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 1. Februar 2005 14:19
An: Tomcat Users List
Betreff: Re: Slow HTTP upload of POST content


Search the archives. There is a thread on this and the cause.

http://mail-archives.apache.org/eyebrowse/SummarizeList?listNam
[EMAIL PROTECTED]

Doug

- Original Message - 
From: Michael Merkulovich [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 2:14 AM
Subject: Slow HTTP upload of POST content


 We are experiencing a very strange problem with HTTP uploads 
on tomcat5.
 When uploading large files from IE over the network, upload speed is 
 capped
 at about 70kbytes/sec even though the network allows for much higher 
 speeds.
 Neither CPU nor disk access appears to be the bottleneck. When using 
 FireFox
 browser, upload speed is about 4000kbytes/sec. When using IE 
from the 
 server
 through loopback adapter, speed is 7000kbytes/sec.

 This problem is happening on 2 separate servers. One is a 
win 2000 box 
 with
 a freshly installed OS. The other one is a brand new windows 
server 2003
 enterprise edition.

 I tried apache fileupload library and o'reilly 
MultipartRequest. I also
 tried reading directly from InputStream all to the same effect.

 There is one machine which runs file-for-file identical tomcat 
 installation
 under the same version of java. When accessing that machine 
with IE from
 other boxes, uploads go fast.

 I cannot figure out what's different between the machine on 
which it works
 and the two on which it doesn't. Any ideas?

 -- Mike

 -
 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: Failed JDBC connection hangs Tomcat

2005-02-01 Thread Igor
Hello!
I am referring to JTDS 1.0.
I think, that the problem is in net.sourceforge.jtds.jdbc.SharedSocket 
class: it should set timeout for socket, otherwise
methods getNetPacket and sendNetPacket may hang.

Igor
- Original Message - 
From: Arthur D'Alessandro [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org; Hari Mailvaganam 
[EMAIL PROTECTED]
Cc: Igor [EMAIL PROTECTED]
Sent: Tuesday, February 01, 2005 3:40 PM
Subject: Re: Failed JDBC connection hangs Tomcat


What version of the JTDS are you referring to, I know they recently
released 1.0 code...
On Sun, 30 Jan 2005 20:06:07 -0800, Hari Mailvaganam [EMAIL PROTECTED] 
wrote:
The JTDS driver can cause the hanging you described - this has occured
in a test we did on Win 2k, SQL Server 2k, 1.5 JDK.
reagrds,
Hari Mailvaganam
On Sun, 30 Jan 2005 08:39:50 +0200, Igor [EMAIL PROTECTED] wrote:
 We have the same problem, that described in

 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html

 There is ServletContextListener in our application, that schedule two 
 tasks for repeated fixed rate execution on context initialization 
 (Timer.scheduleAtFixedRate).

 First task is executed every minute. It queries MS SQL server, second 
 task is executed every hour.

 If MS SQL server goes down, first task tries to use connection to 
 database.
 After this Tomcat may hang: when user tries to download a page, he or 
 her will wait for a long time (more that 1 day).

 At the same time second taks (that is executed every hour) works as it 
 was expected: there are corresponding entries in log file.

 First task is executed in separate thread, and I do not understand how 
 can it hang whole tomcat (at least one context).

 We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for 
 MS and JTDS drivers :-(

 Does somebody know how can I prevent tomcat from hang in such 
 situations?

 Thank you in advance,
 Igor

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


--
-Art D'Alessandro


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


Type mismatch: cannot convert from long to Long

2005-02-01 Thread micky none
Hi Friends,
I went for help in the java forums,but I think you might help me better with 
this.I have a jsp that runs fine on my system,but when i upload it on the 
server it starts throwing this error:

Generated servlet error:
Type mismatch: cannot convert from long to Long

And the other thing is when i undeploy a war file on the server(5.5.7),the 
entry still remains there,altough the running status  turns to false...but on 
my system(5.0)..when i undeploy a file,the entry too is deleted.Might be,the 
server is not refllecting the changes i made to my JSP and loading the same old 
JSP.I dont know what the problem is and what to do??Can someone help me please??
Configuration:
Server-Tomcat 5.5.7
Jdk-1.5.0_01

My workstation:
Server-Tomcat 5.0
Jdk-1.5.0

My thead in the java forum is:
http://forum.java.sun.com/thread.jspa?threadID=591899tstart=0

AW: Type mismatch: cannot convert from long to Long

2005-02-01 Thread CHRISTOPH.EMMERSBERGER
autodeploying war files has to be configured in the webserver.
It seems that it isn't.
Perhaps you have an acces to the configurationfile of your productive
tomcat, than you can add the host element an attribute like autoDeploy=true,
else, try to restart the server.
The other thing, the exeption that you get, seems like a wrong
cast in your jsp.
Perhaps you have another version of tomcat than your provider.
So it could come to conflicts.


--
 BMW Group
 Herr Christoph Emmersberger
 Praktikant
 mailto: [EMAIL PROTECTED]
 Url: http://www.bmwgroup.de
-- 


-Ursprüngliche Nachricht-
Von: micky none [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 1. Februar 2005 15:29
An: Tomcat Users List
Betreff: Type mismatch: cannot convert from long to Long


Hi Friends,
I went for help in the java forums,but I think you might help 
me better with this.I have a jsp that runs fine on my 
system,but when i upload it on the server it starts throwing 
this error:

Generated servlet error:
Type mismatch: cannot convert from long to Long

And the other thing is when i undeploy a war file on the 
server(5.5.7),the entry still remains there,altough the 
running status  turns to false...but on my system(5.0)..when 
i undeploy a file,the entry too is deleted.Might be,the server 
is not refllecting the changes i made to my JSP and loading 
the same old JSP.I dont know what the problem is and what to 
do??Can someone help me please??
Configuration:
Server-Tomcat 5.5.7
Jdk-1.5.0_01

My workstation:
Server-Tomcat 5.0
Jdk-1.5.0

My thead in the java forum is:
http://forum.java.sun.com/thread.jspa?threadID=591899tstart=0


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



Re: AW: Type mismatch: cannot convert from long to Long

2005-02-01 Thread micky none
thanks christoph,
I think the casting is fine...coz i have shown the code to the java guys.And 
even if i restart the server,the entries still remains there
and works fine...i.e its not undeploying it,thought it shows the message OK - 
Undeployed application at context path /xxx
And the other thing is when i restart the server it doesnt works properly 
unless i explictily kill the java processes.
And finally can you please tell me in which file the autodeploy=true entry 
goes.This work is really important for me,any help wud be appreciated



On Tue, 01 Feb 2005 [EMAIL PROTECTED] wrote :
autodeploying war files has to be configured in the webserver.
It seems that it isn't.
Perhaps you have an acces to the configurationfile of your productive
tomcat, than you can add the host element an attribute like autoDeploy=true,
else, try to restart the server.
The other thing, the exeption that you get, seems like a wrong
cast in your jsp.
Perhaps you have another version of tomcat than your provider.
So it could come to conflicts.


--
  BMW Group
  Herr Christoph Emmersberger
  Praktikant
  mailto: [EMAIL PROTECTED]
  Url: http://www.bmwgroup.de
--


 -Ursprüngliche Nachricht-
 Von: micky none [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 1. Februar 2005 15:29
 An: Tomcat Users List
 Betreff: Type mismatch: cannot convert from long to Long
 
 
 Hi Friends,
 I went for help in the java forums,but I think you might help
 me better with this.I have a jsp that runs fine on my
 system,but when i upload it on the server it starts throwing
 this error:
 
 Generated servlet error:
 Type mismatch: cannot convert from long to Long
 
 And the other thing is when i undeploy a war file on the
 server(5.5.7),the entry still remains there,altough the
 running status  turns to false...but on my system(5.0)..when
 i undeploy a file,the entry too is deleted.Might be,the server
 is not refllecting the changes i made to my JSP and loading
 the same old JSP.I dont know what the problem is and what to
 do??Can someone help me please??
 Configuration:
 Server-Tomcat 5.5.7
 Jdk-1.5.0_01
 
 My workstation:
 Server-Tomcat 5.0
 Jdk-1.5.0
 
 My thead in the java forum is:
 http://forum.java.sun.com/thread.jspa?threadID=591899tstart=0
 

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



AW: AW: Type mismatch: cannot convert from long to Long

2005-02-01 Thread CHRISTOPH.EMMERSBERGER
try it with the server.xml

there is a host tag, and behind him, write the attribute

--
 BMW Group
 Herr Christoph Emmersberger
 Praktikant
 mailto: [EMAIL PROTECTED]
 Url: http://www.bmwgroup.de
-- 


-Ursprüngliche Nachricht-
Von: micky none [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 1. Februar 2005 15:50
An: Tomcat Users List
Betreff: Re: AW: Type mismatch: cannot convert from long to Long


thanks christoph,
I think the casting is fine...coz i have shown the code to the 
java guys.And even if i restart the server,the entries still 
remains there
and works fine...i.e its not undeploying it,thought it shows 
the message OK - Undeployed application at context path /xxx
And the other thing is when i restart the server it doesnt 
works properly unless i explictily kill the java processes.
And finally can you please tell me in which file the 
autodeploy=true entry goes.This work is really important for 
me,any help wud be appreciated



On Tue, 01 Feb 2005 [EMAIL PROTECTED] wrote :
autodeploying war files has to be configured in the webserver.
It seems that it isn't.
Perhaps you have an acces to the configurationfile of your productive
tomcat, than you can add the host element an attribute like 
autoDeploy=true,
else, try to restart the server.
The other thing, the exeption that you get, seems like a wrong
cast in your jsp.
Perhaps you have another version of tomcat than your provider.
So it could come to conflicts.


--
  BMW Group
  Herr Christoph Emmersberger
  Praktikant
  mailto: [EMAIL PROTECTED]
  Url: http://www.bmwgroup.de
--


 -Ursprüngliche Nachricht-
 Von: micky none [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 1. Februar 2005 15:29
 An: Tomcat Users List
 Betreff: Type mismatch: cannot convert from long to Long
 
 
 Hi Friends,
 I went for help in the java forums,but I think you might help
 me better with this.I have a jsp that runs fine on my
 system,but when i upload it on the server it starts throwing
 this error:
 
 Generated servlet error:
 Type mismatch: cannot convert from long to Long
 
 And the other thing is when i undeploy a war file on the
 server(5.5.7),the entry still remains there,altough the
 running status  turns to false...but on my system(5.0)..when
 i undeploy a file,the entry too is deleted.Might be,the server
 is not refllecting the changes i made to my JSP and loading
 the same old JSP.I dont know what the problem is and what to
 do??Can someone help me please??
 Configuration:
 Server-Tomcat 5.5.7
 Jdk-1.5.0_01
 
 My workstation:
 Server-Tomcat 5.0
 Jdk-1.5.0
 
 My thead in the java forum is:
 http://forum.java.sun.com/thread.jspa?threadID=591899tstart=0
 

-
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 connector for AIX 5.2

2005-02-01 Thread Hausmann, Tobias
Tony,

I had to use the connector source code 
http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/v1.2.4/src/.  I had 
some compiler issues with the version v1.2.3.  Otherwise it worked great.  

Thanks for your help.

Tobias

-Original Message-
From: Fan, Tony [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 31, 2005 9:51 AM
To: Tomcat Users List
Cc: Hausmann, Tobias
Subject: RE: Tomcat connector for AIX 5.2

Hi,
 
Here is what I did recently to make jk works with Apache 2.0.52 and  Jboss 
3.2.5 in AIX 5.2+SP4.
1. download jk source from 
http://archive.apache.org/dist/jakarta/tomcat-connectors/jk/v1.2.3/src/
2. following the instruction in 
http://www.apache.org/~trawick/tomcataix.html#mod_jk_gcc
3. you may get compile error during Apache compiling with pthread,  instead of 
using pthread.h from /usr/lib try to copy the one from you gcc3.2.2 source.  

--Tony
 

-Original Message-
From: Hausmann, Tobias [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 28, 2005 5:40 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat connector for AIX 5.2

Hi,

Would anybody please tell me where I can download a Tomcat connector (mod_jk2 
or mod_jk) for AIX 5.2?  I have tried to compile a connector myself, but I got 
constant compiler errors.  I want to use it with Apache (2.0.52) and Tomcat 
4.1.31.

Unfortunately, there are no available binaries for AIX on the Jakarta website.

http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk2/binaries/
http://apache.cs.utah.edu/jakarta/tomcat-connectors/jk/binaries/aix/


Any help is greatly appreciated.

Thanks,

Tobias


This electronic transmission may contain information that is privileged, 
confidential and exempt from disclosure under
applicable law. If you are not the intended recipient, please notify me 
immediately as use of this information is strictly prohibited.


This electronic transmission may contain information that is privileged, 
confidential and exempt from disclosure under
applicable law. If you are not the intended recipient, please notify me 
immediately as use of this information is strictly prohibited.

jspc taglib handling different between 5.5.4 and 5.5.7

2005-02-01 Thread Jason Schuchert
i upgraded to 5.5.7 this weekend and noticed that my ant jsp precompile task 
was failing for .jsp files that were referencing taglibs.  it gave a message 
like:

org.apache.jasper.JasperException: The absolute uri: 
http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the 
jar files deployed with this application

the line in the offending jsp looks like:

%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %

if i go into the jstl taglib jar file and grab the sql.tld file and put it into 
my WEB-INF then the jspc task works.

in 5.5.4 this worked without having the sql.tld file in WEB-INF (it was just 
found in the .jar file of the tag library)

anybody hitting similar issues?  was there a change in the jspc code that 
intentionally makes this not work in 5.5.7?

thanks!

-jason



Tomcat Includes?

2005-02-01 Thread Curt LeCaptain
Hello everyone,

Currently I'm running Tomcat 5 and I am looking to be able to take the
virtual hosts section of my server.xml file and move it to it's own
file, to be included in server.xml.  I've been searching for the last
few days on a way to do this, but I'm having no luck.  Any help would
be
greatly appreciated!

Thanks,
Curt LeCaptain

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



Tomcat's Java parameters

2005-02-01 Thread Jared Ingersoll
Hi,

I am running Tomcat 4.1.X with Java 1.4 as a service on a Win2K box. A
software provider has instructed us to change an environment variable in the
system tab, which is to add the JAVA_OPTS variable with 3 parameters.
However, another document provided by the same company instructs us to make
changes to the HKLM\system\currentControlSet\Service\Apache TomCat 4.1\
registry keys (i.e. JVM OPTION COUNT and JVM OPTION Number 1, etc.),
which has a total of 7 command line parameters for Java.

My questions:

1. Do the system environment variables get called if the app is running as a
service?
2. If they are called, do the registry changes trump the $JAVA_OPTS
variable, or is it vice versa?

We are having performance related problems, and need the proper java
settings running under the tomcat service. Not only that, but I would like
to know where we should make these settings.

Jared

* 
PRIVILEGED AND CONFIDENTIAL: 
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited.  If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.  
*

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



[HOWTO] JAASRealm Implementation in Tomcat 5.0.x

2005-02-01 Thread Jerry Jalenak
Does anyone have a working example of using the JAASRealm with Tomcat 5?
I'm not getting how to use the CallbackHandler to retrieve the username /
password from the client

Thanks.

Jerry Jalenak
Senior Programmer / Analyst, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


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



Tomcat 5 Apache Authentication

2005-02-01 Thread Arantza Lozano
Hi,

I´m having problems getting Tomcat 5 to use Apache authentication. I´am using: 
apache 2.0.49 + tomcat 5.0.19 + mod_jk2 2.0.4

I have added tomcatAuthentication=false to server.xml and 
request.tomcatAuthentication=false to jk2.properties. I´am using the 
Directory directive and .htaccess files, but it doesn´t work.
 
Directory /app/
   AllowOverride AuthConfig
   Order allow,deny
   Satisfy Any
/Directory
 
Could you help me please?
 
Thanks in advanced.
 
Arantza
 
 



**  DISCLAIMER ***

This message may contain confidential, proprietary or legally privileged 
information. 
If you are not the intended recipient of this message, please notify it to the 
sender and delete without resending or backing it, as it is legally prohibited.

**  AVISO LEGAL **

Este mensaje puede contener información confidencial, en propiedad o legalmente 
protegida.
Si usted no es el destinatario, le rogamos lo comunique al remitente y proceda 
a borrarlo, sin reenviarlo ni conservarlo, ya que su uso no autorizado está 
prohibido legalmente.
 
**



Performance of different Tomcat Releases

2005-02-01 Thread sudip shrestha
I would like to know if there is significant performance improvement
from 5.0.x to 5.5.x.  Is there some sort of relative performance study
done by anybody?

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



Re: Performance of different Tomcat Releases

2005-02-01 Thread Peter Lin
look here

http://cvs.apache.org/~woolfel/tc_results.html
http://cvs.apache.org/~woolfel/benchmark_summary.doc

peter


On Tue, 1 Feb 2005 11:52:37 -0600, sudip shrestha [EMAIL PROTECTED] wrote:
 I would like to know if there is significant performance improvement
 from 5.0.x to 5.5.x.  Is there some sort of relative performance study
 done by anybody?
 
 -
 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 to map client certificate to user or group?

2005-02-01 Thread Heinälä Petri
Hi,

 

I add to the web.xml

 

security-constraint

  display-nameSecure Application/display-name

  web-resource-collection

 web-resource-name Secure Application/web-resource-name

 url-pattern/app/cert/*/url-pattern

  /web-resource-collection

  auth-constraint

role-nametomcat/role-name

  /auth-constraint

/security-constraint

login-config

  auth-methodCLIENT-CERT/auth-method

  realm-nameSecure Application/realm-name

/login-config

security-role

  role-nametomcat/role-name

/security-role

 

...and SSL client authentication works until Tomcat try to map client 
certificate to user or group.

 

So how I should configure client certificate - user/group mapping?

 

Br,

Petri

 

 



Re: How to map client certificate to user or group?

2005-02-01 Thread karjera

Laba diena.



Dkojame, kad mums parate.

Js atsista inut isaugota ms duomen bazje.

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



I guess this is a BUG!!!

2005-02-01 Thread micky none

Can anyone please tell me if it's a BUGi think it is one.
I'm using Tomcat5.5.7 and i am not able to undeploy the file,it shows that the 
file is undeployed 
and loads the new file.But it still keeps showing the old file contents.Can 
anyone tell me what's the fix??
Secondly,the server does not restarts until I explicitly use the kill 
proccess_id for the java process.
Please enlighten me.

Re: I guess this is a BUG!!!

2005-02-01 Thread PA
On Feb 01, 2005, at 19:36, micky none wrote:
Can anyone please tell me if it's a BUGi think it is one.
Then... your faith is sealed. Repent.
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to map client certificate to user or group?

2005-02-01 Thread Mark Thomas
What realm are you using? If you are using the memory realm you will 
need something like the following in tomcat-users.xml

user username=CN=Mark Thomas, OU=Jakarta, O=Apache, L=London, ST=None, 
C=GB password=null roles=tomcat/

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


RE: I guess this is a BUG!!!

2005-02-01 Thread Joe Miller
Here is a monitor request doc for both boxes.

-Original Message-
From: PA [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 11:37 AM
To: Tomcat Users List
Subject: Re: I guess this is a BUG!!!


On Feb 01, 2005, at 19:36, micky none wrote:

 Can anyone please tell me if it's a BUGi think it is one.

Then... your faith is sealed. Repent.

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.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: SystemThreadList.java update?

2005-02-01 Thread Ronald Klop
Hello,
I use the attached .jsp to view all the threads.
Ronald.
On Fri Jan 28 12:33:10 CET 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote:
There is a June 2002 mail thread that discusses "How to list all Threads in the JVM?". It includes a handy Java class that is supposed to return all sorts of information on these threads.But, the class does not seem to examine the entire ThreadGroup tree.The constructor creates an ArrayList of ThreadGroups along a tree branch from the current thread to the root, but other tree branches are ignored.Unfortunately, the mail thread ended without any further discussion.Is there some significance between this branch of the ThreadGroup tree and the way Tomcat creates ThreadGroups or is this a bug in the suggested code?Also getThreadCount() seems to return the number of ThreadGroups in the branch rather than the number of Threads in the JVM.Regards,Bob Feretichpackage com.mpi.chemi.portal.util;import java.util.ArrayList;import java.util.List;import org.apache.log4j.Logger;public class SystemThreadList{/*** The list of threads.*/private ArrayList _threads;/*** Constructor. Creates a list of all the* threads running in the JVM in the system.*/public SystemThreadList(){_threads = new ArrayList();ThreadGroup tg = Thread.currentThread().getThreadGroup();if(tg != null){_threads.add(tg);while(tg.getParent() != null){tg = tg.getParent();if(tg != null){_threads.add(tg);/*** Returns the thread count.** @return int*/public int getThreadCount(){if(_threads == null)return -1;elsereturn _threads.size();}/*** Returns the thread group at the given index.** @param index* @return ThreadGroup*/public ThreadGroup getThreadGroup(int index){if(getThreadCount()  1)return null;else if((index  0) || (index  (getThreadCount() - 1)))return null;elsereturn (ThreadGroup)_threads.get(index);}/*** Prints out the list of threads.*/public void printThreads(){System.out.println(toString());}/*** Returns a String representation of this* SystemThreadList.** @return String*/public String toString(){StringBuffer sb = new StringBuffer("[SystemThreadList:\n");if(getThreadCount()  1){sb.append(" No Threads ");}else{for(int i = 0; i  getThreadCount(); i++){sb.append(" ThreadGroup " + i + "= ");sb.append(getThreadGroup(i).toString());sb.append(", activeCount = " + getThreadGroup(i).activeCount());sb.append("\n");}}// Total active countsb.append(" totalActiveCount = " + getTotalActiveCount() + "\n");sb.append(" (End of SystemThreadList)]");return sb.toString();}/*** Returns the total active count: goes over* every group in the list, and sums their activeCount()* results.** @return int*/public int getTotalActiveCount(){if(getThreadCount()  1)return 0;else{int totalActiveCount = 0;ThreadGroup tg = null;for(int i = 0; i  getThreadCount(); i++){tg = getThreadGroup(i);totalActiveCount += tg.activeCount();}return totalActiveCount;}}/*** Returns the root thread group, i.e.* the one whose parent is null.** @return ThreadGroup*/public ThreadGroup getRootThreadGroup(){if(getThreadCount()  1)return null;else{ThreadGroup tg = null;for(int i = 0; i  getThreadCount(); i++){tg = getThreadGroup(i);if(tg.getParent() == null){return tg;}}// If we got here, we didn't find one, so return null.return null;}}/*** Gets all the threads.** @return Thread[]*/public Thread[] getAllThreads(){int estimatedCount = getTotalActiveCount();// Start with array twice size of estimated,// to be safe. Trim later.Thread[] estimatedThreads = new Thread[estimatedCount * 2];// Locate root groupThreadGroup rootGroup = getRootThreadGroup();if(rootGroup == null){return null;}int actualCount = rootGroup.enumerate(estimatedThreads, true);// Check that something was returnedif(actualCount  1)return null;// Copy into actualThreads of correct sizeThread[] actualThreads = new Thread[actualCount];for(int i = 0; i  actualThreads.length; i++){actualThreads[i] = estimatedThreads[i];}return actualThreads;}/*** Gets all the threads whose name contains the* given string. The search is CASE-SENSITIVE.** @param nameMatch* @return List*/public List getThreadsWithNameMatch(String nameMatch){Thread[] allThreads = getAllThreads();if((allThreads == null) || (allThreads.length  1)){return null;}else{ArrayList matchingThreads = new ArrayList();for(int i = 0; i  allThreads.length; i++){if(allThreads[i].getName().indexOf(nameMatch)  -1)matchingThreads.add(allThreads[i]);}if((matchingThreads == null) || (matchingThreads.size()  1))return null;elsereturn matchingThreads;}}/*** Tries to destory the root group.*/public void destroyRootThreadGroup(){ThreadGroup rootGroup = getRootThreadGroup();if(rootGroup == null){return;}else{rootGroup.destroy();}}/*** Main. Tests the functionality.** @param args*/public static void main(String[] args){System.out.println("SystemThreadList: main(): starting.");// Create listSystemThreadList stl = new SystemThreadList();// Print infoSystem.out.println("SystemThreadList: main(): calling SystemThreadList.toString().");stl.printThreads();// Get 

Re: Using native and ld_library_path

2005-02-01 Thread Andreas Andersson
Caldarale, Charles R wrote:
Take a look at:
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step1.html
Hi again. I did take a look but nothing helped me there and I still need 
 help.

My guess is that tomcat has some restrictions when it comes to loading 
native code.

I have several native libraries. One of them is loaded and executed from 
my code, the rest is used by the first one.

What confuses me is that this works on my tomcat on windows but not 
linux. It also works on a standalone program on that same linux machine. 
But not my tomcat on linux.

I've tried putting the libraries in /usr/lib. That works for my 
standalone but not tomcat.

I've tried setting -Djava.library.path in catalina.sh, that doesn't work.
When printing System.getProperties().get(java.library.path) I get the 
right paths but still I get the unsatisfied link error. Is there more 
debug information available in some way?

This is really frustrating since it shouldn't be this hard :)
I appreciate any help.
--
Andreas Andersson
IT Dept.
Travelstart Nordic
[EMAIL PROTECTED]
http://www.travelstart.se
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Deny access to a JSP page

2005-02-01 Thread apuerta.foros

 Hi all.

 I'd like Tomcat to deny access to some JSPs with internal information.

 I can configure Apache to deny access depending on the user IP,
transparently.
 
 I'd like to do the same in Tomcat, but i don't now how.

 Any idea? Thanks.




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



separate log4j configurations

2005-02-01 Thread Tony Tomcat
Is it safe to have 1 log4j.properties setup for all of tomcat and then
override it for a webapp that might need slightly different logging?

For example..

I place log4j.jar and the Jakarta commons-logging.jar into the
$TOMCAT_HOME/common/lib directory and have a log4j properties file in
$TOMCAT_HOME/common/classes/log4j.properties

This properties file writes to ${catalina.home}/logs/all.out

Then I have a test webapp that I want in its own log4j output file so
I install a new log4j.properties file in that webapp.

$TOMCAT_HOME/webapps/test/WEB-INF/classes/log4j.properties

This properties file puts the output in ${catalina.home}/logs/test.out

This appears to work but I'm just wondering if this is the correct way
to go about it.

The reason I want my main logging configuration in common/classes is
because I want my operations team to control the logging instead of
the war file.   In the case of my test application I always want it to
log at the debug level and it is only installed in production briefly
so having the log4j.properties in the war file is fine and allows me
to keep it logging at debug even if the other apps are at WARN.

Any issues here?
Tony

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



RE: How to map client certificate to user or group?

2005-02-01 Thread Heinälä Petri
Thanks!

That works with listed entries, but how I can map all certificates to one role? 
I have plans to do further certificate checking in my application.

Petri
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 1. helmikuuta 2005 20:37
To: Tomcat Users List
Subject: Re: How to map client certificate to user or group?

What realm are you using? If you are using the memory realm you will 
need something like the following in tomcat-users.xml

user username=CN=Mark Thomas, OU=Jakarta, O=Apache, L=London, ST=None, 
C=GB password=null roles=tomcat/

Mark

-
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: article draft - Summary of benchmark

2005-02-01 Thread Peter Lin
I've updated the document with more charts from the excel spreadsheet
and tried to make the explanations more clear.

peter


On Mon, 31 Jan 2005 14:20:11 -0500, Peter Lin [EMAIL PROTECTED] wrote:
 http://cvs.apache.org/~woolfel/benchmark_summary.doc
 http://cvs.apache.org/~woolfel/benchmark_summary.sxw
 http://cvs.apache.org/~woolfel/tc_results.html
 
 I've finished a complete draft of the benchmark results. If you have
 any feedback, please email me directly. thanks in advance.
 
 
 peter lin


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



Re: separate log4j configurations

2005-02-01 Thread Roberto Cosenza
If you will configure log4j instances which are in the same classloader,
they will conflict.

   Bootstrap
  |
   System
  |
   Common
  /  \
 Catalina   Shared
 /   \
Webapp1  Webapp2 ...


http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

In other words, your webapp log4j.configuration will override your
tomcat-wide log4j.configuration which may annoy you
/roberto


- Original Message -
From: Tony Tomcat [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 8:50 PM
Subject: separate log4j configurations


 Is it safe to have 1 log4j.properties setup for all of tomcat and then
 override it for a webapp that might need slightly different logging?

 For example..

 I place log4j.jar and the Jakarta commons-logging.jar into the
 $TOMCAT_HOME/common/lib directory and have a log4j properties file in
 $TOMCAT_HOME/common/classes/log4j.properties

 This properties file writes to ${catalina.home}/logs/all.out

 Then I have a test webapp that I want in its own log4j output file so
 I install a new log4j.properties file in that webapp.

 $TOMCAT_HOME/webapps/test/WEB-INF/classes/log4j.properties

 This properties file puts the output in ${catalina.home}/logs/test.out

 This appears to work but I'm just wondering if this is the correct way
 to go about it.

 The reason I want my main logging configuration in common/classes is
 because I want my operations team to control the logging instead of
 the war file.   In the case of my test application I always want it to
 log at the debug level and it is only installed in production briefly
 so having the log4j.properties in the war file is fine and allows me
 to keep it logging at debug even if the other apps are at WARN.

 Any issues here?
 Tony

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




getAttribute returning null

2005-02-01 Thread Didier McGillis
Having problem with a context parm.  I have a servlet that queries for 300+ 
list of names, it then builds a select list.  This list changes 
infrequently, the jsp page is supposed to display the data from the servlet, 
so being the absolutly brilliant person that I am I wanted that option list 
built on startup, and then just have the jsp display the list.

I retrofitted the servlet to build the list, and then put 
%=application.getAttribute(listOfDealer)% in the jsp, open the page and 
wham -o awesome, great .. it doesnt work, all I see is null.

any thoughts

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


Re: How to map client certificate to user or group?

2005-02-01 Thread Mark Thomas
I think you would need to write a custom realm implementation.
Mark
Heinälä Petri wrote:
Thanks!
That works with listed entries, but how I can map all certificates to one role? 
I have plans to do further certificate checking in my application.
Petri
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 1. helmikuuta 2005 20:37
To: Tomcat Users List
Subject: Re: How to map client certificate to user or group?

What realm are you using? If you are using the memory realm you will 
need something like the following in tomcat-users.xml

user username=CN=Mark Thomas, OU=Jakarta, O=Apache, L=London, ST=None, 
C=GB password=null roles=tomcat/

Mark
-
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: How to map client certificate to user or group?

2005-02-01 Thread Heinälä Petri
I'll try to do that. Thanks!

Petri
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: 1. helmikuuta 2005 23:11
To: Tomcat Users List
Subject: Re: How to map client certificate to user or group?

I think you would need to write a custom realm implementation.

Mark

Heinälä Petri wrote:
 Thanks!
 
 That works with listed entries, but how I can map all certificates to one 
 role? I have plans to do further certificate checking in my application.
 
 Petri
 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: 1. helmikuuta 2005 20:37
 To: Tomcat Users List
 Subject: Re: How to map client certificate to user or group?
 
 What realm are you using? If you are using the memory realm you will 
 need something like the following in tomcat-users.xml
 
 user username=CN=Mark Thomas, OU=Jakarta, O=Apache, L=London, ST=None, 
 C=GB password=null roles=tomcat/
 
 Mark
 
 -
 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]


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



RE: Tomcat's Java parameters

2005-02-01 Thread Jared Ingersoll
No takers? Should I take this question to the Dev list?

jared

-Original Message-
From: Jared Ingersoll [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 01, 2005 11:19 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: Tomcat's Java parameters


Hi,

I am running Tomcat 4.1.X with Java 1.4 as a service on a Win2K box. A
software provider has instructed us to change an environment variable in the
system tab, which is to add the JAVA_OPTS variable with 3 parameters.
However, another document provided by the same company instructs us to make
changes to the HKLM\system\currentControlSet\Service\Apache TomCat 4.1\
registry keys (i.e. JVM OPTION COUNT and JVM OPTION Number 1, etc.),
which has a total of 7 command line parameters for Java.

My questions:

1. Do the system environment variables get called if the app is running as a
service?
2. If they are called, do the registry changes trump the $JAVA_OPTS
variable, or is it vice versa?

We are having performance related problems, and need the proper java
settings running under the tomcat service. Not only that, but I would like
to know where we should make these settings.

Jared

* 
PRIVILEGED AND CONFIDENTIAL: 
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited.  If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.  
*

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

* 
PRIVILEGED AND CONFIDENTIAL: 
This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential and/or privileged
information.  If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited.  If you
are not the intended recipient, please notify the sender immediately by
return e-mail, delete this communication and destroy all copies.  
*

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



Re: Tomcat's Java parameters

2005-02-01 Thread Larry Meadors
The $JAVA_OPTS variable is ignored by the service, you have to add
them in the registry.


On Tue, 1 Feb 2005 16:45:15 -0500, Jared Ingersoll [EMAIL PROTECTED] wrote:
 No takers? Should I take this question to the Dev list?
 
 jared
 
 -Original Message-
 From: Jared Ingersoll [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 01, 2005 11:19 AM
 To: 'tomcat-user@jakarta.apache.org'
 Subject: Tomcat's Java parameters
 
 Hi,
 
 I am running Tomcat 4.1.X with Java 1.4 as a service on a Win2K box. A
 software provider has instructed us to change an environment variable in the
 system tab, which is to add the JAVA_OPTS variable with 3 parameters.
 However, another document provided by the same company instructs us to make
 changes to the HKLM\system\currentControlSet\Service\Apache TomCat 4.1\
 registry keys (i.e. JVM OPTION COUNT and JVM OPTION Number 1, etc.),
 which has a total of 7 command line parameters for Java.
 
 My questions:
 
 1. Do the system environment variables get called if the app is running as a
 service?
 2. If they are called, do the registry changes trump the $JAVA_OPTS
 variable, or is it vice versa?
 
 We are having performance related problems, and need the proper java
 settings running under the tomcat service. Not only that, but I would like
 to know where we should make these settings.
 
 Jared
 
 *
 PRIVILEGED AND CONFIDENTIAL:
 This communication, including attachments, is for the exclusive use of
 addressee and may contain proprietary, confidential and/or privileged
 information.  If you are not the intended recipient, any use, copying,
 disclosure, dissemination or distribution is strictly prohibited.  If you
 are not the intended recipient, please notify the sender immediately by
 return e-mail, delete this communication and destroy all copies.
 *
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 *
 PRIVILEGED AND CONFIDENTIAL:
 This communication, including attachments, is for the exclusive use of
 addressee and may contain proprietary, confidential and/or privileged
 information.  If you are not the intended recipient, any use, copying,
 disclosure, dissemination or distribution is strictly prohibited.  If you
 are not the intended recipient, please notify the sender immediately by
 return e-mail, delete this communication and destroy all copies.
 *
 
 -
 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's Java parameters

2005-02-01 Thread Jerry Jalenak


Jerry Jalenak
Senior Programmer / Analyst, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 01, 2005 4:10 PM
To: Tomcat Users List
Subject: Re: Tomcat's Java parameters


The $JAVA_OPTS variable is ignored by the service, you have to add
them in the registry.


On Tue, 1 Feb 2005 16:45:15 -0500, Jared Ingersoll [EMAIL PROTECTED]
wrote:
 No takers? Should I take this question to the Dev list?
 
 jared
 
 -Original Message-
 From: Jared Ingersoll [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 01, 2005 11:19 AM
 To: 'tomcat-user@jakarta.apache.org'
 Subject: Tomcat's Java parameters
 
 Hi,
 
 I am running Tomcat 4.1.X with Java 1.4 as a service on a Win2K box. A
 software provider has instructed us to change an environment variable in
the
 system tab, which is to add the JAVA_OPTS variable with 3 parameters.
 However, another document provided by the same company instructs us to
make
 changes to the HKLM\system\currentControlSet\Service\Apache TomCat 4.1\
 registry keys (i.e. JVM OPTION COUNT and JVM OPTION Number 1, etc.),
 which has a total of 7 command line parameters for Java.
 
 My questions:
 
 1. Do the system environment variables get called if the app is running as
a
 service?
 2. If they are called, do the registry changes trump the $JAVA_OPTS
 variable, or is it vice versa?
 
 We are having performance related problems, and need the proper java
 settings running under the tomcat service. Not only that, but I would like
 to know where we should make these settings.
 
 Jared
 
 *
 PRIVILEGED AND CONFIDENTIAL:
 This communication, including attachments, is for the exclusive use of
 addressee and may contain proprietary, confidential and/or privileged
 information.  If you are not the intended recipient, any use, copying,
 disclosure, dissemination or distribution is strictly prohibited.  If you
 are not the intended recipient, please notify the sender immediately by
 return e-mail, delete this communication and destroy all copies.
 *
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 *
 PRIVILEGED AND CONFIDENTIAL:
 This communication, including attachments, is for the exclusive use of
 addressee and may contain proprietary, confidential and/or privileged
 information.  If you are not the intended recipient, any use, copying,
 disclosure, dissemination or distribution is strictly prohibited.  If you
 are not the intended recipient, please notify the sender immediately by
 return e-mail, delete this communication and destroy all copies.
 *
 
 -
 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]


This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


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



Re: separate log4j configurations

2005-02-01 Thread Jacob Kjome
Quoting Roberto Cosenza [EMAIL PROTECTED]:

 If you will configure log4j instances which are in the same classloader,
 they will conflict.

Bootstrap
   |
System
   |
Common
   /  \
  Catalina   Shared
  /   \
 Webapp1  Webapp2 ...


 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

 In other words, your webapp log4j.configuration will override your
 tomcat-wide log4j.configuration which may annoy you
 /roberto

No, Tomcat will continue to log just as it was configured at the server level. 
And, actually, his log4j.properties file in WEB-INF/classes wouldn't even get
picked up by log4j at all because the default logger repository has already
been configured (assuming no manual configuration) so there would be no
auto-configuration triggered.

I think what Tony is looking for is his Test webapp to control logging for
itself.  To do this, he would need to do one of two things...

1.  Place a copy of log4j.jar in WEB-INF/lib.  In a parent-last classloading
environment, such as Tomcat provides, log4j will have its own environment to
log in completely separate from that of the server.

2.  Use a repository selector.  I wouldn't bother with this until Log4j-1.3
comes out, but after that, once can simply define an env-entry (when using
the JNDI repository selector) in web.xml to specify that the webapp should log
within a named logger repository separate from the default one which the server
is using.  This is much more flexible because then multiple apps can log to the
same logger repository if they want.  Here one gets all the benefits of #1 but
can also coordinate like-applications to log to the same logger repository
without affecting other logger repositories.  In this case, a single log4j.jar
would be at the server level and not in WEB-INF/lib webapps.


Jake



 - Original Message -
 From: Tony Tomcat [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Tuesday, February 01, 2005 8:50 PM
 Subject: separate log4j configurations


  Is it safe to have 1 log4j.properties setup for all of tomcat and then
  override it for a webapp that might need slightly different logging?
 
  For example..
 
  I place log4j.jar and the Jakarta commons-logging.jar into the
  $TOMCAT_HOME/common/lib directory and have a log4j properties file in
  $TOMCAT_HOME/common/classes/log4j.properties
 
  This properties file writes to ${catalina.home}/logs/all.out
 
  Then I have a test webapp that I want in its own log4j output file so
  I install a new log4j.properties file in that webapp.
 
  $TOMCAT_HOME/webapps/test/WEB-INF/classes/log4j.properties
 
  This properties file puts the output in ${catalina.home}/logs/test.out
 
  This appears to work but I'm just wondering if this is the correct way
  to go about it.
 
  The reason I want my main logging configuration in common/classes is
  because I want my operations team to control the logging instead of
  the war file.   In the case of my test application I always want it to
  log at the debug level and it is only installed in production briefly
  so having the log4j.properties in the war file is fine and allows me
  to keep it logging at debug even if the other apps are at WARN.
 
  Any issues here?
  Tony
 
  -
  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: separate log4j configurations

2005-02-01 Thread Roberto Cosenza
No, Tomcat will continue to log just as it was configured at the server
level.
And, actually, his log4j.properties file in WEB-INF/classes wouldn't even
get
picked up by log4j at all because the default logger repository has already
been configured (assuming no manual configuration) so there would be no
auto-configuration triggered.
Yes...assuming no manual configuration :-D But in the general case, every
new webapp will modify the configuration of the same log4j!
/rob



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



Re: Slow HTTP upload of POST content

2005-02-01 Thread Parsons Technical Services
Well for the life of me I can't find it either. I know I read it somewhere. 
The idea was an issue with IE causing a fragmentation of the packets and 
retransmits. It boiled down to a bug in IE for certain versions. I don't 
remember a solution.

So with that lets go after your setup.
Are the machines running IIS or are you accessing Tomcat directly?
Can/have you done any network analysis to see what the packets look like and 
if there are any retransmissions?

Are the network cards the same on all the servers?
Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 8:42 AM
Subject: AW: Slow HTTP upload of POST content

Sorry i did'nt find the thread, althoug I searched for somthing like this.
If you know exactly, where the thread is, send me the adress, cause I dont
know where it is, and it would help me a lot of, not to loose more time
on this search.
thx
--
BMW Group
Herr Christoph Emmersberger
Praktikant
mailto:[EMAIL PROTECTED]
Url: http://www.bmwgroup.de
-- 


-Ursprüngliche Nachricht-
Von: Parsons Technical Services
[mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 1. Februar 2005 14:19
An: Tomcat Users List
Betreff: Re: Slow HTTP upload of POST content
Search the archives. There is a thread on this and the cause.
http://mail-archives.apache.org/eyebrowse/SummarizeList?listNam
[EMAIL PROTECTED]
Doug
- Original Message - 
From: Michael Merkulovich [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 2:14 AM
Subject: Slow HTTP upload of POST content


We are experiencing a very strange problem with HTTP uploads
on tomcat5.
When uploading large files from IE over the network, upload speed is
capped
at about 70kbytes/sec even though the network allows for much higher
speeds.
Neither CPU nor disk access appears to be the bottleneck. When using
FireFox
browser, upload speed is about 4000kbytes/sec. When using IE
from the
server
through loopback adapter, speed is 7000kbytes/sec.
This problem is happening on 2 separate servers. One is a
win 2000 box
with
a freshly installed OS. The other one is a brand new windows
server 2003
enterprise edition.
I tried apache fileupload library and o'reilly
MultipartRequest. I also
tried reading directly from InputStream all to the same effect.
There is one machine which runs file-for-file identical tomcat
installation
under the same version of java. When accessing that machine
with IE from
other boxes, uploads go fast.
I cannot figure out what's different between the machine on
which it works
and the two on which it doesn't. Any ideas?
-- Mike
-
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]


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


Re: getAttribute returning null

2005-02-01 Thread Tim Funk
No idea. But since you are using application (aka the servlet context), try 
this to see whats in your ServletContext ...

%
/* Yes - this is about to produce tables */
out.println(table border='1');
out.println(trthKey/ththValue/th/tr);
for (java.util.Enumeration e = application.getAttributeNames();
 e.hasMoreElements();) {
  Object key = e.nextElement();
  out.print(tr);
  out.print(td);
  out.print(key.toString());
  out.print(/td);
  out.print(td);
  out.print(application.getAttribute(key).toString());
  out.print(/td);
  out.print(/tr);
}
out.println(/table);
%
-Tim
Didier McGillis wrote:
Having problem with a context parm.  I have a servlet that queries for 
300+ list of names, it then builds a select list.  This list changes 
infrequently, the jsp page is supposed to display the data from the 
servlet, so being the absolutly brilliant person that I am I wanted that 
option list built on startup, and then just have the jsp display the list.

I retrofitted the servlet to build the list, and then put 
%=application.getAttribute(listOfDealer)% in the jsp, open the page 
and wham -o awesome, great .. it doesnt work, all I see is null.

any thoughts

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


Include Native DLL in Tomcat application

2005-02-01 Thread Matt_Dunnerstick
Hello,

Need some help.

I have a 3rd party DLL that I 3rd party JAR references.  I keep getting
access violation errors on the DLL.

I am running Tomcat 5 on win 2000.

Where can I place the DLL so it can be seen within the application?

Many thanks--

Matt


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



Re: separate log4j configurations

2005-02-01 Thread Jacob Kjome
Quoting Roberto Cosenza [EMAIL PROTECTED]:

 No, Tomcat will continue to log just as it was configured at the server
 level.
 And, actually, his log4j.properties file in WEB-INF/classes wouldn't even
 get
 picked up by log4j at all because the default logger repository has already
 been configured (assuming no manual configuration) so there would be no
 auto-configuration triggered.
 Yes...assuming no manual configuration :-D But in the general case, every
 new webapp will modify the configuration of the same log4j!
 /rob


You're calling the general case manual configuration?  I think the general
case is more likely to count on auto-configuration, in which case this isn't an
issue.  In any case, if log4j.jar is added to WEB-INF/lib, this is not an
issue.  Or if one uses a repository selector and sets the proper env-entry in
web.xml, this is not an issue.

That said, it is still possible for a rogue webapp to blow away the existing
configuration if it is logging in the server's logger repository by using
manual configuration.  If you are concerned about this, I suggest you bring it
up on the log4j-user list.  I tend to agree that it is a problem.  I've argued
for treating the default logger repository in a special way (not exactly with
this case in mind, but nevertheless...).

later,

Jake


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



RE: [ANN] JK 1.2.8 Released

2005-02-01 Thread Ellen Blank
Hello,
wondering how soon jk-1.2.8 binaries will become available for Solaris platform, 
and whether it makes sense to wait or go ahead with the jk-1.2.6 in a mean while.

thank you,
Ellen 

- Original Message -
Mladen Turk
Fri, 24 Dec 2004 04:39:01 -0800
The Apache Jakarta Tomcat team is proud to announce the immediate 
availability of Jakarta Tomcat Connectors 1.2.8.
This new release has passed the very rigorous release process with four 
beta versions released.

Please see the 
http://jakarta.apache.org/tomcat/connectors-doc/changelog.html
for a full list of changes.

JK 1.2.8 is considered as stable for the following web servers and 
platforms:
Apache 1.3.33 an up - any Unix or Linux, WIN32.
Apache 2.0.52 an up - any Unix or Linux, WIN32 and Netware.
IIS 5.0 an up - WIN32.
Other web servers like Lotus Domino or Netscape/iPlanet have not been
the focus of this release and it's further development will depend on 
users interest.

You can download sources from:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/jk-1.2.8/source
The binaries (for WIN32 only at the moment) are available at:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/
The Jakarta Tomcat Connectors Team
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: article draft - Summary of benchmark

2005-02-01 Thread Remy Maucherat
On Tue, 1 Feb 2005 15:18:59 -0500, Peter Lin [EMAIL PROTECTED] wrote:
 I've updated the document with more charts from the excel spreadsheet
 and tried to make the explanations more clear.

I'm really interested in the part of your tests which show certain new
CPU architectures showing a big improvement in Java. I suppose it
benefits a lot from large caches (Pentium M, Opteron), and I suppose
more regirsters won't hurt either (x86-64).

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Enforce ISO-8859-1

2005-02-01 Thread Mieke Banderas
I have a form on a HTML page with the meta attribute 'content=text/html;
charset=iso-8859-1 ' and also the attribute 'accept-charset=ISO-8859-1
' in the form tag. Yet I get Mac-Roman in the resulting email that I
utilize with Suns mail.jar via a bean. What can I do at the servercode or
in the  browser to enforce ISO-8859-1? 
Is there a setting in Tomcat I have missed?

Problem, is that besides the form page itself I see no obvious places to
affect the encoding, so any suggestions for where to look would be helpful.




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



SocketException: Too many open files

2005-02-01 Thread Stephen Charles Huey
I'm running some simple but fast-pounding test programs against our
Tomcat server from a machine on the same network, and we've been tuning
our database, etc, based on this.  But right now, I'm seeing a new one
coming out of our Java code whenever we try to open a URL:


java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:331)
at java.net.Socket.connect(Socket.java:450)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA12275)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(DashoA12275)
at 
com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.doConnect(DashoA12275)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.protocol.https.HttpsClient.init(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at sun.net.www.protocol.https.HttpsClient.a(DashoA12275)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.plainConnect(DashoA12275)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA12275)
at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(DashoA12275)



We're opening lots of these, and it appears we're opening more than a
maximum number of connections to the internet.  Is there a way to bump
this up?  Or maybe we're just pounding this harder than it will ever get
hit in the real world?  I'm also seeing this as well:





SEVERE: Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=80]
ignored exception: java.net.SocketException: Too many open files
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
at java.net.ServerSocket.implAccept(ServerSocket.java:448)
at java.net.ServerSocket.accept(ServerSocket.java:419)
at 
org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:107)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:356)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint
closeServerSocket
SEVERE: Caught exception trying to unlock accept.
java.net.SocketException: Too many open files
at java.net.Socket.createImpl(Socket.java:331)
at java.net.Socket.init(Socket.java:304)
at java.net.Socket.init(Socket.java:124)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:326)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:534)
Feb 1, 2005 4:53:08 PM org.apache.tomcat.util.net.PoolTcpEndpoint
acceptSocket
WARNING: Reinitializing ServerSocket


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



virtualhost and deployment applications

2005-02-01 Thread Carlos Gabriel Arce
 Good Day
Please help me with a question. I have a Tomcat 5 server running with 
jdk in a linux box (red hat 9). This server have many virtualhosts 
configured by host directive. I have a trouble when a hosting deploys an 
application because the war gets deployed in the catalina home. The 
problem is this application is visible for the rest of virtualhosts. Is 
there any form, using one tomcat instance ( one JVM) where the hosting 
can deploy your applications without disturb the rest of hostings?
The JDK version is j2sdk1.4.0_01
The tomcat server version is jakarta-tomcat-5.0.19

This is the configuration of my server.xml:
?xml version=1.0?
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0/
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
debug=0/
!-- 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
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
!-- Define the Tomcat Stand-Alone Service --
  Service name=Catalina

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8083 maxThreads=150 minSpareThreads=25 
maxSpareThreads=75 enableLookups=false redirectPort=8443 
acceptCount=100 debug=0 connectionTimeout=6 
disableUploadTimeout=true/
Engine name=Catalina defaultHost=localhost debug=9

!-- Define the default virtual host --
  Host name=localhost debug=0 appbase=webapps unpackWARs=true
 /Context
Context path= docBase=ROOT debug=0 reloadable=false/
Context path=/manager 
docBase=/usr/local/jakarta/webapps/manager debug=0 privileged=true/

Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=localhost_log. suffix=.txt timestamp=true/
  /Host
!-- CONFIGURACION DE LOS VIRTUALHOSTS --
!-- Hosting virtual de domain1.com --
  Host name=domain1.com debug=9 appbase=/WWW/domain1.com 
unpackWARs=true 
Context path= docBase=/WWW/domain1.com debug=9 
reloadable=true/
Context path=/manager 
docBase=/usr/local/jakarta_5/server/webapps/manager debug=9 
privileged=true/
Logger className=org.apache.catalina.logger.FileLogger 
verbosity=4 directory=logs prefix=domain.com. suffix=.txt 
timestamp=true/
Valve className=org.apache.catalina.valves.AccessLogValve
   prefix=domain1.com_access-log.
   suffix=.txt
   pattern=common
   directory=logs /
  /Host
!-- Fin hosting virtual --
!-- Hosting virtual de hosting_tomcat.telesat.com.co--
  Host name=domain2.com debug=9 appbase=/WWW/domain2.com 
unpackWARs=true autoDeploy=true xmlValidation=false 
xmlNamespaceAware=false
Context path= docBase=/WWW/domain2.com debug=9 
reloadable=true/
Context path=/manager 
docBase=/usr/local/jakarta_5/server/webapps/manager debug=9 
privileged=true/
Logger className=org.apache.catalina.logger.FileLogger 
directory=logs prefix=domain2.com_log. suffix=.txt timestamp=true/
  /Host
!-- Fin hosting virtual --
/Engine
  /Service
/Server

Thanks in advance.
--
Atentamente:
Ing. Carlos Gabriel Arce
Administrador del Hosting
TELESAT S.A
Cisco CCNA 10677416
Pbx. 57-2 - 644 0400
Fax. 57-2 - 644 0507
Cali, Colombia
http://www.telesat.com.co

Quien no ha afrontado la adversidad
no conoce su propia fuerza.
Benjamin Jonson.




La información adjunta en este mensaje es de uso exclusivo de la/s 
persona(s) o entidad/es a la que está dirigida y puede incluir 
información confidencial, personal y/o material protegido legalmente. La 
recepción de este mensaje por cualquier otra persona distinta de los 
destinatarios a los que está dirigido, no implica renuncia alguna al 
privilegio o derecho de confidencialidad. Se prohíbe el análisis, la 
retransmisión, divulgación o cualquier otro uso, o acción relacionada 
con esta información que fuera llevada a cabo por personas distintas del 
destinatario al cual la información está dirigida. Si recibe esta 
información por error, comuníquese con el remitente y proceda a borrarla 
de inmediato de todos los equipos de cómputo donde pueda quedar 
almacenada. Telesat entiende que el destinatario de este  mensaje ha 
tomado todas las medidas técnicamente recomendables y apropiadas para 
evitar la contaminación por virus. Telesat S.A. no se hace 

Re: SocketException: Too many open files

2005-02-01 Thread Remy Maucherat
On Tue, 01 Feb 2005 17:29:51 -0600, Stephen Charles Huey
[EMAIL PROTECTED] wrote:
 I'm running some simple but fast-pounding test programs against our
 Tomcat server from a machine on the same network, and we've been tuning
 our database, etc, based on this.  But right now, I'm seeing a new one
 coming out of our Java code whenever we try to open a URL:
 
 java.net.SocketException: Too many open files

If you're on Linux, use ulimit -a to see what the limits are, and
ulimit -n to change the value. However, only root is allowed to get
more than 1024 files (does somebody knows why ?).


-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: Slow HTTP upload of POST content

2005-02-01 Thread Michael Merkulovich
Thanks for helping out.  I'm accessing Tomcat directly.  The 3 servers on
which the problem occurs have different network cards and also differnet
from the NIC on the one workstation where everything works fine.  The
hardware is all fairly recent.  I didn't do any packet analysis.  I'll get
Ethereal and tinker with it.  Never done that before...

Here's an interesting thing.  I tried Jetty on the same boxes and uploads go
at full network speed.

 -- Mike


- Original Message - 
From: Parsons Technical Services [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 2:42 PM
Subject: Re: Slow HTTP upload of POST content


 Well for the life of me I can't find it either. I know I read it
somewhere.
 The idea was an issue with IE causing a fragmentation of the packets and
 retransmits. It boiled down to a bug in IE for certain versions. I don't
 remember a solution.

 So with that lets go after your setup.

 Are the machines running IIS or are you accessing Tomcat directly?

 Can/have you done any network analysis to see what the packets look like
and
 if there are any retransmissions?

 Are the network cards the same on all the servers?

 Doug

 - Original Message - 
 From: [EMAIL PROTECTED]
 To: tomcat-user@jakarta.apache.org
 Sent: Tuesday, February 01, 2005 8:42 AM
 Subject: AW: Slow HTTP upload of POST content


 Sorry i did'nt find the thread, althoug I searched for somthing like this.
 If you know exactly, where the thread is, send me the adress, cause I dont
 know where it is, and it would help me a lot of, not to loose more time
 on this search.

 thx

 --
  BMW Group
  Herr Christoph Emmersberger
  Praktikant
  mailto:[EMAIL PROTECTED]
  Url: http://www.bmwgroup.de
 -- 


 -Ursprüngliche Nachricht-
 Von: Parsons Technical Services
 [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 1. Februar 2005 14:19
 An: Tomcat Users List
 Betreff: Re: Slow HTTP upload of POST content
 
 
 Search the archives. There is a thread on this and the cause.
 
 http://mail-archives.apache.org/eyebrowse/SummarizeList?listNam
 [EMAIL PROTECTED]
 
 Doug
 
 - Original Message - 
 From: Michael Merkulovich [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Tuesday, February 01, 2005 2:14 AM
 Subject: Slow HTTP upload of POST content
 
 
  We are experiencing a very strange problem with HTTP uploads
 on tomcat5.
  When uploading large files from IE over the network, upload speed is
  capped
  at about 70kbytes/sec even though the network allows for much higher
  speeds.
  Neither CPU nor disk access appears to be the bottleneck. When using
  FireFox
  browser, upload speed is about 4000kbytes/sec. When using IE
 from the
  server
  through loopback adapter, speed is 7000kbytes/sec.
 
  This problem is happening on 2 separate servers. One is a
 win 2000 box
  with
  a freshly installed OS. The other one is a brand new windows
 server 2003
  enterprise edition.
 
  I tried apache fileupload library and o'reilly
 MultipartRequest. I also
  tried reading directly from InputStream all to the same effect.
 
  There is one machine which runs file-for-file identical tomcat
  installation
  under the same version of java. When accessing that machine
 with IE from
  other boxes, uploads go fast.
 
  I cannot figure out what's different between the machine on
 which it works
  and the two on which it doesn't. Any ideas?
 
  -- Mike
 
  -
  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]





 -
 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: SocketException: Too many open files

2005-02-01 Thread Stephen Charles Huey
Do other Tomcat users often need to raise this limit on Linux?  In
addition to talking to website users, our Tomcat also has to talk to
another web server elsewhere on the internet to verify a lot of stuff...


- Original message -
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Date: Wed, 2 Feb 2005 00:52:56 +0100
Subject: Re: SocketException: Too many open files

On Tue, 01 Feb 2005 17:29:51 -0600, Stephen Charles Huey
[EMAIL PROTECTED] wrote:
 I'm running some simple but fast-pounding test programs against our
 Tomcat server from a machine on the same network, and we've been tuning
 our database, etc, based on this.  But right now, I'm seeing a new one
 coming out of our Java code whenever we try to open a URL:
 
 java.net.SocketException: Too many open files

If you're on Linux, use ulimit -a to see what the limits are, and
ulimit -n to change the value. However, only root is allowed to get
more than 1024 files (does somebody knows why ?).


-- 
x
R#233;my Maucherat
Developer  Consultant
JBoss Group (Europe) S#224;RL
x

-
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 Includes?

2005-02-01 Thread QM
On Tue, Feb 01, 2005 at 09:59:30AM -0600, Curt LeCaptain wrote:
: Currently I'm running Tomcat 5 and I am looking to be able to take the
: virtual hosts section of my server.xml file and move it to it's own
: file, to be included in server.xml.


Sounds like you've gotten tunnel vision from digging at this so long =)

Let's forget about Tomcat-specific solutions and think XML: what about
external entities?  That is, define an entity

... vhostDefs ... some/path/to/vhost_defs.xml

and in server.xml


vhostDefs
...

The trick here would be relative vs absolute paths: what's the server's
current directory when it starts?  Does it stay in $CATALINA_BASE or
$CATALINA_HOME? etc.  You'd have to experiment but it's a start.


Another option would be to use system properties.  At least some such
properties are available in the Tomcat config files using
expression-language syntax (e.g. ${vhost.defs}), though I haven't
researched this.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Performance of different Tomcat Releases

2005-02-01 Thread QM
On Tue, Feb 01, 2005 at 11:52:37AM -0600, sudip shrestha wrote:
: I would like to know if there is significant performance improvement
: from 5.0.x to 5.5.x.  Is there some sort of relative performance study
: done by anybody?

Tomcat 5.5 is supposed to include several performance enhancements, and
you may also see a boost from running JDK 1.5.

That said, there are a lot of app-specific considerations here.  The
only way to be certain is to deploy your app under Tomcat 5.5 and find
out.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: Deny access to a JSP page

2005-02-01 Thread QM
On Tue, Feb 01, 2005 at 08:22:45PM +0100, apuerta.foros wrote:
:  I'd like Tomcat to deny access to some JSPs with internal information.
: 
:  I can configure Apache to deny access depending on the user IP,
: transparently.
:  
:  I'd like to do the same in Tomcat, but i don't now how.

Have you searched the archives on this?  Look up AccessValve. (-or was
that RemoteAccessValve?  Either way, it's a Valve implementation.)

That, or look into servlet filters.  They're available with the 2.3 spec
onward.

Finally, it's helpful to the rest of us when you post your setup details
(Tomcat version, OS, etc).  There are several versions of Tomcat.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: getAttribute returning null

2005-02-01 Thread QM
On Tue, Feb 01, 2005 at 08:56:14PM +, Didier McGillis wrote:
: Having problem with a context parm.  I have a servlet that queries for 300+ 
: list of names, it then builds a select list.  This list changes 
: infrequently, the jsp page is supposed to display the data from the 
: servlet, so being the absolutly brilliant person that I am I wanted that 
: option list built on startup, and then just have the jsp display the list.
: 
: I retrofitted the servlet to build the list, and then put 
: %=application.getAttribute(listOfDealer)% in the jsp, open the page and 
: wham -o awesome, great .. it doesnt work, all I see is null.

In addition to Tim Funk's advice, I'd suggest you post the code.  A
one-letter typo can cause all sorts of headaches =)

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



Re: SocketException: Too many open files

2005-02-01 Thread QM
On Tue, Feb 01, 2005 at 05:29:51PM -0600, Stephen Charles Huey wrote:
: java.net.SocketException: Too many open files
:  [snip]
: We're opening lots of these, and it appears we're opening more than a
: maximum number of connections to the internet.  Is there a way to bump
: this up?  Or maybe we're just pounding this harder than it will ever get
: hit in the real world?

I don't recall which OS you run, but look into tuning the TCP stack for
the short, bursty connection style of HTTP.  There's a setting that
determines how long your server hangs onto a socket after the connection
has closed. 

For the life of me, I can't remember this parm right now, but I've seen
it here and there.  

Search the archives for Too many open files and my e-mail address.
You should turn up a post in which I've answered this question before.

-QM


-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



OT: Java / Tomcat Job Abroad

2005-02-01 Thread Aris Javier
Hello!
 
This is an out of topic question... 
Sorry, but since all of you guys are using Java and Tomcat,
and are from different countries... 
im just wondering if i can land a job abroad?
 
I'm planning to migrate to Canada, US, or New Zealand from here
in Philippines... My skill is java programming (J2EE) and has 2 years
experience.
 
Is Java/Tomcat skill marketable in those countries i've mentioned?
Or does anyone of you need a java programmer that i can apply? 
 
=)
 
 
Thanks!
 
Aris
 


Re: Include Native DLL in Tomcat application

2005-02-01 Thread KwonNam Son
 Where can I place the DLL so it can be seen within the application?
 

Try adding the directory which has the DLLs to the global PATH
environment variable.

regards,
KwonNam.

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



Re: SystemThreadList.java update?

2005-02-01 Thread Bob Feretich
Thanks Ronald.
I made a couple mods.
I added the below to the Group fields:
Comparator threadComparitor =
new Comparator() {
public int compare(Object o1, Object o2) {
return (((Thread) o1).getName()).compareTo
(((Thread) o2).getName());
} // end compare method
};
Then I was able to sort the Thread array directly...
java.util.Arrays.sort(ta, 0, nr, threadComparitor);
I also added another tab before the printing of Thread lines so that 
they appear to be contained in their ThreadGroup rather than appearing 
as a peer to it.

out.println(prefix + \tT  + ta[i].toString() );
Regards,
Bob Feretich
Ronald Klop wrote:
Hello,
I use the attached .jsp to view all the threads.
Ronald.
On Fri Jan 28 12:33:10 CET 2005 Tomcat Users List 
tomcat-user@jakarta.apache.org wrote:

There is a June 2002 mail thread that discusses How to list all
Threads
in the JVM?. It includes a handy Java class that is supposed to return
all sorts of information on these threads.
But, the class does not seem to examine the entire ThreadGroup tree.
The constructor creates an ArrayList of ThreadGroups along a tree
branch
from the current thread to the root, but other tree branches are
ignored.
Unfortunately, the mail thread ended without any further discussion.
Is there some significance between this branch of the ThreadGroup tree
and the way Tomcat creates ThreadGroups or is this a bug in the
suggested code?
Also getThreadCount() seems to return the number of ThreadGroups in the
branch rather than the number of Threads in the JVM.
Regards,
Bob Feretich
package com.mpi.chemi.portal.util;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
public class SystemThreadList
{
/**
* The list of threads.
*/
private ArrayList _threads;
/**
* Constructor. Creates a list of all the
* threads running in the JVM in the system.
*/
public SystemThreadList()
{
_threads = new ArrayList();
ThreadGroup tg = Thread.currentThread().getThreadGroup();
if(tg != null)
{
_threads.add(tg);
while(tg.getParent() != null)
{
tg = tg.getParent();
if(tg != null)
{
_threads.add(tg);
}
}
}
}
/**
* Returns the thread count.
*
* @return int
*/
public int getThreadCount()
{
if(_threads == null)
return -1;
else
return _threads.size();
}
/**
* Returns the thread group at the given index.
*
* @param index
* @return ThreadGroup
*/
public ThreadGroup getThreadGroup(int index)
{
if(getThreadCount()  1)
return null;
else if((index  0) || (index  (getThreadCount() - 1)))
return null;
else
return (ThreadGroup)_threads.get(index);
}
/**
* Prints out the list of threads.
*/
public void printThreads()
{
System.out.println(toString());
}
/**
* Returns a String representation of this
* SystemThreadList.
*
* @return String
*/
public String toString()
{
StringBuffer sb = new StringBuffer([SystemThreadList:\n);
if(getThreadCount()  1)
{
sb.append( No Threads );
}
else
{
for(int i = 0; i  getThreadCount(); i++)
{
sb.append( ThreadGroup  + i + = );
sb.append(getThreadGroup(i).toString());
sb.append(, activeCount =  + getThreadGroup(i).activeCount());
sb.append(\n);
}
}
// Total active count
sb.append( totalActiveCount =  + getTotalActiveCount() + \n);
sb.append( (End of SystemThreadList)]);
return sb.toString();
}
/**
* Returns the total active count: goes over
* every group in the list, and sums their activeCount()
* results.
*
* @return int
*/
public int getTotalActiveCount()
{
if(getThreadCount()  1)
return 0;
else
{
int totalActiveCount = 0;
ThreadGroup tg = null;
for(int i = 0; i  getThreadCount(); i++)
{
tg = getThreadGroup(i);
totalActiveCount += tg.activeCount();
}
return totalActiveCount;
}
}
/**
* Returns the root thread group, i.e.
* the one whose parent is null.
*
* @return ThreadGroup
*/
public ThreadGroup getRootThreadGroup()
{
if(getThreadCount()  1)
return null;
else
{
ThreadGroup tg = null;
for(int i = 0; i  getThreadCount(); i++)
{
tg = getThreadGroup(i);
if(tg.getParent() == null)
{
return tg;
}
}
// If we got here, we didn't find one, so return null.
return null;
}
}
/**
* Gets all the threads.
*
* @return Thread[]
*/
public Thread[] getAllThreads()
{
int estimatedCount = getTotalActiveCount();
// Start with array twice size of estimated,
// to be safe. Trim later.
   

tomcat CPU utilization pegged...total CPU only 50%

2005-02-01 Thread Kevin Williams
Hello,

 

I am trying to performance test an application running Tomcat with
Apache w/SSL (connected using mod_proxy).  The OS is Windows Server
2003.

 

The test I am running is simulating a user logging into the application
(using JMeter for the testing framework).  Increasing the number of
users from 1, 2, 3, 4,5 the total CPU utilization jumps considerably.
After 5 users the CPU utilization hits 50% for a second and then
drops...When simulating 10 users, the CPU hits50% for a few seconds and
drops back down, the more users, the longer the CPU is pegged at 50%.
My question is why is tomcat only using 50% of the CPU?  Seeing the CPU
grow significantly with each user, and then peg out for longer periods
of time with an increased user load indicates that the CPU is the choke
point.  Using performance monitor, the Tomcat % Processor Time pegs out
at 100% for the duration that total CPU utilization is at 50%.  Is there
a configuration option that I am unaware of to allow tomcat to use more
CPU?

 

Thanks in advance!

 

Kevin



Re: tomcat CPU utilization pegged...total CPU only 50%

2005-02-01 Thread Parsons Technical Services
Is this on a dual processor machine?
What version of Tomcat and JVM?
Doug
- Original Message - 
From: Kevin Williams [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 11:25 PM
Subject: tomcat CPU utilization pegged...total CPU only 50%

Hello,

I am trying to performance test an application running Tomcat with
Apache w/SSL (connected using mod_proxy).  The OS is Windows Server
2003.

The test I am running is simulating a user logging into the application
(using JMeter for the testing framework).  Increasing the number of
users from 1, 2, 3, 4,5 the total CPU utilization jumps considerably.
After 5 users the CPU utilization hits 50% for a second and then
drops...When simulating 10 users, the CPU hits50% for a few seconds and
drops back down, the more users, the longer the CPU is pegged at 50%.
My question is why is tomcat only using 50% of the CPU?  Seeing the CPU
grow significantly with each user, and then peg out for longer periods
of time with an increased user load indicates that the CPU is the choke
point.  Using performance monitor, the Tomcat % Processor Time pegs out
at 100% for the duration that total CPU utilization is at 50%.  Is there
a configuration option that I am unaware of to allow tomcat to use more
CPU?

Thanks in advance!

Kevin

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


RE: tomcat CPU utilization pegged...total CPU only 50%

2005-02-01 Thread Kevin Williams
Doug,

Here you go:

Tomcat Version: 4.1
JVM Version: 1.4.1_07
2 processors: P4 Xeon 3.06 Ghz

Thanks,

Kevin Williams

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

Sent: Tuesday, February 01, 2005 8:38 PM
To: Tomcat Users List
Subject: Re: tomcat CPU utilization pegged...total CPU only 50%
[bcc][faked-from][bayes]

Is this on a dual processor machine?

What version of Tomcat and JVM?

Doug

- Original Message - 
From: Kevin Williams [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 11:25 PM
Subject: tomcat CPU utilization pegged...total CPU only 50%


Hello,

 

I am trying to performance test an application running Tomcat with
Apache w/SSL (connected using mod_proxy).  The OS is Windows Server
2003.

 

The test I am running is simulating a user logging into the application
(using JMeter for the testing framework).  Increasing the number of
users from 1, 2, 3, 4,5 the total CPU utilization jumps considerably.
After 5 users the CPU utilization hits 50% for a second and then
drops...When simulating 10 users, the CPU hits50% for a few seconds and
drops back down, the more users, the longer the CPU is pegged at 50%.
My question is why is tomcat only using 50% of the CPU?  Seeing the CPU
grow significantly with each user, and then peg out for longer periods
of time with an increased user load indicates that the CPU is the choke
point.  Using performance monitor, the Tomcat % Processor Time pegs out
at 100% for the duration that total CPU utilization is at 50%.  Is there
a configuration option that I am unaware of to allow tomcat to use more
CPU?

 

Thanks in advance!

 

Kevin




-
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 CPU utilization pegged...total CPU only 50%

2005-02-01 Thread Caldarale, Charles R
 From: Kevin Williams [mailto:[EMAIL PROTECTED]
 Subject: tomcat CPU utilization pegged...total CPU only 50%

 Using performance monitor, the Tomcat % Processor Time pegs out
 at 100% for the duration that total CPU utilization is at 50%.

I'm confused.  What tool or monitoring mechanism is telling you that total CPU 
utilization is 50% at the same time that PerfMon says it's 100%?

Additional questions:
1) Are you running Tomcat as a service?
2) Are you using CPU affinity settings that would restrict Tomcat to one CPU?
3) Are you going into garbage collection frequently enough to prevent use of 
both CPUs? (Turn on -verbose:gc to check.)

 - 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: Java / Tomcat Job Abroad

2005-02-01 Thread Rhino
I think you'll find that there are Java jobs in Canada. I've seen some at
monster.ca and workopolis.ca. I don't know about Tomcat jobs; I've never
looked for Tomcat jobs.

I hope you like living in large cities in a climate that is sometimes
miserable (-40C in winter in Winnipeg for example) ;-)

Rhino

- Original Message - 
From: Aris Javier [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, February 01, 2005 8:52 PM
Subject: OT: Java / Tomcat Job Abroad


Hello!

This is an out of topic question...
Sorry, but since all of you guys are using Java and Tomcat,
and are from different countries...
im just wondering if i can land a job abroad?

I'm planning to migrate to Canada, US, or New Zealand from here
in Philippines... My skill is java programming (J2EE) and has 2 years
experience.

Is Java/Tomcat skill marketable in those countries i've mentioned?
Or does anyone of you need a java programmer that i can apply?

=)


Thanks!

Aris



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



timestamp protocol (RFC 3161)

2005-02-01 Thread Joel
This is kind of a long shot, but I was wondering if anyone here has any
(Bexperience with bouncy castle's timestamp protocol stuff that they'd
(Bcare to share. 
(B
(BI need to implement a tsa server and client, and I'd just feel more
(Bcomfortable if I weren't depending solely on my own poor interpretations.
(B
(B--
(BJoel Rees   [EMAIL PROTECTED]
(Bdigitcom, inc.   $B3t<02q

RE: tomcat CPU utilization pegged...total CPU only 50%

2005-02-01 Thread Kevin Williams
Charles,

Thanks for the help, here are your answers:

I am using perfmon to monitor the % CPU Utilization (total and for the
tomcat process).  I added the tomcat process % CPU Utilization by doing
the following:
a.  Within perfmon, Add an additional monitor.
b.  In the popup drop down list select process.
c.  Select % CPU Time
d.  Select the tomcat process.


1.  Yes, tomcat is running as a service.
2.  I am not aware of any CPU affinity settings.  I tried to check these
in Task Manager (never heard of them before you mentioned it--I'm new to
this), but didn't have access.  Looking into that, I found an article
that stated you could only set this if the process is NOT running as a
service.  If this isn't the case, please let me know how to set/check
it!
3.  I'm not sure what options are set with the jvm (I didn't install the
service).  I can check with the individual who created the service
tomorrow, and reset it to include the verbose:gc option though.

Thanks!

Kevin Williams

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 8:56 PM
To: Tomcat Users List
Subject: RE: tomcat CPU utilization pegged...total CPU only 50%
[bcc][faked-from][bayes]
Importance: Low

 From: Kevin Williams [mailto:[EMAIL PROTECTED]
 Subject: tomcat CPU utilization pegged...total CPU only 50%

 Using performance monitor, the Tomcat % Processor Time pegs out
 at 100% for the duration that total CPU utilization is at 50%.

I'm confused.  What tool or monitoring mechanism is telling you that
total CPU utilization is 50% at the same time that PerfMon says it's
100%?

Additional questions:
1) Are you running Tomcat as a service?
2) Are you using CPU affinity settings that would restrict Tomcat to one
CPU?
3) Are you going into garbage collection frequently enough to prevent
use of both CPUs? (Turn on -verbose:gc to check.)

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

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



RE: tomcat CPU utilization pegged...total CPU only 50%

2005-02-01 Thread Caldarale, Charles R
 From: Kevin Williams [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat CPU utilization pegged...total CPU only 50%
 
 1.  Yes, tomcat is running as a service.

You might want to shutdown that service and run it from a command-line window, 
at least for testing purposes.  Easier to fiddle with heap size options and the 
like.

 2.  I am not aware of any CPU affinity settings.

They won't show up in Task Manager.  Not sure if the plain Windows Server 
supports affinity; my experience with that capability was on a 32-CPU Advanced 
(Enterprise?) Server system which I no longer have access to.  There's an mmc 
plug in Admin Tools that lets you play with associating processes with CPUs, if 
it's available in your OS.

 3.  I'm not sure what options are set with the jvm (I didn't 
 install the service).

IIRC, the default heap size for the 1.4.1 JVM on Windows is only 64 MB, and 
that's really not enough for any serious work.  I suspect that you're spending 
much of your time in garbage collection.

 - 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: Proof of concept

2005-02-01 Thread remm
The sample is attached!


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

Re: Failed JDBC connection hangs Tomcat

2005-02-01 Thread Igor
Hello!
I sent answer to tomcat users yesterday, but it seems not to be accepted ...
So I am sending it once more ...
I am referring to JTDS 1.0.
I think, that the problem is in net.sourceforge.jtds.jdbc.SharedSocket
class: it should set timeout for socket, otherwise
methods getNetPacket and sendNetPacket may hang.
Igor
- Original Message - 
From: Arthur D'Alessandro [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org; Hari 
Mailvaganam [EMAIL PROTECTED]
Cc: Igor [EMAIL PROTECTED]
Sent: Tuesday, February 01, 2005 3:40 PM
Subject: Re: Failed JDBC connection hangs Tomcat


What version of the JTDS are you referring to, I know they recently
released 1.0 code...
On Sun, 30 Jan 2005 20:06:07 -0800, Hari Mailvaganam [EMAIL PROTECTED] 
wrote:
The JTDS driver can cause the hanging you described - this has occured
in a test we did on Win 2k, SQL Server 2k, 1.5 JDK.
reagrds,
Hari Mailvaganam
On Sun, 30 Jan 2005 08:39:50 +0200, Igor [EMAIL PROTECTED] wrote:
 We have the same problem, that described in

 http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html

 There is ServletContextListener in our application, that schedule two 
 tasks for repeated fixed rate execution on context initialization 
 (Timer.scheduleAtFixedRate).

 First task is executed every minute. It queries MS SQL server, second 
 task is executed every hour.

 If MS SQL server goes down, first task tries to use connection to 
 database.
 After this Tomcat may hang: when user tries to download a page, he or 
 her will wait for a long time (more that 1 day).

 At the same time second taks (that is executed every hour) works as it 
 was expected: there are corresponding entries in log file.

 First task is executed in separate thread, and I do not understand how 
 can it hang whole tomcat (at least one context).

 We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for 
 MS and JTDS drivers :-(

 Does somebody know how can I prevent tomcat from hang in such 
 situations?

 Thank you in advance,
 Igor

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


--
-Art D'Alessandro



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


Re: [ANN] JK 1.2.8 Released

2005-02-01 Thread Mladen Turk
Ellen Blank wrote:
Hello,
wondering how soon jk-1.2.8 binaries will become available for Solaris 
platform, and whether it makes sense to wait or go ahead with the 
jk-1.2.6 in a mean while.

Well, I don't have Solaris box to make a build :).
Also there are couple versions of them that are binary incompatible.
Anyhow, there is no official binaries for httpd-2.0.52 either.
The build system is quite simple, so just use standard
configure, make, make install.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Hello

2005-02-01 Thread remm
I hope the patch works.


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

RE: tomcat CPU utilization pegged...total CPU only 50%

2005-02-01 Thread Kevin Williams
Charles,

My client has installed two instances of tomcat (each as a service).
I'm not really sure how they did it (they have the standard C:/Program
Files/Apache Group/Tomcat 4.1 folder, but the apps and conf files are in
D:/instances/instance1/conf, D:/instances/instance1/app,
D:/instances/instance1/work, D:/instances/instance1/log).  I'll talk to
the guy who configured this so I can emulate one of the instances in
batch mode.  I'll let you know how it goes after I make the changes!

Kevin

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 01, 2005 10:00 PM
To: Tomcat Users List
Subject: RE: tomcat CPU utilization pegged...total CPU only 50%
[bcc][faked-from]
Importance: Low

 From: Kevin Williams [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat CPU utilization pegged...total CPU only 50%
 
 1.  Yes, tomcat is running as a service.

You might want to shutdown that service and run it from a command-line
window, at least for testing purposes.  Easier to fiddle with heap size
options and the like.

 2.  I am not aware of any CPU affinity settings.

They won't show up in Task Manager.  Not sure if the plain Windows
Server supports affinity; my experience with that capability was on a
32-CPU Advanced (Enterprise?) Server system which I no longer have
access to.  There's an mmc plug in Admin Tools that lets you play with
associating processes with CPUs, if it's available in your OS.

 3.  I'm not sure what options are set with the jvm (I didn't 
 install the service).

IIRC, the default heap size for the 1.4.1 JVM on Windows is only 64 MB,
and that's really not enough for any serious work.  I suspect that
you're spending much of your time in garbage collection.

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

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