RE: setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
Caldarale, Charles R wrote: > >> From: johnrock [mailto:johnpi...@yahoo.com] >> Subject: Re: setup default webapp in tomcat 6 and apache >> >> Assuming tomcat is running standalone on port 80, how do I >> set it up so that when I call >> http://localhost/index.jsp >> Tomcat defaults to serving

Re: How to turn off JNDI datasource connection pooling

2009-01-15 Thread Keith Thomas
Thanks Chuck. I've uploaded it again, this time as a text file. It seems ok this time. On Thu, Jan 15, 2009 at 7:02 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Keith Thomas [mailto:keith.tho...@gmail.com] > > Subject: How to turn off JNDI datasource connection pooling

RE: Linux Runtime Script

2009-01-15 Thread Caldarale, Charles R
> From: Rusty Wright [mailto:rusty.wri...@gmail.com] > Subject: Re: Linux Runtime Script > > I never did that. What scripts? Which is good, because it's totally irrelevant. Just more of Martin's ramblings. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MAT

RE: How to turn off JNDI datasource connection pooling

2009-01-15 Thread Caldarale, Charles R
> From: Keith Thomas [mailto:keith.tho...@gmail.com] > Subject: How to turn off JNDI datasource connection pooling > > I attach my server.xml file in case this helps. Your attachment failed to materialize. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERI

RE: setup default webapp in tomcat 6 and apache

2009-01-15 Thread Caldarale, Charles R
> From: johnrock [mailto:johnpi...@yahoo.com] > Subject: Re: setup default webapp in tomcat 6 and apache > > Assuming tomcat is running standalone on port 80, how do I > set it up so that when I call > http://localhost/index.jsp > Tomcat defaults to serving my custom app located at: > C:/myApp/web/

Re: PostgreSQL vs MySQL with Tomcat

2009-01-15 Thread Rusty Wright
I've found MySQL's error messages particularly worthless in some situations; I had a foreign constraint and it was giving me some generic error when I was violating that foreign constraint. Say MySQL around our DBA and steam starts coming out of his ears. The one warning I can think of with P

How to turn off JNDI datasource connection pooling

2009-01-15 Thread Keith Thomas
I have an application that runs against a legacy database. For reasons I won't go into here I need to turn off jndi datasource connection pooling. I have been unsuccessful finding documentation or mailing list entries on how to do this. I am running Tomcat 6.0.18 as a service on Win XP against a

Re: Linux Runtime Script

2009-01-15 Thread Rusty Wright
I never did that. What scripts? Mark Thomas wrote: -Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: 13 January 2009 14:18 To: Tomcat Users List Subject: RE: Linux Runtime Script Feris- remember to edit $CATALINA_HOME/conf/catalina.policy and specify at minim

Re: setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
Let me try to be more clear: Lets forget about Apache, that is not the issue: Assuming tomcat is running standalone on port 80, how do I set it up so that when I call http://localhost/index.jsp Tomcat defaults to serving my custom app located at: C:/myApp/web/index.jsp as opposed to what it is d

RE: setup default webapp in tomcat 6 and apache

