Re: Tomcat SSL, after clientAuth=false worked, how to set up to true?

2006-06-19 Thread Gaƫl Lams
The problem is that Microsoft Internet Explore and Netscape now are serious about the Root Trust Authorities. ... I'm not sure what you mean by serious about the Root Trust Authorities but I tested the ssl client authentication on several computers, both inside and outside our LAN with both

Download a file from jsp

2006-06-19 Thread password password
Hi, I have a jsp where I show a table. I am trying to download this jsp like excel file. To do this I put I get the information from a servlet and send this information in an attribute to the jsp It works fine if I use only one browser. The problem is when I try to do this but

Download a file from jsp

2006-06-19 Thread password password
Hi, I have a jsp where I show a table. I am trying to download this jsp like excel file. To do this I put I get the information from a servlet and send this information in an attribute to the jsp It works fine if I use only one browser. The problem is when I try to do this but

Tomcat 5.5.17 APR/SSL Client Certificat

2006-06-19 Thread alym
Hi, I cannot obtain client certificate with SSL/client certificate authentication using APR components My configuration : Tomcat 5.5.17, jdk1_5.0_06, Apr-1.2.7, Openssl-0.9.8, tomcat-native-1.1.3 under solaris 8 I configured tomcat to use SSL client-certificate authentication and i need to

Http11AprProtocol took 2 hr to init on http-443

2006-06-19 Thread Jeff Chuang
Hi, After starting tomcat from jsvc as service, it took 7840217 ms to initialize Http11AprProtocol on http-443, during which port 80 was blocked. There was no error found in jsvc debug info, neither was catalina.out. After initialization on port 443, everything works(both ports 80 and 443).

session-timeout or setMaxInactiveInterval

2006-06-19 Thread Serlet Jean-Claude
I try to invalidate sessions which are inactive during 20 minutes I thought that session-timeout works fine I use a java class which implements HttpSessionBindingListener to destroy the connections made to the database when the container invalidate the session after 20 minutes of inactivity In

Ant deploy Tomcat

2006-06-19 Thread Hans Sowa
Hi all I try to deploy a war file to tomcat 5.0.28 using following ant script: target name=deploy description=Install web application deploy url=${deploy.url} username=${deploy.user} password=${ deploy.pwd} path=${deploy.path} war=${deploy.war.src}/${deploy.war.name }.war/ /target

RE: Tomcat java processes eat processor.

2006-06-19 Thread GB Developer
We use a slightly modified version of what was posted to this list a long time back. It lets us look at a running website and quite easily see which of our pages have got themselves 'stuck'. http://marc.theaimsgroup.com/?l=tomcat-userm=109455426721082w=2 (It's at the bottom of that page.)

Re: Newbie - Document Access Problem

2006-06-19 Thread Suba Suresh
I tried the following: 1. I created a myApp.xml file with the following and placed the file in $CATALINA_HOME\Catalina\localhost directory. Context reloadable=true path= docBase=C:\Documents and Settings\subas\webapps\myApp debug=true privileged=true !-- Default set of monitored

Re: can't save a context.

2006-06-19 Thread Jay G. Scott
i got three suggestions. (i was out friday.) i've looked at them all. | | Hi | The other thing is please remove your TOMCAT_HOME/webapps/yourApp.war file | from webapps directory to some other place. Other wise you may loose your | settings again if you restart tomcat. | Ask me for any

Re: Newbie - Document Access Problem

2006-06-19 Thread Suba Suresh
I also tried with path=/ in the Context element in my xml file, since my webapplication does not have the ROOT directory. thanks, suba suresh. Suba Suresh wrote: I tried the following: 1. I created a myApp.xml file with the following and placed the file in $CATALINA_HOME\Catalina\localhost

Re: can't save a context. 5.0.28 will save.

2006-06-19 Thread Jay G. Scott
okay. some definite results. 5.5.17 solaris 9 29 java -version java version 1.5.0_07 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03) Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing) this does not make a yourapp.xml file. it further forgets all

Re: Tomcat java processes eat processor.

2006-06-19 Thread Leon Rosenberg
On 6/19/06, Rick Cockerham [EMAIL PROTECTED] wrote: I wish it would give me a stack trace. That would be wonderful. The part I left out was just a list of all the loaded libraries. I can't risk a switch in software. I realize this is a tough one. I have very little flexibility to help me

RE: Using Datasource for cloudscape

