Chris,

Indeed, I forgot about comments ... but after removing them the issue persists 
- the pair tomcat/tomcat (for username/password) still doesn't work.
Concerning authentication, probably I have a reason - but how to check if this 
is actually the case ?

The final goal of my demarche - automatize articles downloading from some 
portal: page is analyzed, links to .pdf files found, and then special classes 
are used for downloading.
Initially I realized such approach in C# and it worked properly with another 
portal with "simple" pages.

In actual portal (with jsp pages) this approach no more works. So I try to find 
some solution with Java/tomcat.
If I succeed to properly run jsp page on tomcat, probably there is a technic 
allowing to access "running result" from java code.

Regards

Pavel.

-----Original Message-----
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: vendredi 27 mars 2015 18:58
To: Tomcat Users List
Subject: Re: How to enable cookies in Apache Tomcat

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Pavel,

On 3/27/15 1:54 PM, Pavel Yermolenko wrote:
> In my default browser (Chrome) the cookies are enabled, the proof
> is: the .jsp page is correctly displayed in browser. In the meantime
> I've tried to access to Manager App page from main page
> http://localhost:8080/, but access were refused (I tried username =
> "tomcat", password = "tomcat"). These default credentials are
> specified in tomcat-user.xml file. Where is a problem ?

The most common mistake when configuring access to the manager application is 
forgetting to remove the <!-- and --> comments from the conf/tomcat-users.xml 
file.

Since you aren't using any super-secret credentials (tomcat/tomcat), can you 
post the whole conf/tomcat-users.xml file?

It sounds like cookies are not the problem, here, but authentication instead.

- -chris

> -----Original Message----- From: Caldarale, Charles R
> [mailto:chuck.caldar...@unisys.com] Sent: vendredi 27 mars 2015
> 18:28 To: Tomcat Users List Subject: RE: How to enable cookies in
> Apache Tomcat
>
>> From: Pavel Yermolenko [mailto:py.oh...@sunrise.ch] Subject: How to
>> enable cookies in Apache Tomcat
>
>> Trying to test jsp page in Apache Tomcat 8.0, I've met problems -
>> opened page displays suggestions how to enable cookies in different
> browsers.
>
>> Is there some option, allowing to setup/enable cookies in Apache
>> Tomcat.
>
> If your browser is disabling cookies, you have to change the
> configuration in the browser - nothing Tomcat can do about that.
>
> - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> PROPRIETARY MATERIAL and is thus for use only by the intended
> recipient. If you received this in error, please contact the sender
> and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
>
>
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
> --- L'absence de virus dans ce courrier électronique a été vérifiée
> par le logiciel antivirus Avast. http://www.avast.com
>
>
> ---------------------------------------------------------------------
>
>
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJVFZobAAoJEBzwKT+lPKRYnLUP/0DRv7I/yeriXYLwDYmr3q68
VI5s25p/gMgESo7iPEdrKhDrbKCQadbGqsLjwNGR8ASGfWJB+MiriHTe/n0GDbrp
MFZ2nqGN6i4QUnmT35esAgiHLRom8CZRoTDXjcuqZSpLO1nWZlm9+FNeN2LJo/aM
jWGL49R8XBzFTaVC7Abb/6gW1qmqiMS0iR2K8OU1v4qbxXI5Arp40rsahRbIIW2V
45YPNZva6SPxDyFxu9tCt/ZEG9nj44wduBzfyX+2ip8RC8TlG2EhDKGfnUCPH0A3
CMenIcEmTH1x6PauzIVLc5YUpRhabHl7FZCneZ91TZu4RsZ5qdWCuUhiBEnb6LdS
jKeIm6lvEIu+JB4+6CTEliBtZbAYuhJSEpYMYYVhmX55QlAqQADOUf1CaifnATGo
jBUiHK5ItMPJVh3/EJzEsk4maisNpwgp7SnEUg5gvyEpGfE+EcfQwnyhY9f51esl
0gVZ9qMj1FT1jG4IWI16wswf7eYBVqqoPYMDmssIc5j5+9dsZAMJvt7x9Mf6LgfX
cUIBPck9Kv5nuLthQ/vdMjTFc3g+BkTfVEYarOKfetCq0D7L0ZjlqkI9+3dTwXcZ
/WgqW9hxkhXa/U7pA0pq2rALDbsrbVKQCcvBwp6AdfRCMGQwTnACSTf0nXZAJt6a
E4qRlrRxpDkNP0TehE/c
=HGBC
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to