2009-01-15 Thread Caldarale, Charles R
> From: johnrock [mailto:johnpi...@yahoo.com] > Subject: Re: setup default webapp in tomcat 6 and apache > > However, I fear that my confusion is even more basic - > as I have not set up tomcat before. The easiest thing you can do (assuming you're not trying to use PHP or somesuch) is use Tomcat

Re: setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
I appreciate your great advice, and I will look into that. However, I fear that my confusion is even more basic - as I have not set up tomcat before. How should I set up my webApp so that when I call http://localhost/index.jsp in my browser tomcat serves up the index.jsp from my webApp dir: C:/p

Re: JK connector fails with long URLs

2009-01-15 Thread André Warnier
br1 wrote: Rainer Jung-3 wrote: It looks like we only support URLs up to 2047 Bytes (+/- 1). Regards, Rainer Hey Rainer, Do you think this limit will be increased in the next versions? In theory, no limit is imposed by the protocol itself. I would tend to think JK should at least support

Re: PostgreSQL vs MySQL with Tomcat

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, Jonathan Mast wrote: > * Postgre has more features (sequences and triggers) but also an enormous > amount of complexity > * MySQL has much finer authorization control, but lacks some of the big-boy > features such as triggers > ** of course

Re: PostgreSQL vs MySQL with Tomcat

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ken, Ken Bowen wrote: > Unfortunately, MySQL isn't really that tunable. On the other hand, MySQL > requires very little in the way of tuning! This was my comment, and that's the gist I got from reading Zawodny's and Balling's "High Performance MySQL"

Re: Tomcat: client disconnects?

2009-01-15 Thread pichels
Hi Chris, I think if you suggest connection pooling - we ought to try it if it is possible. I sent your info to our developer to discuss further. Yes, I will definitely post back here. Thanks again for your great insight. Please bear with me as I go huddle with my crew and discuss the informati

Re: setup default webapp in tomcat 6 and apache

2009-01-15 Thread André Warnier
johnrock wrote: [.. plenty] Just one little trick, which you may have missed in the Apache/Tomcat docs : the JkMount/JkUnMount directives may sometimes be a bit clumsy to handle. You can replace them by something like this in Apache : (or ) SetHandler jakarta-servlet That does about the

Re: JK connector fails with long URLs

2009-01-15 Thread br1
Rainer Jung-3 wrote: > > It looks like we only support URLs up to 2047 Bytes (+/- 1). > > Regards, > > Rainer > Hey Rainer, Do you think this limit will be increased in the next versions? In theory, no limit is imposed by the protocol itself. I would tend to think JK should at least suppor

Re: PostgreSQL vs MySQL with Tomcat

2009-01-15 Thread Jonathan Mast
Our organization has products backed by both databases and we are almost entirely shielded from the database details in Tomcat. I don't really see how it should matter in terms of Tomcat (or any Web container). I'm thinking this is more a Java issue than a Tomcat issue. The main differences we'v

setup default webapp in tomcat 6 and apache

2009-01-15 Thread johnrock
I am setting up apache 2.2 and tomcat 6 on XP. I have apache handling all requests and forwarding JSPs to Tomcat like so: (From apache/conf/httpd.conf:) LoadModulejk_module "C:/Program Files/Apache Software Foundation/Apache2.2/modules/mod_jk.so" JkWorkersFile "C:/Program Files/Apa

PostgreSQL vs MySQL with Tomcat

2009-01-15 Thread Ken Bowen
Hi all (especially Chris -- very informative long post today on Tomcat/ MySQL): For a several reasons (including the apparent infinite default for connection timeout), I'm contemplating switching one or two projects from MySQL to PostgreSQL. I'd like to gather opinions on the tradeoffs, i

Re: configure tomcat with two conection SSL

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peibel, peibel wrote: > [Can Tomcat be set up to use two different types of SSL connections?] > > Depending on the page you requested enter with user certificate or not. So, you want to use client certificates for some pages, and no authentication

Re: Tomcat: client disconnects?

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SP, pichels wrote: > Christopher Schultz-2 wrote: >> Is this a browser error message, or something coming from the Tomcat side? > > Browser message - "Page cannot be displayed" - in Firefox or IE6/7 - even > using the IP address bypassing DNS of the

Re: Tomcat: client disconnects?

2009-01-15 Thread pichels
Hi Chris or ?, I appreciate the response - here goes with my answers and and more questions! Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > SP, > > pichels wrote: >> We are experiencing users having issues connecting to our RH server and >> getting disc

RE: How to have multiple loggers with shared code also using the logger?

2009-01-15 Thread Caldarale, Charles R
> From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com] > Subject: RE: How to have multiple loggers with shared code > also using the logger? > > How does one redploy a single application? Strange, I > could not find any information on this seemingly basic > task on google. Read the

Re: Tomcat 6.x security-constraint redirection problem... please help!

2009-01-15 Thread Gregor Schneider
Chris, On Thu, Jan 15, 2009 at 6:10 PM, Christopher Schultz wrote: > >> Tomcat returns the *first* file you requested inside the secured area >> after authentication is completed. So for some reason your browser is >> requesting a script or CSS file before the JSP page. > > For some reason, I th

RE: How to have multiple loggers with shared code also using the logger?

2009-01-15 Thread removeps-groups
Thanks, this makes sense. However, I'd like to find out what is being held onto by the log4j.jar. So I'd like to test it out. How does one redploy a single application? Strange, I could not find any information on this seemingly basic task on google. Thanks again. --- On Wed, 1/14/09, Cal

Re: JESESSIONID

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Hoare wrote: > Hi, was wondering if someone could clear this up for me. I probably can't clear it up, 'cause I have no experience with JBOSS (or even Tomcat) clusters, but I have a few thoughts... > We have mod_jk in apache loadbalancin

Re: Tomcat 6.x security-constraint redirection problem... please help!

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, Pid wrote: > There's a couple of things that may be confusing the config below, which > have some simple corrections. > > I usually place "login.jsp" and "error.jsp" in "WEB-INF/login/", where > they are protected from unwanted attention by defa

RE: Tomcat and coldfusion

2009-01-15 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Tomcat and coldfusion > > Er, that should be "kill -3". "kill -9" results in slight different > behavior ;) Sorry, got it backwards. The OP seems to have figured it out... - Chuck THIS COMMUNICATION MAY CONTAIN C

