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

2006-06-22 Thread Jeff Chuang
To make port 80 use APR and port 443 NOT use APR, I have tried it several times, without any luck. After tomcat starts, port 80 is fine, but connections to port 443 are always timeout. It looks from the log the Http11BaseProtocol was not used on port 443. The log looks like:

RE: Using Datasource for cloudscape

2006-06-22 Thread Jitendra Kharche
Hi Dilan, Have you got all the details about my problem. Regards, Jitendra Kharche -Original Message- From: Jitendra Kharche [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 4:09 PM To: Tomcat Users List Subject: RE: Using Datasource for cloudscape Hi Dilan, Thanks for

Re: file upload speed.

2006-06-22 Thread CMSuser
Leon Rosenberg-3 wrote: So you effectively measure the ability of tomcat to throw away your bytes and send you an error page. That doesn't make really sense, does it? Leon Of course not. The uploaded file is visible on the webpage in the new directory where it's supposed to be. --

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

2006-06-22 Thread Markus Schönhaber
Jeff Chuang wrote: To make port 80 use APR and port 443 NOT use APR, I have tried it several times, without any luck. After tomcat starts, port 80 is fine, but connections to port 443 are always timeout. It looks from the log the Http11BaseProtocol was not used on port 443. The log looks

Re: file upload speed.

2006-06-22 Thread Leon Rosenberg
oh... then its magic... ok i've tried it: [EMAIL PROTECTED]:~$ curl -T xxx.txt http://localhost:8000/xxx/ htmlheadtitleApache Tomcat/5.5.16 - Error report/titlestyle!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2

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

2006-06-22 Thread Remy Maucherat
On 6/22/06, Markus Schönhaber [EMAIL PROTECTED] wrote: Jeff Chuang wrote: To make port 80 use APR and port 443 NOT use APR, I have tried it several times, without any luck. After tomcat starts, port 80 is fine, but connections to port 443 are always timeout. It looks from the log the

Re: Tomcat session replication/cluster

2006-06-22 Thread Pid
Filip Hanik - Dev Lists wrote: if the cluster is put in the engine element, the context names are prefixed with the engine name, since you can have multiple contexts with the same name in different host when reloading a context, you'll get these errors cause the context is not available

RE: Using Datasource for cloudscape

2006-06-22 Thread Dilan Kelanibandara
Hi Jithendra It seems you have missed the type attribute in resource configuration in server.xml. I have pasted how that part would looks like. (type=javax.sql.DataSource this is missing) = Resource name=jdbc/MyDB type=javax.sql.DataSource

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

2006-06-22 Thread Markus Schönhaber
Remy Maucherat wrote: On 6/22/06, Markus Schönhaber [EMAIL PROTECTED] wrote: I've just tried to configure a Connector which uses the Http11BaseProtocol by setting the attribute class=org.apache.coyote.http11.Http11BaseProtocol on It should actually be:

RE: mod_jk failover and preferring localhost

2006-06-22 Thread Per Johnsson
Hi! Is 1.2.16 avaiable for download somewhere? Found this: http://tomcat.apache.org/connectors-doc/news/20060505.html Regards Per -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: den 21 juni 2006 21:14 To: Tomcat Users List Subject: Re: mod_jk failover and

Load balance problem

2006-06-22 Thread dantam sreedhar
Hi, We have one apache and two tomcats running on separate machines in production. There is a firewall between apache and tomcat servers. Sticky session is enabled for load balancing. Load balancing between these tomcat is happening properly, however fail-over has problem. When we

Re: file upload speed.

2006-06-22 Thread CMSuser
Leon Rosenberg-3 wrote: oh... then its magic... ok i've tried it: [EMAIL PROTECTED]:~$ curl -T xxx.txt http://localhost:8000/xxx/ htmlheadtitleApache Tomcat/5.5.16 - Error report/titlestyle!--H1

Is it possible to set a timeout for an already open connection?

2006-06-22 Thread Rodrigo Ruiz
Hi all, Is there any way to set a timeout for a request that has been already stablished? Currently, I can perform a DoS attack to my tomcat server just by starting enough requests, sending a few bytes in each one, and letting the connections open during a large time. I was wondering if

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

2006-06-22 Thread Jeff Chuang
Thanks Rémy,it works. And thanks Markus, you help me go through all the discussion and make it work. :) Regards, Jeff Markus Schönhaber wrote: Remy Maucherat wrote: On 6/22/06, Markus Schönhaber [EMAIL PROTECTED] wrote: I've just tried to configure a Connector which uses the

RE: Using Datasource for cloudscape

2006-06-22 Thread Dilan Kelanibandara
Hi Jithendra, Try with this. Some misconfiguration it seems with your resource definition. I added auth=Container attribute to resource jdbc/MyDB Follow tomcat globle data source configuration for more details. Regards, Dilan GlobalNamingResources Environment name=simpleValue

