[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: Problems upgrading to Tomcat 7
From:       Christopher Schultz <chris () christopherschultz ! net>
Date:       2012-07-31 15:35:04
Message-ID: 5017FB28.6060307 () christopherschultz ! net
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alejandro,

On 7/31/12 8:20 AM, Alejandro Mehring wrote:
> The base url of the application is of the form
> 
> http://host/app/servlets/FrontController

Is that an HTTP <base> tag, or just the "base" of the webapp that you
use as a mental model?

> So when in Tomcat 4 the page fetches the stylesheet (using the 
> href="../lightStyle.css" form), it resolves to 
> http://host/app/lightStyle.css, whereas in Tomcat 7 it goes to 
> http://host/app/servlets/lightStyle.css.
> 
> Here's the output of the JSP (the header part) for both 4 and 7
> version.
> 
> TOMCAT 4 ========
> 
> <html> <style type="text/css"> @import URL("../lightStyle.css") 
> </style> <head> <!--meta http-equiv=Content-Type
> content="text/html; charset=windows-1252"--> <meta
> http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> 
> <meta http-equiv="Expires" content="0"> <meta http-equiv="Pragma"
> content="no-cache"> <meta http-equiv="cache-control"
> content="no-cache"> <title>Consulta de usuarios</title> <link
> rel="stylesheet" href="../lightStyle.css" type="text/css"> ... 
> </head> ...
> 
> 
> 
> TOMCAT 7 ======== <HTML> <style type="text/css"> @import
> URL("lightStyle.css") </style> <head> <title>Error</title> <link
> rel="stylesheet" href="lightStyle.css" type="text/css"> <meta
> http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> 
> <meta http-equiv="Expires" content="0"> <meta http-equiv="Pragma"
> content="no-cache"> <meta http-equiv="cache-control"
> content="no-cache"> ... </head> ...

Something doesn't look right here. There are lots of differences
between these two outputs:

1. <html> versus <HTML>
2. Missing <!-- comment --> in "TC7" version
3. Re-arranged HTML tags (title/link versus meta)
4. Different language and/or meaning for <title> ("Error" versus
   "Consulta de usuarios")

Are you sure you aren't just seeing the error page in TC7 because
something is broken and you think that the "Consulta de usuarios" page
should be showing instead?

It sounds like a case of mistaken identity. You are probably editing
the wrong page and trying to solve the wrong problem.

Read your log files to see what is really going wrong.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAX+ygACgkQ9CaO5/Lv0PCkSwCfVZmgQ9mwVPf5BP+GVJpvHpJn
AY0AniG6vXFAHGOYrmZDbtXBsHz0r0Xq
=TVES
-----END PGP SIGNATURE-----

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic