RE: Installing Tomcat the Brute Force Way?

2011-03-22 Thread ken dias
thanks for replying. i have installed tomcat 6.0.32 yet again and now lo and behold i get the icon at bottom right. localhost:8080 works ok. local host gives me error msg. i have windows xp please help. thanks > Date: Sat, 19 Mar 2011 19:57:56 + > From: p...@pidster.com > To: users@tomcat.

Re: reverse proxy and tomcat

2011-03-22 Thread Igor Cicimov
Interesting I had no idea you can mix mod_proxy and mod_jk, thought you should use the one or the other. What I do I have workers.properties file in the Apache conf directory with load-balancer worker that takes care of the load balancing ans sticky sessions. On Wed, Mar 23, 2011 at 8:54 AM, János

Re: Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Konstantin Kolinko
2011/3/23 Mark Thomas : > On 22/03/2011 21:09, Billy Bacon wrote: >> 2nd: >> So I then tried using an absolute path for the docBase in the Context. > > Yes it will need to be absolute. Relative docBases are resolved relative > to the Host's appBase. > >> > > Getting closer. A docBase needs to spec

Re: Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Mark Thomas
On 22/03/2011 21:53, Billy Bacon wrote: > Awesome Mark, that worked perfectly! > > I'd like to actually run the app out of the war file without exploding it and > I was able to accomplish this by setting unpackWARs="false" in the > server.xml. It shouldn't be doing that if the WAR is outside t

reverse proxy and tomcat

2011-03-22 Thread János Löbb
Hi, I have two machines bml0065.yalepath.org and bml0066.yalepath.org. Both have OSX 10.6.6, apache 2.2.17 and mod_jk 1.2.31 installed. Tomcat is 7.0.10 on both. Apache was compiled on both machines with proxy, proxy-balancer, proxy-http and proxy-ajp enabled. The bml0065 machine is config

Re: Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Billy Bacon
Awesome Mark, that worked perfectly! I'd like to actually run the app out of the war file without exploding it and I was able to accomplish this by setting unpackWARs="false" in the server.xml. I know this isn't 'preferred' but how would I go about 'hot-patching' let's say a JSP for the webapp

Re: Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Mark Thomas
On 22/03/2011 21:09, Billy Bacon wrote: > 2nd: > So I then tried using an absolute path for the docBase in the Context. Yes it will need to be absolute. Relative docBases are resolved relative to the Host's appBase. > Getting closer. A docBase needs to specify the WAR or directory so you'll nee

Re: Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Billy Bacon
Thanks so much for the reply Mark. I did the following and I'm still getting issues. Note I tried 2 things: 1st: - created $CATALINA_HOME/wars and placed the onlinecourses.war file in there - cleaned out all old files from $CATALINA_HOME/work/... $CATALINA_HOME/webapps - removed onlinecourses.war

Re: [OT] Response Swapping

2011-03-22 Thread SQ
>Yep that is it. You are using the old BIO AJP connector based on the >classes you are loading. Hmm. Not what I was expecting. It might be >worth taking a look at this bug: >https://issues.apache.org/bugzilla/show_bug.cgi?id=50189 >The problem is that we need a test case to investigate this but t

RE: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Robinson, Eric
> Eric Robinson > > #!/bin/bash > > # > > # httpdStartup script for the Apache HTTP Server > > # > > # chkconfig: - 85 15 > > # description: Apache is a World Wide Web server. It is > used to serve > > \ > > # HTML files and CGI. > > # processname: httpd > > # config: /etc/h

Re: Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Mark Thomas
On 22/03/2011 20:14, Billy Bacon wrote: > Does anyone know what I'm doing wrong? Move the WAR file *outside* of the host's appBase (i.e. not in the webapps directory) and specify the docBase in your context.xml files. Mark - To

Tomcat 6 Context not created, deployment fails

2011-03-22 Thread Billy Bacon
Tomcat 6.0.26 Java 1.6 OS: Mac OS X and Linux Goal: I would like a webapp (onlinecourses.war) to be deployed with multiple contexts of: /onlinecourses/insight /onlinecourses/centering /onlinecourses/xxx etc. Right now I'm just trying to get 1 of these contexts working. I've read this page sev

Re: [OT] Response Swapping

