Re: BASIC Authentication : Not working

2010-03-28 Thread Binu Kuttikkattu Idicula
Hi, I was trying a very basic example of authentication using HTTP Basic Authentication. However this seems not working in TOMCAT 6.0.20 for my application. Here is the web.xml which tells about login security-role role-nameapplication/role-name /security-role !-- SECURITY

Re: BASIC Authentication : Not working

2010-03-28 Thread Harry Metske
I would think your url-pattern is not valid : url-pattern/*corejspbean*/StringBean.jsp/url-pattern I don't know the exact rules for the pattern, but could you try first with /* and see if that works, and then tweak the url-pattern further to your needs ? regards, Harry 2010/3/28 Binu

Re: BASIC Authentication : Not working

2010-03-28 Thread Binu Kuttikkattu Idicula
url-pattern/*/url-pattern Hi Harry, When I replaced url to url-pattern/*/url-pattern it is asking for a user name password. The exact URL which I access is http://localhost:8080/corejspbean/StringBean.jsp . How do I define a URLPattern for this? Thank you for your quick help. Binu K Idicula

Re: BASIC Authentication : Not working

2010-03-28 Thread Konstantin Kolinko
2010/3/28 Binu Kuttikkattu Idicula binukuttikka...@googlemail.com: The exact URL which I access is http://localhost:8080/corejspbean/StringBean.jsp . How do I define a URLPattern for this? url-pattern/StringBean.jsp/url-pattern I suppose that your application is corejspbean.war or is in

Re: BASIC Authentication : Not working

2010-03-28 Thread Binu Kuttikkattu Idicula
It is in corejspbean.war and after trying out url-pattern/StringBean.jsp/url-pattern, the access is restricted only to the StringBean.jsp which was the real need. Thanks. A little curious about URL pattern if it is in webapps/corejspbean.. Does the pattern change? Is there any rule/documentation

Re: BASIC Authentication : Not working

2010-03-28 Thread Konstantin Kolinko
2010/3/28 Binu Kuttikkattu Idicula binukuttikka...@googlemail.com: It is in corejspbean.war and after trying out url-pattern/StringBean.jsp/url-pattern, the access is restricted only to the StringBean.jsp which was the real need. Thanks. A little curious about URL pattern if it is in

AW: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Steffen Heil
Hi How does tomcat unload classes? It doesn't, at least not directly. Tomcat simply eliminates all references to the classes; the actual unloading is done by GC at some point in the future. Is there even a way in java to do this? Just the above. But making the classes unreachable should

Re: tomcat PUT not working

2010-03-28 Thread André Warnier
Kumar Kadiyala wrote: Chris, I see the content when I read the InputStream. Thanks for your help. Hi. It seems that you are helped, and that is the essential part. Maybe to balance a bit with the subject of your post (Tomcat PUT not working), I just want to provide some additional

RE: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Caldarale, Charles R
From: Steffen Heil [mailto:li...@steffen-heil.de] Subject: AW: Shutdown hook for correctly unloading drivers This does not hold, as soon as Threads are involved, right? I don't understand your comment; Thread objects always exist, and what do you think that has to do with unloading classes?

Tomcat app. can no longer connect to MySQL

2010-03-28 Thread fred basset
Hi All, My QA guy came me with a problem where he now can't log into our Tomcat web app. at all. The relevant log file is below. It looks like Hibernate can't make a connection to MySQL. We can get to MySQL fine from the command line, and tried restarting MySQL and Tomcat, got the same result.

Re: Tomcat app. can no longer connect to MySQL

2010-03-28 Thread Konstantin Kolinko
2010/3/28 fred basset fredbasset1...@gmail.com: Hi All, My QA guy came me with a problem where he now can't log into our Tomcat web app. at all.  The relevant log file is below.  It looks like Hibernate can't make a connection to MySQL.  We can get to MySQL fine from the command line, and

RE: sticky session failover

2010-03-28 Thread Len Takeuchi
Hi Arunkumar, The failover is working. What I need is the tomcat instance to which failover occurs assumes ownership of the sticky session, by that the session id has to be changed to use that tomcat instance's jvmRoute and cookie has to be reset, otherwise it is no longer sticky session

access to localhost:8080 fails

2010-03-28 Thread Krishanu Biswas
Hello, I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista ulltimate). When inside corporate network, it works. In home network, it doesn't. Strange enough that it does not work even when the laptop stands alone (not connected to any network). Accessing

Re: access to localhost:8080 fails

2010-03-28 Thread Konstantin Kolinko
2010/3/28 Krishanu Biswas biswas.krish...@googlemail.com: Hello, I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista ulltimate). In what folder is this Tomcat instance installed? With what user account it runs? Do you run it as a service, or starting from a *.bat file, or from

Re: access to localhost:8080 fails

