Re: manager 401 error fixed with restart

2009-03-02 Thread Thufir
On Mon, 02 Mar 2009 07:04:40 +, Thufir wrote: On Mon, 02 Mar 2009 05:49:53 +, Thufir wrote: I'm getting: HTTP Status 401 - type Status report message description This request requires HTTP authentication (). http://localhost:8080/manager/html on tomcat6 for

Re: instance has been stopped. could not loadoracle.toplink.essentials...

2009-03-02 Thread Thufir
On Sun, 01 Mar 2009 21:46:30 -0600, Caldarale, Charles R wrote: From: news [mailto:n...@ger.gmane.org] On Behalf Of Thufir Subject: Re: instance has been stopped. could not loadoracle.toplink.essentials... Glad you saw that. It seems like toplink is required for JPA? Got no idea; what I

Re: manager 401 error fixed with restart

2009-03-02 Thread Thufir
On Mon, 02 Mar 2009 08:11:18 +, Thufir wrote: On Mon, 02 Mar 2009 07:04:40 +, Thufir wrote: On Mon, 02 Mar 2009 05:49:53 +, Thufir wrote: I'm getting: HTTP Status 401 - type Status report message description This request requires HTTP authentication ().

Re: RemoteAddrValve and RemoteHostValve

2009-03-02 Thread Zak Mc Kracken
Gregor Schneider wrote: you've been asking the valve-stuff because you want to limit the access to requests coming from localhost only? Yep! why then not make tomcat listen on localhost only? configuration for that's a walk in the park... My Tomcat is serving a number of webapps, I want

Re: RemoteAddrValve and RemoteHostValve

2009-03-02 Thread Gregor Schneider
On Mon, Mar 2, 2009 at 11:25 AM, Zak Mc Kracken zakmc...@yahoo.it wrote: Gregor Schneider wrote: you've been asking the valve-stuff because you want to limit the access to requests coming from localhost only? Yep! why then not make tomcat listen on localhost only? configuration for that's

Re: friendly urls

2009-03-02 Thread Tim Funk
* is mapped to the default servlet. And this is done system wide in conf/web.xml. You can turn that behavior off and require each webpp to map *. But then youi also need to make sure you have a way to serve static content like images. (Which is what the default servlet does) A better way is

Re: friendly urls

2009-03-02 Thread Ken Bowen
In this regard, http://tuckey.org/urlrewrite/is a very useful tool. -Ken On Mar 2, 2009, at 6:55 AM, Tim Funk wrote: * is mapped to the default servlet. And this is done system wide in conf/web.xml. You can turn that behavior off and require each webpp to map *. But then youi also

Re: friendly urls

2009-03-02 Thread Dan Vega
Thank you all for the help. I indeed found urlRewrite last night and it has turned out to be exactly what I was looking for. Thanks again for everything guys! Dan

Re: RemoteAddrValve and RemoteHostValve

2009-03-02 Thread Zak Mc Kracken
Thanks Gregor, that's very interesting for production environments. I'll try it. Cheers. M. Gregor Schneider wrote: On Mon, Mar 2, 2009 at 11:25 AM, Zak Mc Kracken zakmc...@yahoo.it wrote: Gregor Schneider wrote: you've been asking the valve-stuff because you want to limit the access to

RE: RemoteAddrValve and RemoteHostValve

2009-03-02 Thread Caldarale, Charles R
From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: RemoteAddrValve and RemoteHostValve Have you ever thought about fronting Tomcat with Apache HTTPD, then connecting it via mod_jk? Are you serious? You want to add complexity and overhead just to control access to one

What happened to the Tomact 6 Monitor?

2009-03-02 Thread Gary Marshall
All: I have a Vista machine stoked with maximum memory. The following has occurred each time I complete an install of Tomcat 6.0 followed by a reboot of my computer. I downloaded and successfully installed Tomcat6 setting the checkbox on the component page that generaates during install that

Re: What happened to the Tomact 6 Monitor?

2009-03-02 Thread Serge Fonville
Hi, Now, I reboot my machine. When the machine gets to the Window desktop a red X dialog box displays stating Acess is denied. Unable to open the server 'Tomcat6'. I am repeating the message here letter for letter exactly as it is shown in the dialogue box that pops up. So I click OK

Re: JkMount a different location

2009-03-02 Thread Rainer Jung
On 02.03.2009 03:21, Andres Riancho wrote: List, I've search the Tomcat FAQ, but I haven't been able to find any answers, so... here is my question... I have a JSP application deployed in Tomcat inside the /abc/ directory; and I want to be able to access it from *two different locations*

Re: What happened to the Tomact 6 Monitor?

2009-03-02 Thread Gary Marshall
Hello and thank you for your prompt response. I should have been more detailed in my explanation and environment. The scenario I define here happens EVERY TIME I install and then reboot my Vista machine, within which, I believe I have admin rights. This Vista machine is my own personal machine.

Jk disable worker on status