Own Connector for Tomcat

2006-06-22 Thread Daniela Piacenti
Hello everybody, I read a lot about the coyote connector and that it is possible to write own connectors for Tomcat. But I did not find anything in the whole web, how to do this. Now I am reading the source code of the coyote connector and have some questions about it. My problem is: I am

jk connector stripping Content-Type?

2006-06-22 Thread myrealbruno
Hello, I am using the JK connector version 1.2.15 with IIS 5. When trying to load through IIS a powerpoint ppt file served by Tomcat I get only garbage (it might be the binary displayed in the browser). I can see getting the HEAD through IIS that the Content-Type is not there, while opening the

Re: query

2006-06-22 Thread Sameer Acharya
What are the error messages you are seeing during tomcat startup ? Or try giving the log. -Sameer veena v [EMAIL PROTECTED] wrote: I have windows xp installed on my system. I installed tomcat 4.1 and it was working properly. But after installing oracle 9i tomcat is not working though i have

how to change session time out one of the web app in tomcat

2006-06-22 Thread bhavik shah
HI I want to modify the time out of web app in tomcat where should i change that? what is the default value of time out? thanks bhavik

Is there any proxy server(SSL capable) written in Java?

2006-06-22 Thread frankpeng
I was thought Tomcat can be set up as a proxy server like Apache. But actually not. Right? I have Tomcat installed. How nice to have another instance running as a proxy server? If I cannot do this, I would rather find a nother proxy server instead of Apache because I like everything in JAVA.

Re: Tomcat session replication/cluster

2006-06-22 Thread Pid
OK, I'm probably being dense here. (There's only 1 context in each host, the ROOT context) If I take the Host/Context offline in one node and restart it, the logs on that node start showing the following: SEVERE: Context manager doesn't exist:host1 As the Context doesn't exist, which is the

RE: pdf documents