2011-03-22 Thread Mark Thomas
On 22/03/2011 16:54, SQ wrote: > > I too didn't realize there was a difference in connectors. Thanks for the > clarification. > > Here is the startup info on the connector: > > [Loaded org.apache.catalina.connector.Response from > file:/usr/local/apache-tomcat-5.5.30/server > /lib/catalina.jar]

Re: How to detect down of tomcat.

2011-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hide, On 3/19/2011 10:38 PM, Hide wrote: > How to detect down of tomcat. Note that the responses you've been getting are only testing for the Tomcat process still running in some way. There are probably a lot of scenarios where you consider Tomcat "d

Re: [OT] Response Swapping

2011-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 SQ, On 3/22/2011 12:54 PM, SQ wrote: > I too didn't realize there was a difference in connectors. Thanks for the > clarification. > > Here is the startup info on the connector: Yeah, that's not what Mark is looking for. When you first start up Tomc

RE: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Robinson, Eric
-- Eric Robinson > #!/bin/bash > # > # httpdStartup script for the Apache HTTP Server > # > # chkconfig: - 85 15 > # description: Apache is a World Wide Web server. It is used > to serve \ > # HTML files and CGI. > # processname: httpd > # config: /etc/httpd/conf/httpd.conf

RE: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Jason Pyeron
> -Original Message- > From: Robinson, Eric [mailto:eric.robin...@psmnv.com] > Sent: Tuesday, March 22, 2011 13:30 > To: Tomcat Users List > Subject: RE: tomcat6 still deleting XML files from > Catalina/localhost when the system is booted > > > > -- > > > On 22/03/2011 17:04, Robinson,

RE: Pros and Cons of JK Connector vs. ARR

2011-03-22 Thread Nick Williams
Thanks for the info, André! I will be certain to check to make sure ARR covers all of our needs. We don't use domain user IDs, but that makes me suspicious that there could be other things ARR doesn't forward that we DO rely on. Of course, if anyone has any other empirical or anecdotal information

RE: Global Default Error Page

2011-03-22 Thread Caldarale, Charles R
> From: shmol...@gmail.com [mailto:shmol...@gmail.com] On Behalf Of Jonathan > Rosenberg > Subject: Re: Global Default Error Page > I configured this error page in conf/web.xml. Seemed like this made > the most sense. Not sure about that. Whatever you put in conf/web.xml applies to *all* weba

RE: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Robinson, Eric
> -- > > On 22/03/2011 17:04, Robinson, Eric wrote: > > >> >debug="1" reloadable="false"> > > > > > > > So are nfs mounts being used? If so, my guess is that the > mount isn't > > available when Tomcat starts which triggers the undeploy. > > > > Mark > > > > That certainly se