Re: Tomcat and coldfusion

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: >> From: Andrew Hole [mailto:andremailingl...@gmail.com] >> Subject: Re: Tomcat and coldfusion >> >> How can I take a thread dump? > > Tough to tell you since you left out basic information: > > 1) Tomcat version >

Re: FORM authentication behaves like BASIC authentication....

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, Javabeat wrote: > Hi, anyone come across the situation where a webapp is coded to use FORM > based authentication but behaves as if it was using BASIC authentication i.e > OS username/password dialog pops up instead of the redi

Re: Tomcat POST Section Execution Size limit

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 BT, B T wrote: > I have noticed that I am running into some type of limit with the > POST section upon execution. When the POST logic being > executed(includes SQL actions, CHOOSE logic, etc...) reaches a > certain size, I get the following error > "j

Re: tomcat 6 apache 2.2 jk connector: auto config?

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, johnrock wrote: > I am trying to figure out the best way to configure tomcat 6 to work under > apache2.2 running on XP. I have seen a way to 'auto configure' the jk > connector, and another way to manually configure it in the httpd.conf file.

Re: Permission problems for [Uploaded] files

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 MK, kohanm wrote: > The Java program save upload files on the Apache/htdocs directory. > To solve that I have to run following command for the htdocs directory. > chmod 755 the_name_document. > > After that the users can access their files. What pe

Re: Tomcat: client disconnects?

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SP, pichels wrote: > We are experiencing users having issues connecting to our RH server and > getting disconnected with errors in their browsers that state there is a DNS > error or page cannot be displayed. Is this a browser error message, or somet

Re: JK connector fails with long URLs

2009-01-15 Thread Rainer Jung
On 15.01.2009 14:53, br1 wrote: Additional info: - Machines are IIS 5 on Windows 2000 Server - Though the same happens on my XP laptop - The JK log shows this error message, with the line number varying between JK versions, here is the 1.2.27 one: [error] jk_isapi_plugin.c (1852): error while get

Re: Reusing form configured in form based authentication

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charl, Charl Gerber wrote: > I have an application using form based authentication. Is it possible > to use the same form as a "stand-alone" login screen? Tomcat does not allow this use case because it is not covered by the servlet specification. Acc

Re: Memory Leak(?) causing tomcat to store 57610801 tomcat objects in ONE request

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: > The last thing I can imagine is that the request somehow gets > redirected or forwarded infinitely during processing, but is not > leaving tomcat entirely and just reenters the processing, keeping the > outer request obje

Re: TC doco about overlapping Apache DocumentRoot with TC appBase?

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, da...@davidwbrown.name wrote: > Does the following example constitute overlapping directories > in terms of the TC doco? (see link above). > > DocumentRoot="/home/someuser/www" > > appBase="/home/someuser/www/web" Yes. Here is my configurat

Re: single instance of background job?

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rusty, Rusty Wright wrote: > In our setup we have multiple Tomcats behind a load balancer. I have a > background task that will run once a day, via Quartz. All Tomcats will > be using the same war so they will all run the job, but I need it so > onl

Re: to Set permission of apache_tomcat_6.0.16

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, parag737 wrote: > I really dont know anything about apache-tomcat-6.0.16 server > configuration.so i have issue like how to create virtual directory in > apache-tomcat-6.0.16 server or is there any default directory i want to

Re: Retrieve User Role

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ben, Ben Tomlinson wrote: > How do I retrieve information about the user that > is actually logged in? Mainly I want the user role or the user name > but I can't seem to get it from the session. As Alan points out, you can get the UserPrincipal (or

RE: Oracle database calling the web app?

2009-01-15 Thread Martin Gainty
Placing a request in a queue such as JMS is One way to accomplish the objective In the meanwhile take a look at the doc on how to setup an Oracle job at http://www.psoug.org/reference/dbms_job.html And Burlesons site has some information on how to create and call a job http://www.dba-oracle.com/t

Re: Oracle database calling the web app?

2009-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Davidson wrote: > Mark Thomas wrote: >>1. JMS? > > I thought Tomcat didn't support JMS. Am I wrong about this? Tomcat doesn't /provide/ JMS. You can add any JSM-compatible library to Tomcat (really, your own application) that you want.

RE: Tomcat and coldfusion

2009-01-15 Thread Caldarale, Charles R
> From: Andrew Hole [mailto:andremailingl...@gmail.com] > Subject: Re: Tomcat and coldfusion > > In cold fusion server log we can see that coldfusion stopped > without errors > "Information","main","01/15/09","11:31:54",,"ColdFusion stopped" So coldfusion is either a) lying, or b) broken. The thr