2009-03-02 Thread mturra
I have a tomcat farm behind an apache httpd cluster, each apache http server have a jk connector connected to three tomcat. Each tomcat have a max active session limit (let's say 10). I configured a load balanced worker with three worker. I would like to disable the worker related to the

Re: RemoteAddrValve and RemoteHostValve

2009-03-02 Thread Gregor Schneider
Hi Chuck, On Mon, Mar 2, 2009 at 3:07 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote:  Since a working Valve setup was already provided, why not just use that? Ehem - was it? I understood that there was one open issue that Zac needed to combine a hostname and IP-adress - which was not

RE: RemoteAddrValve and RemoteHostValve

2009-03-02 Thread Caldarale, Charles R
From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: RemoteAddrValve and RemoteHostValve I understood that there was one open issue that Zac needed to combine a hostname and IP-adress Early in the thread, someone pointed out that there's never any need to specify a host name,

Enabling Basic Authentication and SSL for the same WebApplication on Tomcat 6

2009-03-02 Thread Bharath R
Hi, I am new to web development. We have a servlet for which both Basic Authentication and SSL has to be enabled. We are using tomcat 6 to host our web application. I would like to know how do we configure the same application to enable both authentication. Say, if the users access the

Mod_jk problem

2009-03-02 Thread Partha Goswami
I compile,mod_jk in my vps everything is fine, but when i am trying to add, following lines, restarting my apache its not starting anymore pls help LoadModule jk_module /etc/httpd/modules/mod_jk.so # Where to find workers.properties JkWorkersFile /etc/httpd/workers.properties # Where to put jk

Re: Mod_jk problem

2009-03-02 Thread Mladen Turk
Partha Goswami wrote: I compile,mod_jk in my vps everything is fine, but when i am trying to add, following lines, restarting my apache its not starting anymore pls help # Set the jk log level [debug/error/info]JkLogLevel info Is this a copy/paste issue or a real config line? Regards

Re: Mod_jk problem

2009-03-02 Thread Partha Goswami
Yes.. On Mon, Mar 2, 2009 at 9:24 PM, Mladen Turk mt...@apache.org wrote: Partha Goswami wrote: I compile,mod_jk in my vps everything is fine, but when i am trying to add, following lines, restarting my apache its not starting anymore pls help # Set the jk log level

Re: Jk disable worker on status

2009-03-02 Thread Rainer Jung
On 02.03.2009 15:55, mturra wrote: I have a tomcat farm behind an apache httpd cluster, each apache http server have a jk connector connected to three tomcat. Each tomcat have a max active session limit (let's say 10). I configured a load balanced worker with three worker. I would like to

Re: JkMount a different location

2009-03-02 Thread Andres Riancho
Rainer, On Mon, Mar 2, 2009 at 12:29 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 02.03.2009 03:21, Andres Riancho wrote: List,     I've search the Tomcat FAQ, but I haven't been able to find any answers, so... here is my question... I have a JSP application deployed in Tomcat inside

Re: Mod_jk problem

2009-03-02 Thread Rainer Jung
On 02.03.2009 16:57, Partha Goswami wrote: Yes.. This is not an answer for an or question :( There is a second item, that seems to be broken: # Where to put jk logsJkLogFile /var/log/httpd/mod_jk.log In case Apache doesn't start with mod_jk, you should find an error either in your Apache

RE: Servlet API loggin in tomcat 5.5 vs. tomcat 6

2009-03-02 Thread Guillaume Cauchon
Anyone else having similar issues with logging? Guillaume Cauchon | DataDirect Technologies inc. -email:guillaume.cauc...@datadirect.com -mobile: 418.952-7357 -work: 418.649-1551 -Original Message-

Re: Request not forwarded to login page with security-constraint after session time-out

2009-03-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcel, On 2/27/2009 5:17 PM, Marcel Stör wrote: On 27.02.2009, at 17:38, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/26/2009 5:39 PM, Caldarale, Charles R wrote: From: Mark Thomas

Re: Servlet API loggin in tomcat 5.5 vs. tomcat 6

2009-03-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guillaume, On 2/27/2009 3:23 PM, Guillaume Cauchon wrote: However we realized the logging configuration doesn't seams to be working the same way! The same webapp running on 5.5 and 6 doesn't produce the same amount of logging: everything that was

Re: Mod_jk problem

2009-03-02 Thread Partha Goswami
can not found anythig in logs. On Mon, Mar 2, 2009 at 9:41 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 02.03.2009 16:57, Partha Goswami wrote: Yes.. This is not an answer for an or question :( There is a second item, that seems to be broken: # Where to put jk logsJkLogFile

Re: Tomcat 6 catalina.sh does not remove tomcat.pid

2009-03-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marilyn, On 2/27/2009 4:58 PM, Marilyn Daum wrote: We just upgraded from Tomcat 5.5.23 to Tomcat 6.0.18. After the upgrade, our shutdown script hangs, waiting for removal of the pid file. I compared the catalina.sh scripts, and noticed that the

Re: Slightly OT: ApacheCon - Mark Thomas

2009-03-02 Thread Pieter Temmerman
Hi Mark, Thanks for your reply. It's not 100% sure yet, but it seems my company is willing to pay to attend your training. I'm crossing my fingers! :-) Just one last question. The Tomcat pre-conference training, is it spread over 2 days, or are the 2 sessions identical? Thanks On Fri,

Re: Jk disable worker on status

2009-03-02 Thread mturra
Rainer Jung-3 wrote: We don't get any invalidation information from the backend, neither do we know, whether a request carrying a session id actually belongs to a valid session. So we do not have any immediate way of limiting by session count. There is no disable_on_status

Re: RemoteAddrValve and RemoteHostValve

2009-03-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zak, On 2/27/2009 9:28 PM, Zak Mc Kracken wrote: I'd like to filter incoming requests with this criterion: if it's www.somewhere.com - OK else if it's 1.2.3.4 - OK else - KO You could always use our favorite urlrewrite tool:

Re: serializing session in DB

2009-03-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amit, On 2/28/2009 9:02 PM, Amit Chandel wrote: I am trying to deploy a tomcat cluster. I was able to set up a test tomcat cluster using in-memory replication with version 6.0.10, but my session data is too much (almost 5 GB per tomcat instance,

Re: Jk disable worker on status

2009-03-02 Thread mturra
Rainer Jung-3 wrote: Furthermore, disabled is a configuration state. You do not only want it to be set automatically, but you also need a way of revoking it later. I think a robust implemenation would be something like: - a new state for temporarily disabling a node, except for sticky

Re: Slightly OT: ApacheCon - Mark Thomas

2009-03-02 Thread Mark Thomas
Pieter Temmerman wrote: Hi Mark, Thanks for your reply. It's not 100% sure yet, but it seems my company is willing to pay to attend your training. I'm crossing my fingers! :-) Just one last question. The Tomcat pre-conference training, is it spread over 2 days, or are the 2 sessions

RE: What happened to the Tomact 6 Monitor?

2009-03-02 Thread Caldarale, Charles R
From: Gary Marshall [mailto:gwj...@gmail.com] Subject: Re: What happened to the Tomact 6 Monitor? The scenario I define here happens EVERY TIME I install and then reboot my Vista machine, within which, I believe I have admin rights. You probably don't. Unlike previous versions of Windows,

Re: Re: session.isNew() not thread safe?

2009-03-02 Thread Karl San Gabriel
Hi Jakob, Session object is not thread-safe. It's better put the session object in a synchronized block. Regards, Karl San Gabriel Tim Funk wrote: div class=moz-text-flowed style=font-family: -moz-fixedSort of (if I read the code correctly) isNew is set to false after the response is

RE: Re: session.isNew() not thread safe?

2009-03-02 Thread Caldarale, Charles R
From: Karl San Gabriel [mailto:karl.sangabr...@gmail.com] Subject: Re: Re: session.isNew() not thread safe? Session object is not thread-safe. Please don't post false information - do your homework. To quote from 7.7.1 of the servlet spec: Multiple servlets executing request threads may

Re: Tomcat 6 catalina.sh does not remove tomcat.pid

2009-03-02 Thread Marilyn Daum
Thanks for the replies. Someone here apparently modified the catalina.sh script. Christopher Schultz-2 wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It's good that catalina.sh does not remove tomcat.pid, since it never creates it in the first place. As Chuck points out, you are

Re: mod_jk not working as expected - is there a bug??

2009-03-02 Thread Mohit Anchlia
I will change the JkLogLevel and post the results. I have a question though: Does prepost_timeout also detect if it received http code such as 503 from app server. On Wed, Feb 25, 2009 at 9:05 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 25.02.2009 17:10, Mohit Anchlia wrote: you are

[OT] Using jsp/serlvets to track clicking

2009-03-02 Thread Jonathan Mast
[Sorry for this non-Tomcat specific question, but Sun Forums didn't help me much with this one] I would like to know how to imitate the click of link in JSP or serlvet, in order to track clicks. I have pages with links containing tel protocol URIs like this: Click a href=tel:55here/a to

Re: [OT] Using jsp/serlvets to track clicking

2009-03-02 Thread Ken Bowen
Well, a very generic way of getting a hold of a click in the kind of setting you're describing would be to an an onclick to the link, invoking some Javascript doing whatever you want. Maybe something like a href=tel:55 onclick=myCalltrackingCode();here/a to listen! Almost all

Re: serializing session in DB

2009-03-02 Thread Amit Chandel
Hi Chris, Thanks for bringing up these concerns. I did a more detailed analysis of our application. Though it keeps 5GB of session data in RAM which are actually disk backed, the active session data will only account for a maximum of 200MB per second. So I am only required to persist this much

Re: mod_jk not working as expected - is there a bug??

2009-03-02 Thread Rainer Jung
On 02.03.2009 20:28, Mohit Anchlia wrote: I will change the JkLogLevel and post the results. I have a question though: Does prepost_timeout also detect if it received http code such as 503 from app server. prepost_timeout activates Cping/Cpong before each request. mod_jk will send a tiny test

Re: session.isNew() not thread safe?

2009-03-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/2/2009 1:54 PM, Caldarale, Charles R wrote: From: Karl San Gabriel [mailto:karl.sangabr...@gmail.com] Subject: Re: Re: session.isNew() not thread safe? Session object is not thread-safe. Please don't post false information - do