2006-06-19 Thread Dilan Kelanibandara
Hi Jitendra, To claryfiy your error please send followings in your configuration (as an attachment or copy ,paste here) CATALINA_HOME/conf/server.xml CATALINA_HOME/webapps/yourApp/WEB-INF/web.xml context.xml Where do you have defined your context.xml? And any other additional configuration

RE: Using Datasource for cloudscape

2006-06-19 Thread Dilan Kelanibandara
-Original Message- From: Dilan Kelanibandara [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 6:28 PM To: 'Tomcat Users List' Subject: RE: Using Datasource for cloudscape Hi Jitendra, To claryfiy your error please send followings in your configuration (as an attachment or copy

Re: Tomcat's scalability

2006-06-19 Thread Leon Rosenberg
are you sure that tomcat is your bottleneck? Your 4 CPU machine (which cpu's btw?) should be able to handle more than 1000 users (unless you are speaking about suns cpu) without problems. Maybe you should provide more info about your application. Do you have any monitoring data? Leon On

Re: Tomcat's scalability

2006-06-19 Thread Leon Rosenberg
Almost forgot, as for your question about multiple jvms with multiple tomcat instances: we tried to scale tomcat instances on the same machine and it made no difference. leon On 6/19/06, Biernatowski Bartosz J [EMAIL PROTECTED] wrote: Hello, I was hoping somebody on the list might point me in

servlet as an index page ?

2006-06-19 Thread Leonel
Hello I'm trying to make a Servlet act as a Index page when I request the url http://server/ how can I tell tomcat to execute the servlet I want it works when I request http://server/servlet but I don't want to issue the servlet name on the url thanks -- Leonel

Re: servlet as an index page ?

2006-06-19 Thread Marc Farrow
Change your ROOT index.jsp to redirect to the servlet. Or you can map ALL ROOT requests to go to the servlet. Not sure the latter is something you want. On 6/19/06, Leonel [EMAIL PROTECTED] wrote: Hello I'm trying to make a Servlet act as a Index page when I request the url

Re: servlet as an index page ?

2006-06-19 Thread Leonel
On 6/19/06, Marc Farrow [EMAIL PROTECTED] wrote: Change your ROOT index.jsp to redirect to the servlet. Or you can map ALL ROOT requests to go to the servlet. Not sure the latter is something you want. On 6/19/06, Leonel [EMAIL PROTECTED] wrote: Hello I'm trying to make a Servlet act

Re: Tomcat's scalability

2006-06-19 Thread Mladen Adamovic
Do top on the servers to be sure is problem in Tomcat or not. Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should be able to improve performances almost 4x. Biernatowski Bartosz J wrote: Hello, I was hoping somebody on the

Re: Tomcat's scalability

2006-06-19 Thread Leon Rosenberg
On 6/19/06, Mladen Adamovic [EMAIL PROTECTED] wrote: Do top on the servers to be sure is problem in Tomcat or not. Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should be able to improve performances almost 4x. could you explain

Re: Tomcat's scalability

2006-06-19 Thread Mladen Adamovic
Leon Rosenberg wrote: Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should be able to improve performances almost 4x. could you explain why?? Isn't Tomcat and JVM still single threaded? Single thread = single processor usage

Re: Tomcat's scalability

2006-06-19 Thread Leon Rosenberg
On 6/19/06, Mladen Adamovic [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should be able to improve performances almost 4x. could you explain why?? Isn't Tomcat and JVM still

RE: servlet as an index page ?

2006-06-19 Thread Saha Rabindra N
Leonel, Change the following line in tomcat/conf/server.xml file !-- Tomcat Root Context -- !-- Changed the ROOT context to point to yourapp. The following one line has been changed. Earlier it was commented out which indicates that tomcat always

Re: Tomcat's scalability

2006-06-19 Thread Darryl Miles
Leon Rosenberg wrote: On 6/19/06, Mladen Adamovic [EMAIL PROTECTED] wrote: Leon Rosenberg wrote: Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should be able to improve performances almost 4x. could you explain why?? Isn't

Interfaces and cast problems in Tomcat

2006-06-19 Thread Claudio Veas
Hello my name is Claudio Veas Im very new in tomcat develop and I was trying to use an interface to implement a cache. I make all the objects that I wanted to keep in memory implement cacheable interface so I could insert them into a Vector and then minimize the timing when looking for the same

RE: Tomcat's scalability

2006-06-19 Thread Biernatowski Bartosz J
I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon. My monitoring data: Memory utilization under 30%, CPU under 10%. Using hardcore performance tools and systematic approach. The bottom line is that

Re: Tomcat's scalability

2006-06-19 Thread Alex Turner
Given that you aren't CPU bound, it's highly unlikely the problem is tomcat. Alex. On 6/19/06, Biernatowski Bartosz J [EMAIL PROTECTED] wrote: I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon.

Re: Tomcat's scalability

2006-06-19 Thread Alex Turner
You've also totally failed to include numbers for I/O (don't forget, it's not necessarily MB/sec that counts, it's requests/sec) and for Network usage, and also for the perfomance pattern of the SQL Server system, which is considerably more likely to be the bottleneck than the app seeing that

Re: servlet as an index page ?

2006-06-19 Thread Leonel
On 6/19/06, Saha Rabindra N [EMAIL PROTECTED] wrote: Leonel, Change the following line in tomcat/conf/server.xml file !-- Tomcat Root Context -- !-- Changed the ROOT context to point to yourapp. The following one line has been changed. Earlier it was commented out

RE: Tomcat's scalability

2006-06-19 Thread GB Developer
How do you propose to add a 'separate instance of Tomcat' without 'adding a separate JVM'? Or do you/others mean by 'instance of tomcat' = 'a separate physical server with single instance of JVM/Tomcat' ? So far it sounds that the approach of adding separate instance of Tomcat and using

RE: Interfaces and cast problems in Tomcat

2006-06-19 Thread GB Developer
What does the following tell you? interfaz_dbms.cacheable temp; temp = interfaz_dbms.cache.getReferencia().Buscar(id,n.getTipo()); // add this code below... if (temp!=null) { System.out.println(class + temp.getClass() + ); } // back to your code... n=

RE: Tomcat's scalability

2006-06-19 Thread Biernatowski Bartosz J
My understanding of Tomcat's instance is having both Tomcat+JVM installed in separate directories. Both Tomcats running on separate ports. BJ Biernatowski Application Developer, e-Business -Original Message- From: GB Developer [mailto:[EMAIL PROTECTED] Sent: Monday, June 19, 2006 2:40

Re: Tomcat's scalability

2006-06-19 Thread Leon Rosenberg
On 6/19/06, Biernatowski Bartosz J [EMAIL PROTECTED] wrote: I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon. My monitoring data: Memory utilization under 30%, CPU under 10%. Using hardcore

RE: Tomcat's scalability

2006-06-19 Thread Biernatowski Bartosz J
On 6/19/06, Mladen Adamovic [EMAIL PROTECTED] wrote: Do top on the servers to be sure is problem in Tomcat or not. Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should be able to improve performances almost 4x. could you explain

Re: Tomcat's scalability

2006-06-19 Thread Leon Rosenberg
On 6/19/06, Biernatowski Bartosz J [EMAIL PROTECTED] wrote: On 6/19/06, Mladen Adamovic [EMAIL PROTECTED] wrote: Do top on the servers to be sure is problem in Tomcat or not. Teoreticly, your servers should be faster if you configure 4 Tomcat instances (4 JVMs) to do round robin. You should

RE: Tomcat's scalability

2006-06-19 Thread GB Developer
My feeling is that by calling an installatin of 'java' or 'the jdk/jre' a 'jvm' is going to produce confusion. /usr/local/applications/tomcat1 /usr/local/applications/tomcat2 /usr/local/applications/tomcat3 /usr/local/java That's one *JDK/JRE*, and 3 tomcat *instances*. Each tomcat startup file

Re: Tomcat's scalability

2006-06-19 Thread Andrew Miehs
Biernatowski Bartosz J wrote: I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon. My monitoring data: Why are you 90% sure?! Your SQL server is running on a seperate machine? or the same

Re: Tomcat's scalability

2006-06-19 Thread Leon Rosenberg
On 6/20/06, Andrew Miehs [EMAIL PROTECTED] wrote: Biernatowski Bartosz J wrote: I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon. My monitoring data: If this is a REAL problem for your

Re: Tomcat's scalability

2006-06-19 Thread Andrew Miehs
Ooops - forgot to add the rest Andrew Miehs wrote: Could be anything - the database could be the indexes in the database, could be deadlocks, could be a badly programmed application, could be high packet loss on the ethernet interfaces, could even be tomcat - As for the 90% guess - At

Re: servlet as an index page ?

2006-06-19 Thread Hassan Schroeder
On 6/19/06, Leonel [EMAIL PROTECTED] wrote: I'm trying to make a Servlet act as a Index page Suggestion: *read* the 2.4 Servlet Spec :-) If you're not running a 2.4 webapp, forward from the welcome-file of your choice... HTH, -- Hassan Schroeder [EMAIL PROTECTED]

RE: Interfaces and cast problems in Tomcat

2006-06-19 Thread Claudio Veas
Thanks a lot for your help I was having some problems with the naming of the package / class but also It was because it seems that netbeans (the ide that Im using to run and debug JSP) does not erase the old files so when I changed the name of some classes some of the old references didnt throw

Tomcat 5.5 with JSSE

2006-06-19 Thread Paul Rabinovich
Hello, I'm running Tomcat 5.5 on Windows XP with Java 1.5. In server.xml I configured SSL as follows: Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false

Re: servlet as an index page ?

2006-06-19 Thread Leonel
On 6/19/06, Hassan Schroeder [EMAIL PROTECTED] wrote: On 6/19/06, Leonel [EMAIL PROTECTED] wrote: I'm trying to make a Servlet act as a Index page Suggestion: *read* the 2.4 Servlet Spec :-) Suggestion Accepted info found on the page 85 of the 2.4 servlet spec If you're not

pdf documents

2006-06-19 Thread Bob Wyatt
I have a directory that contains hundreds of pdf files. I have Tomcat 5.0.28 running on AIX 5.2. Under the webapps/appname directory, if I create a symbolic link to the pdf files, they will not display. If I move the pdf to the webapps/appname directory, it will display just fine. I don't

RE: pdf documents

2006-06-19 Thread Bob Wyatt
Mark, No... Didn't know about it... Now that I know about it (Thank You), I'm not sure of what really needs to be done... No where under $CATALINA_HOME do I have a defaultcontext.xml, context.xml, or similarly named file. All of my similarly named files are *.html files or directories, as

Re: pdf documents

2006-06-19 Thread Suba Suresh
I have the same problem as Bob but files mapping into different file systems. I also tried the context mapping as you (Mark)had suggested with app.xml file. I will read about the link config tomorrow and try it. Any help would be appreciated. thanks, suba suresh. Bob Wyatt wrote: Mark,

Re: pdf documents

2006-06-19 Thread Mark Thomas
Bob Wyatt wrote: So I'm not sure what to do - any advice? Create a pdf.xml file with the following contents and place it in your ${catalina.home}/webapps folder. Depending on your settings you may need to restart Tomcat. Context docBase=/full/path/to/directory/of/pdf/docs /Context This will

Re: Http11AprProtocol took 2 hr to init on http-443

2006-06-19 Thread Jeff Chuang
Thanks for responses. If I put connector ajp-8009 configuration block BEFORE connector http-443 in server.xml, the log looks like Jun 19, 2006 5:33:11 PM org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing Coyote HTTP/1.1 on http-80 Jun 19, 2006 5:33:11 PM

Problem with Headers

2006-06-19 Thread Gerardo Arroyo Arce
Hi, I am using Tomcat 5.5.17 on Red Hat AS but I've a problem with the Headers. I want to use a filter in order to apply gzip compression, everything works perfectly on my Tomcat 5.5.9 under Windows, that means: I receive an accept-encoding header, however under 5.5.17 that header is not present.

Re: Http11AprProtocol took 2 hr to init on http-443

2006-06-19 Thread Stephen Souness
Hi Could it be related to some problems that Java has had on some Linux distributions with obtaining entropy for its random number generation for encryption? In the past (a few years back admittedly) we encountered a problem when trying to connect our application to an https site.

Re: Tomcat's scalability

2006-06-19 Thread Alex Turner
On 6/19/06, Leon Rosenberg [EMAIL PROTECTED] wrote: On 6/19/06, Biernatowski Bartosz J [EMAIL PROTECTED] wrote: I am about 90% sure the bottleneck is Tomcat or what's running on top of Tomcat. Application uses JDBC queries to MS SQL server Chips are Intel Xeon. My monitoring data: Memory

RE: Using Datasource for cloudscape

2006-06-19 Thread Jitendra Kharche
Hi Dilan, Thanks for helping. Attaching the files CATALINA_HOME/conf/server.xml CATALINA_HOME/webapps/myApp/WEB-INF/web.xml CATALINA_HOME/webapps/myApp/META-INF/context.xml The context.xml is placed in CATALINA_HOME/webapps/myApp/META-INF. There are no additional config files for database or

Re: Tomcat's scalability

2006-06-19 Thread frankpeng
I think there is no Tomcat scalability issue. The issue is your application scalability. We have made an application which be able to install on multiple Tomcats. I think this is the scalability issue. See, if you visit http://breakevilaxis.org, then you visit http://www.ddint.org They are