2010-03-28 Thread André Warnier
Krishanu Biswas wrote: Hello, I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista ulltimate). When inside corporate network, it works. Can you explain how exactly it works ? what URL are you using then, from where ? what are you seeing then ? In home network, it doesn't.

Re: sticky session failover

2010-03-28 Thread Mark Thomas
On 28/03/2010 18:40, Len Takeuchi wrote: My problem is that I'm not using cluster session replication because my environment doesn't support multicast. I'm using PersistentManager for session persistence using jdbc as mentioned. I don't think it is possible to successfully configure a

RE: access to localhost:8080 fails

2010-03-28 Thread Caldarale, Charles R
From: Krishanu Biswas [mailto:biswas.krish...@googlemail.com] Subject: access to localhost:8080 fails I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista ulltimate). When inside corporate network, it works. In home network, it doesn't. Sounds like whatever security agent

AW: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Steffen Heil
Hi You wrote, that when an application is unloaded, that tomcat discards all references to the classes of that web application, therefore the garbage collector could effectively unload that application. However, there are web applications that have own threads (file reaper, connection pool,

Re: AW: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Mark Thomas
On 28/03/2010 19:46, Steffen Heil wrote: Hi You wrote, that when an application is unloaded, that tomcat discards all references to the classes of that web application, therefore the garbage collector could effectively unload that application. However, there are web applications that have

RE: Shutdown hook for correctly unloading drivers

2010-03-28 Thread Caldarale, Charles R
From: Steffen Heil [mailto:li...@steffen-heil.de] Subject: AW: Shutdown hook for correctly unloading drivers However, there are web applications that have own threads (file reaper, connection pool, etc.). It's the application's responsibility to manage those threads, and shut them down

Re: sticky session failover

2010-03-28 Thread Len Takeuchi
Hi Mark, Nope. This was fixed last year: http://svn.apache.org/viewvc? view=revisionrevision=794822 Mark Thanks very much for you quick response. That's great that JmvRouteBinderValve works with PersistentManager. I tried to configure it by putting JvmRouteBinderValve config inside a Manager

RE: sticky session failover

2010-03-28 Thread Caldarale, Charles R
From: Len Takeuchi [mailto:ltakeu...@jostleme.com] Subject: Re: sticky session failover I tried to configure it by putting JvmRouteBinderValve config inside a Manager To quote from the doc: A Valve element represents a component that will be inserted into the request processing pipeline

Re: access to localhost:8080 fails

2010-03-28 Thread Krishanu Biswas
On Sun, Mar 28, 2010 at 8:13 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2010/3/28 Krishanu Biswas biswas.krish...@googlemail.com: Hello, I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista ulltimate). In what folder is this Tomcat instance installed? Tomcat

Re: access to localhost:8080 fails

2010-03-28 Thread Krishanu Biswas
On Sun, Mar 28, 2010 at 8:20 PM, André Warnier a...@ice-sa.com wrote: Krishanu Biswas wrote: Hello, I've a 6.0.26 (latest) Tomcat installed on my laptop (windows vista ulltimate). When inside corporate network, it works. Can you explain how exactly it works ? what URL are you using then,

Re: access to localhost:8080 fails

2010-03-28 Thread Krishanu Biswas
Chuck: To verify the network issue, I installed Tomcat on my personal laptop. The browser is still unable to show up: http//localhost:8080. I'm connected to a router via a wireless network which in turn connects me to the internet. I have Mcafee antivirus, firewall and spyware installed. I will

RE: access to localhost:8080 fails

2010-03-28 Thread Caldarale, Charles R
From: Krishanu Biswas [mailto:biswas.krish...@googlemail.com] Subject: Re: access to localhost:8080 fails I installed Tomcat on my personal laptop. The browser is still unable to show up: http//localhost:8080. Do you have localhost defined in that machine's hosts file? Can you ping

RE: sticky session failover

2010-03-28 Thread Len Takeuchi
Thanks Chuck. It worked when I put the JvmRouteBinderValve configuration under Host. Regards, Len On Sun, 28 Mar 2010 15:26:22 -0500, Caldarale, Charles R wrote From: Len Takeuchi [mailto:ltakeu...@jostleme.com] Subject: Re: sticky session failover I tried to configure it by putting

Upgrade tomcat 6 to a new point release on windows

2010-03-28 Thread dale77
Hi, what is the procedure for upgrading to the latest point release of tomcat 6 on windows? We are on 6.0.18 running tomcat as a windows service. What is the recommended procedure for upgrade? Does the current windows installer do the right thing to in-place upgrade 6.0.18 to 6.0.26? Or is

Re: access to localhost:8080 fails

2010-03-28 Thread Harry Metske
I have seen similar issues on our corporate (XP and Vista) laptops, somebody decided that the locally running firewall should also block access to localhost. I think you should first verify if that's the case. I'm not a Windows expert, so I don't know how to check if the above is the case. If you