RE: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Nick Williams
Yes, for sure, to deleting the .XML file. I'm reasonably confident autoDeploy="false" doesn't affect undeploys. Even if it does, autoDeploy="false" only matters when the server is already running. It does NOT matter when the server is started (i.e., even with autoDeploy="false", a WAR file would ge

RE: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Nick Williams
That would also explain why it's only happening on some of the servers, but not all. The NFS mount becomes available part-way through all of the Tomcats being started. So the ones that had started already trigger an undeploy, but the ones that had not started yet have the mount available and do net

RE: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Robinson, Eric
> On 22/03/2011 17:04, Robinson, Eric wrote: > > > debug="1" reloadable="false"> > > > > So are nfs mounts being used? If so, my guess is that the > mount isn't available when Tomcat starts which triggers the undeploy. > > Mark > That certainly seems to make sense. Would

Re: tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Mark Thomas
On 22/03/2011 17:04, Robinson, Eric wrote: > debug="1" reloadable="false"> > So are nfs mounts being used? If so, my guess is that the mount isn't available when Tomcat starts which triggers the undeploy. Mark -

Re: unable to share folder using a symlink

2011-03-22 Thread André Warnier
Caldarale, Charles R wrote: From: James Godrej [mailto:jamesgod...@yahoo.in] Subject: unable to share folder using a symlink the Apache vhost definition is Wrong mailing list; this one's for Tomcat, and you want the httpd one. That's true. But the same problem would probably happen with To

tomcat6 still deleting XML files from Catalina/localhost when the system is booted

2011-03-22 Thread Robinson, Eric
This is really getting frustrating. We have 75 instances on tomcat6 running on the same server. Each instance runs from its own discrete directory, where the tomcat-env.sh script and catalina.properties file set environment vars to point to that unique instance's folders. Every time we reboot the s

Re: Pros and Cons of JK Connector vs. ARR

2011-03-22 Thread André Warnier
Nick Williams wrote: ... On the one hand, we could use the Apache JK Connector to direct requests to Tomcat. On the other hand, since we’re using IIS7, we could use (and have seen recommended) the Application Request Routing (ARR) library for IIS to direct requests for Tomcat. As it happens, I

Re: [OT] Response Swapping

2011-03-22 Thread SQ
I too didn't realize there was a difference in connectors. Thanks for the clarification. Here is the startup info on the connector: [Loaded org.apache.catalina.connector.Response from file:/usr/local/apache-tomcat-5.5.30/server /lib/catalina.jar] [Loaded org.apache.jk.core.JkHandler from file:/

Re: Global Default Error Page

2011-03-22 Thread Jonathan Rosenberg
Excellent. Thanks. I configured this error page in conf/web.xml. Seemed like this made the most sense. -- Jonathan Rosenberg Founder & Executive Director Tabby's Place, a Cat Sanctuary On Tue, Mar 22, 2011 at 11:10 AM, Mark Thomas wrote: > On 22/03/2011 15:07, Caldarale, Charles R wrote: >>>

RE: unable to share folder using a symlink

2011-03-22 Thread Caldarale, Charles R
> From: James Godrej [mailto:jamesgod...@yahoo.in] > Subject: unable to share folder using a symlink > the Apache vhost definition is  Wrong mailing list; this one's for Tomcat, and you want the httpd one. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATE

unable to share folder using a symlink

2011-03-22 Thread James Godrej
Here is a situation I have a directory in  /media/7AC03B13C03AD4DB/something   which is an ntfs drive. I want to share from this a subdirectory so I go to /var/www/ and create a symlink as follows ln -s /media/7AC03B13C03AD4DB/something  /var/www/new_name  when the client tries to reach the abov

[OT] Browser support for version 1 cookies

2011-03-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have a cookie value that I'd like to contain characters that require quoting, and therefore require "version 1" cookies. I was wondering if anyone has any experience with a web browser that chokes on these cookies, or whether version 1 cookies

Re: Global Default Error Page

2011-03-22 Thread Mark Thomas
On 22/03/2011 15:07, Caldarale, Charles R wrote: >> From: Jonathan Rosenberg [mailto:shmol...@gmail.com] >> Subject: Global Default Error Page > >> How can I create a custom 404 error page for the case where >> the URL maps to a non-existent webapp? > > *All* URLs map to a webapp, even if it's

RE: Global Default Error Page

2011-03-22 Thread Caldarale, Charles R
> From: Jonathan Rosenberg [mailto:shmol...@gmail.com] > Subject: Global Default Error Page > How can I create a custom 404 error page for the case where > the URL maps to a non-existent webapp? *All* URLs map to a webapp, even if it's the default (ROOT) one. Put your custom error page in ROO

Re: Advantages of using tomcat manager over the conventional approach of copy-it-to-deploy/undeploy

2011-03-22 Thread Mark Thomas
On 22/03/2011 14:42, neeraj kumar wrote: > Hi , > > I am using Tomcat 6.0.18 , JVM Version 1.6.0_24 ,OS SunOS 5.10, OSArch > :AMD64 > > Recently I observed in few apps deployed on tomcat, that when I undeploy the > apps by simply deleting the .war file and the directory for the app, a few > threa

Re: Global Default Error Page

2011-03-22 Thread Thad Humphries
Just a guess, but maybe by adding it to $CATALINA_HOME/webapps/ROOT/WEB-INF/web.xml and putting the error page in $CATALINA_HOME/webapps/ROOT On Tue, Mar 22, 2011 at 10:54 AM, Jonathan Rosenberg wrote: > How can I create a custom 404 error page for the case where the URL > maps to a non-existent

Global Default Error Page

2011-03-22 Thread Jonathan Rosenberg
How can I create a custom 404 error page for the case where the URL maps to a non-existent webapp? I know how to do this for an individual webapp, but can't figure put where the "global default" error page comes from. -- Jonathan Rosenberg Founder & Executive Director Tabby's Place, a Cat Sanctua

Advantages of using tomcat manager over the conventional approach of copy-it-to-deploy/undeploy

2011-03-22 Thread neeraj kumar
Hi , I am using Tomcat 6.0.18 , JVM Version 1.6.0_24 ,OS SunOS 5.10, OSArch :AMD64 Recently I observed in few apps deployed on tomcat, that when I undeploy the apps by simply deleting the .war file and the directory for the app, a few threads are not cleaned up. I would be happy if someone shed

Re: session replication question in 7.0.10

2011-03-22 Thread János Löbb
Hi Mark, This SessionExample http://bml0065.yalepath.org/tc/examples/servlets/servlet/SessionExample Sorry for the mistype I have a sticky keyboard and I try to live with it. Sorry for the comment.. Ultimately it was my fault because I left out the distributable tag from one the web.xml.

Re: Pros and Cons of JK Connector vs. ARR

2011-03-22 Thread Mark Thomas
On 22/03/2011 12:56, Nick Williams wrote: > Also, the Apache Portable Runtime is only useful over HTTP and not AJP, > right? Making that an advantage of ARR over JK? There are BIO and APR/native versions of the Tomcat AJP connector. APR/native can be useful for both HTTP and AJP. How useful depend

Pros and Cons of JK Connector vs. ARR

2011-03-22 Thread Nick Williams
I’m working on designing a new production environment for our software, and I’m curious about the best approach to take. One of the plans we are testing out is to use IIS7 on Windows Server 2008 R2 with Tomcat 6.0.32 (with APR / tcnative enabled). However, we are a bit confused as to the best ap

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-22 Thread Peter Crowther
On 22 March 2011 08:32, Goyo wrote: > Inside "origin" there're about ten subdirs like "target". Some of them are > symlinked to the new filesystem. The rest, must remain in their path so: > - AFAIK, we can't mount the new drive to origin/target because target is > not > the only subdir we are sym

Re: [OT] Response Swapping

2011-03-22 Thread Mark Thomas
On 22/03/2011 10:24, André Warnier wrote: > The following is no criticism, and is meant as a constructive comment : > Patches still welcome, mm ? Yep. The offer to help anyone set up an environment so they can create and test patches still stands. Mark

Re: [OT] Response Swapping

2011-03-22 Thread André Warnier
Mark Thomas wrote: On 21/03/2011 23:15, André Warnier wrote: Mark Thomas wrote: On 21/03/2011 22:06, SQ wrote: Mark Thomas wrote: On 18/03/2011 21:05, SQ wrote: Environment: Solaris 10 Apache 2.2.16 mod_jk 1.2.31 <-- Tomcat 5.5.30 JVM 1.6.0_14 Which AJP connector are you using?

Re: Can't move files using symbolic links (allowLinking=true)

2011-03-22 Thread Goyo
Firstly, thanks for all your answers. Inside "origin" there're about ten subdirs like "target". Some of them are symlinked to the new filesystem. The rest, must remain in their path so: - AFAIK, we can't mount the new drive to origin/target because target is not the only subdir we are symlinking (

Re: Response Swapping

2011-03-22 Thread Mark Thomas
On 21/03/2011 23:15, André Warnier wrote: > Mark Thomas wrote: >> On 21/03/2011 22:06, SQ wrote: >>> Mark Thomas wrote: On 18/03/2011 21:05, SQ wrote: > Environment: > Solaris 10 > Apache 2.2.16 > mod_jk 1.2.31 <-- Tomcat 5.5.30 > JVM 1.6.0_14 > Which AJP c

Re: How to detect down of tomcat.

2011-03-22 Thread Darryl Lewis
This needs to be run as root Put it in a cron job to fire every minute #!/bin/sh DOWN=0 read DOWN att.txt mail -s "$subject" "$addr" -- -fno-reply@yourdomain< att.txt fi DOWN=0 fi if [ `ps -ef|grep tomcat|grep -v grep|wc -l` -lt 1 ] then NOW=`date` subject="tomcat down $NOW" addre

Re: FW: Issue with tomcat 6 connector

2011-03-22 Thread Krish
Hi All, I used the inbuild reverse proxy feature in sun java system webserver 7. This works perfect than the connector. Also very simple. We can just redirect in UI. Wow. I tried it before but it was having few issues with sso headers. Now all looks good. All the pages are loading perfect. Than