Re: Tomcat triggers ServletRequestListener twice per request...

2006-04-04 Thread Mark Thomas
N G wrote: > Hi, > > I have a regular HTML page and a ServletRequestListener. For some > reason Tomcat invokes requestInitialized and requestDestroyed twice > for every client request. > In other words: > requestInitialized > requestDestroyed > requestInitialized > requestDestroyed > > Could some

Re: jdk1.5, tomcat 5.5.9 and jsp compilation

2006-04-04 Thread mylene
It could be ant... (see the Ant manual at http://ant.apache.org/manual - core tasks - javac) Success, Mylène On 4/4/06, CUCKSON, Nick, GBM <[EMAIL PROTECTED]> wrote: > I've a problem compiling jsp's against jdk1.5. I've searched the archives, > google, tomcat docs etc but found no help on m

Re: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-04 Thread Markus Schönhaber
Remy Maucherat wrote: > We found a logical explanation for certain SSL request hang issues, > which look similar to these ones, and the problem should now be fixed. > The patch is here: > http://svn.apache.org/viewcvs?rev=391288&view=rev Ah, good to know. Regards mks --

Tomcat triggers ServletRequestListener twice per request...

2006-04-04 Thread N G
Hi, I have a regular HTML page and a ServletRequestListener. For some reason Tomcat invokes requestInitialized and requestDestroyed twice for every client request. In other words: requestInitialized requestDestroyed requestInitialized requestDestroyed Could someone explain to me why this is happe

Re: Apache/1.3.33 - mod_jk/1.2.15 - tomcat 5.0.28 loses connection?

2006-04-04 Thread Mladen Turk
Kurt Overberg wrote: [Tue Apr 04 18:23:35 2006] [info] ajp_process_callback::jk_ajp_common.c (1384): Connection aborted or network problems [Tue Apr 04 18:23:35 2006] [info] ajp_service::jk_ajp_common.c (1731): Receiving from tomcat failed, because of client error without recovery in send

Re: PostgreSQL access via JNDI

2006-04-04 Thread Amila Suriarachchi
On 4/5/06, Mark Slater <[EMAIL PROTECTED]> wrote: > > > > I've been trying to get PostgreSQL set up to be accessed through JNDI > > in Tomcat 5.5.x. I found the docs page describing it, "jndi- > > datasource-examples-howto.html", and followed the example there, but > > it still doesn't work. I'm tr

Moving from Tomcat 4.1 to Tomcat 5.5 - issues?

2006-04-04 Thread Richard Mixon
We are about to move an application from Tomcat 4.1 to Tomcat 5.5. We are already running Tomcat 4.1 under Sun java 1.5 on 32-bit Linux on dual Xeon processors with 4GB of memory. Can anyone else comment on what we should expect as far as changes in stability and performance? Also, I am wonderin

Re: PostgreSQL access via JNDI

2006-04-04 Thread Amila Suriarachchi
On 4/5/06, Mark Slater <[EMAIL PROTECTED]> wrote: > > I've been trying to get PostgreSQL set up to be accessed through JNDI > in Tomcat 5.5.x. I found the docs page describing it, "jndi- > datasource-examples-howto.html", and followed the example there, but > it still doesn't work. I'm trying to pr

Diagnosing DBCP JDBC connection leak using removeAbandoned parm

2006-04-04 Thread Richard Mixon
Bear with me, I'll try to make this short, but want to give enough info/background that it makes sense. Basically we are a bit confused by the output of the DBCP logAbandoned parameter. Any help is appreciated. Environment: We are using Tomcat 4.1.18 (for now), MySQL 4.0.18, Java 1.5.0_04-b05, all

Re: about maxProcessors attribute

2006-04-04 Thread Bill Barker
Since MaxClients is so big, I'm assuming that you have a pre-fork MPM Apache. In this case, you are strongly recommended to have maxProcessors >= MaxClients, since each client will have it's own connection to a processor. If you include something like connectionTimeout="6", then the Tomcat

Apache/1.3.33 - mod_jk/1.2.15 - tomcat 5.0.28 loses connection?

2006-04-04 Thread Kurt Overberg
Gang, I have a somewhat heavily loaded tomcat application that uses a fairly standard Apache 1.3.33 / mod_jk 1.2.15 / tomcat 5.0.28 set up. I am doing load balancing in the mod_jk, going to 2 RedHat 2.6.9 boxes that run the tomcats. The load is split evenly across the two tomcat boxes.

virtual hosts on tomcat 5.0.28

2006-04-04 Thread Jeanne Case
I have been trying to create a virtual host with tomcat 5.0.28 to no avail. I have read all the docs. read the Wiki. and still no joy. I must be missing something very fundamental and obvious to long time users of tomcat that is not obvious to me. I was hoping to leave up the manager and adm

RE: Redirecting Root Servlet

2006-04-04 Thread Richard Mundell
Delete 'index.jsp' and place an 'index.htm' file in the ROOT directory containing your redirect. If you look in web.xml (in the Tomcat conf directory) you'll be able to configure the order of 'welcome' pages that Tomcat will serve if the user browses to the root of your web server. Richard __

Redirecting Root Servlet

2006-04-04 Thread Khawaja Shams
Hello, I would like the default application path to send a redirect to our homepage (a site that is not running on tomcat). I tried editing index.jspinside the ROOT folder, but I found out that this particular page is precompiled at build time and will not get recompiled if any changes are made

Re: [REPOST] Tomcat 5.5.15 - HTTPS hanging and intermittent "Page Cannot be Displayed" problems

2006-04-04 Thread Remy Maucherat
On 4/3/06, Markus Schönhaber <[EMAIL PROTECTED]> wrote: > Richard Mundell wrote: > > In 5.5.15 we switched to using the (ever-so-well-documented) APR native > > library so I suspect it's the OpenSSL code in the APR library which is > > causing the problem. > > First thing I'd try is to update to to

Re: Filter Help!

2006-04-04 Thread Mark Thomas
Matthew J. Vincent wrote: > Hello everyone, > > If this is not the right place to post this could you please let me know > where. I have searched the forums and Google and cannot find an answer. Why not just set maxPostSize on the connector and let Tomcat do this for you? Mark ---

Re: Tomcat Clusters, private network for replication, and Oracle 8i JDBC driver

2006-04-04 Thread Darryl L. Miles
Just a thought, you are using IP addresses for replication. But hostname for Oracle, have you checked out local DNS issues with the jdbc:oracle:thin:@hostname.company.com:1521:dbname ? Check the IP address records are correctly setup, and everyone listed is connectable and working. Check

Re: tomcat one more then one CPU

2006-04-04 Thread David Rees
On 4/4/06, Walter Botman <[EMAIL PROTECTED]> wrote: > Can we configure tomcat in a way that it uses more then one CPU? > It seems to use only one CPU ? > > We are using the following: > - Sun Fire v240 (with 2 CPU's) > - Solaris 8 (including patches) > - tomcat 5.5.7 > - Java 1.5.0 There isn't any

Re: How can I limit the number of instance my servlet can server concurrently?

2006-04-04 Thread David Rees
On 4/3/06, Meryl Silverburgh <[EMAIL PROTECTED]> wrote: > Is it possible to limit Tomcat to just handle 10 concurrently request > to my servlet? > for all others (11 and onward), it will queue them up, and serve them > only when one of the currently-serving request is done? If you are only using o

Re: Tomcat Clusters, private network for replication, and Oracle 8i JDBC driver

2006-04-04 Thread Filip Hanik - Dev Lists
that sure does sound strange, you'd need a network sniffer to see what it tries to do maybe oracle technet will have more info. Filip Tim Lucia wrote: I did change the metric on Windows when I first discovered this. It made no difference. Why would I *need* to add static routes -- when my ma

Re: jdk1.5, tomcat 5.5.9 and jsp compilation

2006-04-04 Thread Leon Rosenberg
I can vague remember issues about tomcat 5.5.x which came out with the jdt from eclipse which had no support for 1.5. I maybe also be completely wrong here. Are you talking about precompiling jsps before deployment, or production-compile during runtime? Have you tried the 5.5.16? regards Leon On

If-Range bug in DefaultServlet?

2006-04-04 Thread Duncan McGregor
Hi I've been making If-Range requests to Tomcat (5.5.16) and it seems not to be sending back content when the request and current ETags don't match. RFC 2616 section 14.27 says If the entity tag given in the If-Range header matches the current entity tag for the entity, then the server S

Re: How can I limit the number of instance my servlet can server concurrently?

2006-04-04 Thread Leon Rosenberg
On 4/4/06, Rhino <[EMAIL PROTECTED]> wrote: > Just a guess but couldn't you accomplish this by setting up your servlet to > use a connection pool and then limiting the connection pool to 10 threads > maximum? I think that assuming a DB behind each and every webapp is kindof risky. Or what kind of

Re: How can I limit the number of instance my servlet can server concurrently?

2006-04-04 Thread Leon Rosenberg
I suppose yes, using the singlethreaded model and 10 servlet instances. Though, what is the purpose of this limitation, maybe there are better ways to solve it? regards Leon On 4/4/06, Meryl Silverburgh <[EMAIL PROTECTED]> wrote: > Is it possible to limit Tomcat to just handle 10 concurrently req

SV: Connecting Apache 2.2 and Tomcat 5.5.16

2006-04-04 Thread Erik Gulliksen \(maillist\)
Thanks! This sounds promising :D I guess I need to figure out what modules I need to load etc. It seems like my Apache installation don't have any mod_proxy_ajp.so (or what the name is). I think I'll need to fiddle with my server and see what else is running. For my contect I have a feeling I

Re: How to run a thread on app startup --- SOLVED

2006-04-04 Thread Bruce McGuire
Hello. My thanks to everyone for their assistance. The ServletContextListener works just fine to run my thread in the background when tomcat starts up and closes. Thanks very much. Bruce. - To unsubscribe, e-mail: [EMAIL PR

RE: Tomcat Clusters, private network for replication, and Oracle 8i JDBC driver

2006-04-04 Thread Tim Lucia
I did change the metric on Windows when I first discovered this. It made no difference. Why would I *need* to add static routes -- when my machine's primary IP is 172.25.x.y and the database server is likewise 172.25.x.z? I can't explain why *ONLY* the Oracle driver insists on trying the wrong p

Re: Tomcat Clusters, private network for replication, and Oracle 8i JDBC driver

2006-04-04 Thread Filip Hanik - Dev Lists
interesting, you might wanna play around with the route table and add some static routes for how you want your traffic to flow. Filip Tim Lucia wrote: I have a 3-node cluster, running on Linux. All 3 boxes are identical. Eth0 - A class B network address - The 'public' interface for web traff

Re: Servlet action is not available

2006-04-04 Thread Richard Schilling
Do you want to display the contents of the file jndi.properties? Why not just read the file contents using a File object and and output each line? Richard Schilling Cognition Group, Inc Seattle, WA Martin Gainty wrote: Red-- I am re-posting the question to tomcat-users with request to displ

Filter Help!

2006-04-04 Thread Matthew J. Vincent
Hello everyone, If this is not the right place to post this could you please let me know where. I have searched the forums and Google and cannot find an answer. I have a Servlet filter that checks to see the content length of the request. long contentLength = request.getContentLength(); I

Re: Connecting Apache 2.2 and Tomcat 5.5.16

2006-04-04 Thread Bernie Durfee
mod_jk, mod_jk2 (same as jk2?), mod_proxy, mod_proxy_balancer, mod_proxy_ajp APR, AJP etc. and my head starts spinning.. :o\ From what I understand, as of Apache 2.2, the mod_jk project no longer applies. Instead, the mod_proxy module is a generic way to proxy from Apache HTTPD to other servers

PostgreSQL access via JNDI

2006-04-04 Thread Mark Slater
I've been trying to get PostgreSQL set up to be accessed through JNDI in Tomcat 5.5.x. I found the docs page describing it, "jndi- datasource-examples-howto.html", and followed the example there, but it still doesn't work. I'm trying to provide access to PostgreSQL for use by both JDO and JC

Connecting Apache 2.2 and Tomcat 5.5.16

2006-04-04 Thread Erik Gulliksen \(maillist\)
Hi there =) I've been trying to figure out how to get my Tomcat 5.5.16 to play with an Apache 2.2. (and Linux) I'm new to configuring these applications and seem to get lost in the documentation. mod_jk, mod_jk2 (same as jk2?), mod_proxy, mod_proxy_balancer, mod_proxy_ajp APR, AJP etc. and my hea

Tomcat Clusters, private network for replication, and Oracle 8i JDBC driver

2006-04-04 Thread Tim Lucia
I have a 3-node cluster, running on Linux. All 3 boxes are identical. Eth0 - A class B network address - The 'public' interface for web traffic (public in that it goes back out through httpd to the internet) Eth1 - A class C network address - The 'private' interface for replication. I.e.

RE: [OT] AIX filtering Explorer?

2006-04-04 Thread Sheets, Jerald
Do you have a web proxy in your environment? That would be transparent, or hand-configured. Jerald Sheets Systems Administrator The Weather Channel Interactive -Original Message- From: Tremal Naik [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 04, 2006 12:40 PM To: Tomcat Users Lis

Re: Request Entity Too Large with mod_jk and SSL Client Certs

2006-04-04 Thread Seth Milder
Bill Barker wrote: "Seth Milder" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi list, I am seeing this in the logs when posting to a particular URL: [Mon Apr 03 14:52:06 2006] [13089:15648] [debug] ajp_get_endpoint::jk_ajp_common.c (2131): acquired connection cache slot=0 [Mo

[OT] AIX filtering Explorer?

2006-04-04 Thread Tremal Naik
Hi everybody, I marked this message as OT because it may not pertain to Tomcat, even if I presume so. I have a problem with a Jboss/Tomcat 5.5 installed on an IBM AIX machine. The application redirects user requests to an encrypted channel at login: 1) The browser sends an unsecure request. 2) th

RE: How to setup Tomcat as a service on W2K3 with special arguments

2006-04-04 Thread Stuart, Steven G (SStuart) [Contractor]
HI all, sorry the copy paste, put both lines in one. I will try that again.I did try putting it into the Java Options section, however it is not a Java Option.Here are the 2 lines again. Set JAVA_OPTS=-Xms384m -Xmx768m -Djava.awt.headless=true "E:\Apache\Tomcat 5.0\bin\catalina.bat

RE: Tomcat tag question

2006-04-04 Thread John Powers
Here is a quick smattering to do what you want; this is the dofilter for the cclass you'll write that extends filter. You'll want to append stuff at the end... play with it a little and you'll get the idea pretty quick.You can alter anything in the body.. but for your case, just add your meta

RE: Datasource configuration for Oracle 9i in Tomcat 5.5

2006-04-04 Thread Farrow, Marc
You have the datasource defined globally. You will need to add a resource link to your context that you wish to use it. The contexts cannot see it by default. Example: -Original Message- From: Thanigaivel_Murugan [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 04, 2006 4:07 A

Re: cluster prblem

2006-04-04 Thread Filip Hanik - Dev Lists
that is a feature that is not implemented, as the session gets replicated in delta's (only known changes) the activation/passivation listeners are not invoked. Filip Amila Suriarachchi wrote: ok thankx for reply, What a about not calling methods of HttpSessionActivationListener listner. I se

Re: cluster prblem

2006-04-04 Thread Amila Suriarachchi
ok thankx for reply, What a about not calling methods of HttpSessionActivationListener listner. I set an object (of which class implements the HttpSessionActivationListener) as an attribute of the session. i think when this session being migrated conatiner should call these methods amila.

RE: cluster prblem

2006-04-04 Thread Tim Lucia
I have seen the same behavior, but only under considerable load. Changing the replication strategy to makes it go away. I can confirm that application does not seem to suffer from the 'exception' below, although it is disconcerting to some management-types to see these exceptions in

Re: how to control lifetime of JSessionID cookie in Tomcat 5.5

2006-04-04 Thread Filip Hanik - Dev Lists
that is correct, yahoo for example will not store anything on the server, they just store a cookie on the client. Filip Leon Rosenberg wrote: I think you mixing things up. The http session isn't designed to run forever. The session ends as soon as the user closes his browser. If you want to h

Re: cluster prblem

2006-04-04 Thread Filip Hanik - Dev Lists
Hi Amila, what you see below is not an actual error, although it seems to be. What happens is that you have keepalive set to the default value, so the sending node will close it socket, and the receiving node will get an error like this. In future versions this has been reduced to info or warnin

RE: Tomcat tag question

2006-04-04 Thread MW Mike Weiner \(5028\)
Well that was my thought as well, just wasn't sure how to go about that. Any hints? Thanks Michael Weiner This e-mail and any attachments may contain confidential information that is legally privileged. The information is solely for the use of the intended recipient(s); any disclosure, copying,

RE: GET FORM Encoding Test JSP

2006-04-04 Thread Allistair Crossley
Beg your pardon, it was in the FAQ and BZ. Connector elements have an attribute available URIEncoding="UTF-8" AC. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 13:20 To: tomcat-user@jakarta.apache.org Subject: GET FORM Encoding Test JSP Hi,

Error Message when classes are put in shared-Folder

2006-04-04 Thread starki78
Hello! I've classes within a web-application on tomcat-5 and everything works fine. Then I put these classes to the shared folder, I get this error: java.lang.NullPointerException org.apache.struts.taglib.TagUtils.retrieveMessageResources(TagUtils.java:1161) org.apache.struts.

GET FORM Encoding Test JSP

2006-04-04 Thread Allistair Crossley
Hi, The following JSP presents a well-known problem found all over the web regarding GET form submissions not encoding form parameters properly. The issue does not exist with POST. I have read just about every article on the web about this issue, and the below JSP incorporates all of the solu

Re: How can I limit the number of instance my servlet can server concurrently?

2006-04-04 Thread Rhino
Just a guess but couldn't you accomplish this by setting up your servlet to use a connection pool and then limiting the connection pool to 10 threads maximum? -- Rhino - Original Message - From: "Meryl Silverburgh" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 04, 2006 2:42 AM Subjec

Re: [OT] Better JSP Performance with Opteron

2006-04-04 Thread Nikola Milutinovic
--- Leon Rosenberg <[EMAIL PROTECTED]> wrote: > Ok, my fault, > read "page" and "java" in one sentence -> map to Java Page -> Java > Server Page. Must be a circuit error in the brain. > Anyway, does it mean, that a proper configured JVM on an opteron > processor, will be significantly faster? Coul

jdk1.5, tomcat 5.5.9 and jsp compilation

2006-04-04 Thread CUCKSON, Nick, GBM
I've a problem compiling jsp's against jdk1.5. I've searched the archives, google, tomcat docs etc but found no help on my specific issue although I can see anumber of people have had problems with generics support. I've changed to the Ant compiler and copied the ant.jar to common/lib, added the c

Re: PHP Servlet Fails in Tomcat 5.5.15-SOLVED

2006-04-04 Thread Nikola Milutinovic
Hi all. Just one opinion, if it hasn't been said before. Do not mix Java and PHP. PHP is inherently thread un-safe. Basically the PHP code itself is, AFAIK, OK (thread safe), but all those myriads of 3rd-party libraries providing needed functionality to the myriads of PHP extensions can, and some

cluster prblem

2006-04-04 Thread Amila Suriarachchi
hi, I created a tomcat cluster (using tomcat 5.5.15 and jdk 1.5.0_06 in linux) with two nodes, by uncommenting the existing cluster element in server.xml and changing the tcplisten ports. And I created a web application to test the cluster (put and entry in web.xml). Then I deployed the applicati

Re: Servlet action is not available

2006-04-04 Thread Martin Gainty
Red-- I am re-posting the question to tomcat-users with request to display contents of jndi.properties.. Thanks, Martin-- - Original Message - From: "Craig McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, April 03, 2006 9:40 PM Subject: Re: Servlet action is

about maxProcessors attribute

2006-04-04 Thread Iratxe Etxeberria Sainz-Ezquerra
Hi! I am reviewing my apache-tomcat configuraction, trying to tunning the performance. I use AJP/1.3 connector between apache and tomcat 5.0.28. I have the default value for maxProcessors attibute (20). In apache I have maxclients to 150 value. Does someone know how works it exactly? One pr

Re: how to control lifetime of JSessionID cookie in Tomcat 5.5

2006-04-04 Thread Leon Rosenberg
I think you mixing things up. The http session isn't designed to run forever. The session ends as soon as the user closes his browser. If you want to have some kind of direct login, you should just set your own cookie, evaluate this cookie in your first servlet/jsp/action or filter and login the us

Re: Rephrased: Maximum number of simultaneous HTTP connections

2006-04-04 Thread Tomas Klockar
It is always possible to build an applet. It should be able to do the networking the right way, and I just tested a small program that just forks n threads in java. the thread sleeps for 10s then print something. 3000 of these threads took 655 MB on freeBSD box, and only little cpu. regards,

tomcat one more then one CPU

2006-04-04 Thread Walter Botman
Hello, Can we configure tomcat in a way that it uses more then one CPU? It seems to use only one CPU ? We are using the following: - Sun Fire v240 (with 2 CPU's) - Solaris 8 (including patches) - tomcat 5.5.7 - Java 1.5.0 Thanks Walter

Datasource configuration for Oracle 9i in Tomcat 5.5

2006-04-04 Thread Thanigaivel_Murugan
Hi, I do not know how to configure datasource in Tomcat 5.5 for Oracle 9i. I tried like this... 1. Server.xml configuration: 2. Test.jsp Context initContext = new InitialContext(); Context envContext = (Contex