NullPointerException 5.5.17 Request.setAttribute(Request.java:1376)

2008-08-18 Thread Adam Jenkins
Hi All, I'be been tearing my hair out for a couple of weeks over this one and would appreciate any assistance anyone could give. It's a bit of a unique scenario, so it'll take me a little while to explain: We have a legacy struts app, forwarding to a jsf app (details of how below) running on to

How to transfer session to another browser

2008-08-18 Thread kohanm
Hi, I have Tomcat 5.5 installed and a Java web applicaion is running. How could* *I *se*t up Tomcat that if I copy and past the URL of the web application to anoather browser the session could be tranferred to the new browser, in other words: Session can be transferred to another browser by copyi

Re: Tomcat and ClassLoaders

2008-08-18 Thread pmanvi
But for me the issue is different for me. I have some applications in ROOT folder & after some time (2 to 3 hours) apparently the class is getting loaded from other jars (having the same class) are getting loaded from other webapps directory. I guess it's related to class caching done at the cla

Re: Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread Youssef Mohammed
It could be because TC reads and parses the the input stream for you, so you can get them though request.getParameter (and other methods). If the request content type is something different (e.g. xml/text ), you would have the input stream then and read it the way you want. This is just my guess,

Re: Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread André Warnier
Len Popp wrote: No, when a browser sends a POST request the request params are *not* sent as part of the request URI. They are sent in the body of the request. With Content-Type: application/x-www-form-urlencoded the request body looks like this: param1=a¶m2=b You can use a browser plugin such

Re: Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread Len Popp
No, when a browser sends a POST request the request params are *not* sent as part of the request URI. They are sent in the body of the request. With Content-Type: application/x-www-form-urlencoded the request body looks like this: param1=a¶m2=b You can use a browser plugin such as LiveHTTPHeaders

Re: Basic Authentication with Tomcat

2008-08-18 Thread Mark Thomas
Tom Cat wrote: > /myAdmin/admin.html This should be: /admin.html > > I think this should be enough to require authentication when someone > goes to http://localhost:8080/myAdmin/admin.html on the local machine. > And yet, it allows everyone access to the page, without even promptin

Re: Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread André Warnier
deniak wrote: Actually, it's a POST request: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 When I receive the request, I want to deal with an input stream. David Smith-2 wrote: Forgive me if I'm wrong, but this looks like the browser should send a GET request. Why would you ex

Basic Authentication with Tomcat

2008-08-18 Thread Tom Cat
Hello, I am trying to setup basic http authentication with tomcat. I modified my the web.xml file in the project's WEB-INF folder. Here is the relevant portion: http://www.w3.org/2001/XMLSchema-instance"; xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/javaee/web

Re: Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread deniak
Actually, it's a POST request: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1 When I receive the request, I want to deal with an input stream. David Smith-2 wrote: > > Forgive me if I'm wrong, but this looks like the browser should send a > GET request. Why would you expect an

Re: Intgrate Tomcat and PHP in winxp

2008-08-18 Thread Tommy Pham
--- On Mon, 8/18/08, Radhakrishnavangara <[EMAIL PROTECTED]> wrote: > From: Radhakrishnavangara <[EMAIL PROTECTED]> > Subject: Re: Intgrate Tomcat and PHP in winxp > To: users@tomcat.apache.org > Date: Monday, August 18, 2008, 12:55 PM > Hi Tommy, > > That was really informative. But let me expl

Re: customer specific settings of webapps

2008-08-18 Thread Yves Glodt
On Monday 18 August 2008, Paul Hammes wrote: > Hi all, Hi, > I have a webapplication wich is distributed in one war for different > customers. Unfortunately there are customer specific settings I > normally would like to define in the enclosed web.xml. Because this > would lead to, that I have to

Re: Intgrate Tomcat and PHP in winxp

2008-08-18 Thread Johnny Kewl
- Original Message - From: "Radhakrishnavangara" <[EMAIL PROTECTED]> To: Sent: Monday, August 18, 2008 6:55 PM Subject: Re: Intgrate Tomcat and PHP in winxp Hi Tommy, That was really informative. But let me explain you the actual scenario. I am using an application called phpESP (

Re: Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread David Smith
Forgive me if I'm wrong, but this looks like the browser should send a GET request. Why would you expect an input stream? --David deniak wrote: Hi all, Has anyone ever used a form with "x-www-form-urlencoded" Content-Type to a web application running on tomcat? I don't know why but when I us

Re: Intgrate Tomcat and PHP in winxp

2008-08-18 Thread Alan Chaney
Radhakrishna The main issue here is that it is probably not worth doing. You would probably be better off investigating tuning apache and php. I assume that your existing installation uses mod_php? If so, the php and apache lists may be of help. httpd can be extensively tuned for memory footp

Post form with "x-www-form-urlencoded" content type and Coyote Connector

2008-08-18 Thread deniak
Hi all, Has anyone ever used a form with "x-www-form-urlencoded" Content-Type to a web application running on tomcat? I don't know why but when I use that kind of Content-Type, my inputstream is empty. There's no problem if I use another Content-Type. It seems there's a problem with coyote connec

Re: Intgrate Tomcat and PHP in winxp

2008-08-18 Thread Radhakrishnavangara
Hi Tommy, That was really informative. But let me explain you the actual scenario. I am using an application called phpESP ( a survey tool developed in PHP) and running on Apache httpd. The application is running fine, but it is consuming lot of memory space in the server. So we have decided to m

Re: how to populate database with SHA hash for DIGEST

2008-08-18 Thread Mark Thomas
DIGLLOYD INC wrote: > Chris, > > I accept your point. > > It's too bad the Tomcat "how to" docs don't mention this in a brief note. > > http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html > > I'm not on the tomcat developer group, otherwise I'd fix it. That doesn't stop you creating a pat

Re: how to populate database with SHA hash for DIGEST

2008-08-18 Thread DIGLLOYD INC
Chris, I accept your point. It's too bad the Tomcat "how to" docs don't mention this in a brief note. http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html I'm not on the tomcat developer group, otherwise I'd fix it. It's even more disappointing that the books I've seen on the subject

RE: [BULK] Using tabbed browsers causes session sharing

2008-08-18 Thread Patrick Markiewicz
Hi, A session boils down to a cookie sent between the browser and the server. So the only way you could create 2 sessions is if the IE browser would keep cookies independent on each tab. I don't know of any browser that associates cookies with anything but the site. I.e. when you logi

Re: how to populate database with SHA hash for DIGEST

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lloyd, DIGLLOYD INC wrote: > Answer: SHA just doesn't work. MD5 works fine. I presume this is > because the browser has no idea what algorithm to use, and just always > uses MD5. You should read the definition of HTTP DIGEST auth. It doesn't just

Re: Using tabbed browsers causes session sharing

2008-08-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: > if you want to take it a step further determine if the client is > using an old browser route them to latest > > >