Re: Help: Connecting Tomcat to CA-IDMS using JDBC Type 4 Drivers (JNDI / IDMSDataSource)

2009-01-15 Thread jpmad4it
I have some more questions: For my datasource connection paramaters I have the IdmsDataSource class, and the IdmsConnectionPoolDataSource class. The IdmsDataSource class is used with an application server provided Java Naming and Directory Interface (JNDI) naming service to establish a connectio

Re: Address already in use: JVM_Bind /87.230.103.25:80

2009-01-15 Thread Markus Schönhaber
kareda: > I need to have Tomcat running on a win2003 server that also has IIS running. > IIS uses port 80. > I have changed the port in connector element in server.xml: > > connectionTimeout="2" >redirectPort="8493" > address="87.23

Re: JK connector fails with long URLs

2009-01-15 Thread br1
Additional info: - Machines are IIS 5 on Windows 2000 Server - Though the same happens on my XP laptop - The JK log shows this error message, with the line number varying between JK versions, here is the 1.2.27 one: [error] jk_isapi_plugin.c (1852): error while getting the url Is this a known bug

Re: Address already in use: JVM_Bind /87.230.103.25:80

2009-01-15 Thread kareda
I don't need this Tomcat instance to run as service, command line start will do. kareda wrote: > > > Hello, > > I need to have Tomcat running on a win2003 server that also has IIS > running. IIS uses port 80. > I have changed the port in connector element in server.xml: > >

Address already in use: JVM_Bind /87.230.103.25:80

2009-01-15 Thread kareda
Hello, I need to have Tomcat running on a win2003 server that also has IIS running. IIS uses port 80. I have changed the port in connector element in server.xml: But still when I run tomcat I get the error: Address already in use: JVM_Bind /87.230.103.25:80 How can I have tomcat not to b

Re: Make ETags take gzip compression into account

2009-01-15 Thread Oliver Schoett
Mark Thomas wrote: Please create a bugzilla entry to make sure we don't forget about this. Done: https://issues.apache.org/bugzilla/show_bug.cgi?id=46538 Unfortunately, I copy/pasted the description from the news posting and now have additional line breaks in the text. Regards, Oliver

RE: Make ETags take gzip compression into account

2009-01-15 Thread Mark Thomas
> -Original Message- > From: news [mailto:n...@ger.gmane.org] On Behalf Of Oliver Schoett > Sent: 15 January 2009 11:05 > To: users@tomcat.apache.org > Subject: Make ETags take gzip compression into account > > The Apache folks are about to fix the problem that ETags are the same > for com

RE: Tomcat running out of threads.

2009-01-15 Thread Hubert de Heer
Hello, We run a setup with 3 Apache servers with mod_jk (2.2.6 / 1.2.26) and 10 tomcat instances running on 5 servers (tomcat 5.5.26 / RHEL4). We used the combination of connectionTimeout & connection_pool_timeout, both set to 5min (connectionTimeout="30", connection_pool_timeout=300). But we

Re: Tomcat and coldfusion

2009-01-15 Thread Andrew Hole
In cold fusion server log we can see that coldfusion stopped without errors "Information","main","01/15/09","11:31:54",,"ColdFusion stopped" Do you have any idea? thanks On Wed, Jan 14, 2009 at 9:29 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Andrew Hole [mailto:andr

FORM authentication behaves like BASIC authentication....

2009-01-15 Thread Javabeat
Hi, anyone come across the situation where a webapp is coded to use FORM based authentication but behaves as if it was using BASIC authentication i.e OS username/password dialog pops up instead of the redirection to the login form. The web.xml is very basic so i'm almost thinking its something in

Make ETags take gzip compression into account

2009-01-15 Thread Oliver Schoett
The Apache folks are about to fix the problem that ETags are the same for compressed and uncompressed versions of a resource: https://issues.apache.org/bugzilla/show_bug.cgi?id=39727 Tomcat 6.0.18 suffers from the same problem. The effect is that if a caching proxy holds a gzipped version o

What is mod_security in tomcat

2009-01-15 Thread dilanalex
I have flash uploading form in my web application, and when a file(.pdf, .jpg, .png, .tiff, .doc) is uploaded it shows error message in 'flock', 'firefox', 'opera' browsers, but not in 'internet explorer'. Files can only be uploaded using 'IE'. In other browsers it shows message. The error messag

Re: Tomcat 6.x security-constraint redirection problem... please help!

2009-01-15 Thread Pid
samsina wrote: > See inline... > > > Pid-2 wrote: >> Martin Gainty wrote: >>> please display non-proprietary attributes of HTTPS (Port 8443 or 443) >>> Connector element values from %TOMCAT_HOME%/conf/server.xml >> OP: Don't attempt to decipher or respond to the above, it's a red >> herring. You