2006-06-22 Thread Bob Wyatt
Pid, Your question sent me hunting, and we were specifying no path at all, so it was a relative reference. I have changed it to an absolute reference, and it is now working. Can I have multiple docBase assignments in the pdf.xml file for multiple pdf file sources (assuming I use different paths

Tomcat 5.5 and DataSource

2006-06-22 Thread Jitendra Kharche
Hi, Can anybody help me to get a working copy of a simple database application (using DataSource) in Tomcat 5.5? Desperately looking for your help. Regards, Jitendra Kharche - To start a new topic, e-mail:

SEVERE: Context [/myApp] startup failed due to previous errors

2006-06-22 Thread Deepak Gupta
I'm using Tomcat 5.5.17. I've trawled the web for this error, but haven't found a solution so far. I believe my server.xml which defines the context is valid XML. Context path=/wibadmin docBase=C:/p4/psg/wib_dev/customer/build/wib_kit/server/build/customer/admin reloadable=true

Re: pdf documents

2006-06-22 Thread Pid
Bob Wyatt wrote: Pid, Your question sent me hunting, and we were specifying no path at all, so it was a relative reference. I have changed it to an absolute reference, and it is now working. Great. Can I have multiple docBase assignments in the pdf.xml file for multiple pdf file sources

Re: Tomcat session replication/cluster

2006-06-22 Thread Filip Hanik - Dev Lists
Makes sense, can we please ask you to open up a bug for us, http://issues.apache.org/bugzilla/ thanks Filip Pid wrote: OK, I'm probably being dense here. (There's only 1 context in each host, the ROOT context) If I take the Host/Context offline in one node and restart it, the logs on that

RE: how to change session time out one of the web app in tomcat

2006-06-22 Thread Serlet Jean-Claude
Hello By default it's 30 minutes You change it in the web-inf/webxml by setting the tag session-config session-timeout3/session-timeout /session-config after the mapping oy your sevlets Jean-Claude -Message d'origine- De : bhavik shah [mailto:[EMAIL PROTECTED] Envoyé : jeudi

RE: Tomcat 5.5 and DataSource

2006-06-22 Thread John Langan
Why don't you try this tutorial, which does what you want. http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0509cline/i ndex.html John Langan -Original Message- From: Jitendra Kharche [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 10:26 AM To: Tomcat Users

Re: Tomcat can't start

2006-06-22 Thread Markus Schönhaber
Y.W.Yang wrote: Tomcat works well on my pc since the first configuration. But recently, I can't start Tomcat through Elipse, the ports required by tomcat are used by other processes, or tomcat are started in other processes. Even http://localhost:8080 doesn't work! I checked the port, no

Apache Tomcat and Mod-jk

2006-06-22 Thread andreamodesto . rossi01
I've 3 front-end apache with a java webapp over a Oracle DB.There're 2 Server application with 4 Tomcat5(2 Tomcat for machine).For example: Tomcat1-prode ---TAP1 //*tap is the name of the machine Tomcat1-stage ---TAP1 Tomcat2-prode ---TAP2 Tomcat2-stage ---TAP2 Tomcat work only for the

mod_jk on IBM Aix

2006-06-22 Thread Mirou, Antoine
Hi, On http://tomcat.apache.org/connectors-doc/howto/apache.html I read that mod_jk is developed and tested on Aix (and other platforms), but I can't find any special instruction to compile it on that platform. Did someone succeed in building it on Aix ? Could you please give me some advices

Re: How does Tomcat detect whether a browser accepts cookies

2006-06-22 Thread Pid
You could use the session id location as an indicator, assuming there's a session already. if (hreq.isRequestedSessionIdFromCookie()) { // we're good, do whatever } else { // no cookies, begone! } if your initial point of contact does a single instant redirect to the

Apache Tomcat Slowdown

2006-06-22 Thread Troy Davidson
We have Apache load balancing five instances of Tomcat. The cluster will run fine and have no problems. The mod_jk Status page is fast and responsive. But, after running for a few hours, things slow down. The Status page no longer responds. The cluster doesn't respond. Has anyone seen

Re: mod_jk failover and preferring localhost

2006-06-22 Thread David Rees
On 6/22/06, Per Johnsson [EMAIL PROTECTED] wrote: Is 1.2.16 avaiable for download somewhere? Not that I know of, you have to grab the source from SVN. Found this: http://tomcat.apache.org/connectors-doc/news/20060505.html I wonder how that got there! -Dave

Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
I am trying to use a datasource to access an Oracle database (Tomcat 5.5.9 and Oracle 9i). I have configured a datasource in the context.xml as follows: ?xml version=1.0 encoding=UTF-8? Context reloadable=true Resource name=jdbc/reportdb type=javax.sql.DataSource

Retrieving ListMyType from a request/session attribute

2006-06-22 Thread David Wall
Is there a correct way to retrieve a typed List from a request/session attribute? The attribute is returned as an Object, but using a cast like: ListMyType var = (ListMyType)request.getAttribute(name); results in a warning: Type safety: The cast from Object to ListMyType is actually checking

Re: Retrieving ListMyType from a request/session attribute

2006-06-22 Thread Leon Rosenberg
On 6/22/06, David Wall [EMAIL PROTECTED] wrote: Is there a correct way to retrieve a typed List from a request/session attribute? The attribute is returned as an Object, but using a cast like: ListMyType var = (ListMyType)request.getAttribute(name); results in a warning: Type safety: The

Re: looking for memory profiler or dump analyzer for production use

2006-06-22 Thread charly
That means .. even when I start the monitoring component later it will not work beyond the first hour after starting the jvm? Karl-Heinz - Original Message - From: Andrew Miehs [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, June 22, 2006 1:46 AM

RE: Retrieving ListMyType from a request/session attribute

2006-06-22 Thread Martin Gainty
David-- Personally...I would use reflection... try { ListMyType var = Class.forName(request.getAttribute(name));// get class definitions o = var.newInstance(); //Instantiate a new class using the class(and consequent definitions).. } catch(Exception excp) { System.out.println(Didnt like the

Re: Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
I figured it out. I had followed Tomcat documentation while doing this. The Oracle example in the documentation mentioned url as jdbc:oracle:thin:[EMAIL PROTECTED]:1521:mysid Following that I specified my url as jdbc:oracle:thin:[EMAIL PROTECTED]:1521:rep while actually it should be

Re: Problem configuring JNDI DataSource for Oracle

2006-06-22 Thread Ashvini K Saxena
Nope, with that it only gives a proper error message, Invalid connection string format, a valid format is: host:port:sid On Fri, 23 Jun 2006 00:48:54 +0530, Ashvini K Saxena [EMAIL PROTECTED] said: I figured it out. I had followed Tomcat documentation while doing this. The Oracle example in

JPDA not shuting down

2006-06-22 Thread Lou Caudell
Can anyone offer any insight as to why JPDA would not shutdown after a debugging session with Netbeans. I am using sys-internals process explorer to watch the processes, and the JPDA process is still running even after the tomcat debugging session has been shutdown. XP sp2... NB 5.0 bundled

ajp13 not working with xml

2006-06-22 Thread user51564
Apache is not sending the ajp13 port 8009 to tomcat only with xml everything else works fine; here is my conf: LocationMatch /*.jsp JkUriSet worker ajp13:localhost:8009 /LocationMatch LocationMatch /*.jspx JkUriSet worker ajp13:localhost:8009 /LocationMatch LocationMatch /*.xhtml JkUriSet