Possible OT: Strange Seaside/VW oddity -- Is there some sort of cacheing in Seaside/VW or ??

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Possible OT: Strange Seaside/VW oddity -- Is there some sort of cacheing in Seaside/VW or ??

Rick Flower
I've got what I believe should be a URL that maps to a css file in my
file system hierarchy.. However, when I try to get it using "wget" (on
Unix) or Firefox, instead of getting the contents of the css file, I get
the main site page for my seaside site instead.. I've even got a truss
output showing what I'm seeing..

Here's my CSS file for reference (css/screen.css) :

/* typography rules */
@import url("typo.css");

/* main layout */
@import url("layout.css");


Here's the output from truss attached to my VW session and the resulting
output after I do a get of the css file.. Is this normal or am I seeing
things?  For the output below, look for the "write(9, ..." to see the
output of what should be the CSS file..  If anyone believe's this to be
a VW issue, I'll pester that list I guess.. Just not sure what I'm doing
wrong here or if anyones seen this before with VW/Seaside..

-- Rick


--- SIGIO (I/O possible) @ 0 (0) ---
rt_sigreturn(0x400)                     = 1
getitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={8, 628688}}) = 0
ioctl(3, FIONREAD, [0])                 = 0
select(4, [3], NULL, NULL, {0, 0})      = 0 (Timeout)
select(1024, [7], [], [7], {0, 0})      = 1 (in [7], left {0, 0})
rt_sigprocmask(SIG_SETMASK, [FPE PIPE ALRM TERM CHLD URG IO], NULL, 8) = 0
accept(7, {sa_family=AF_INET, sin_port=htons(54675),
sin_addr=inet_addr("10.0.1.198")}, [16]) = 9
fcntl64(9, F_SETFD, FD_CLOEXEC)         = 0
fcntl64(9, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
fcntl64(9, F_SETOWN, 9664)              = 0
fcntl64(9, F_GETFL)                     = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl64(9, F_SETFL, O_RDWR|O_NONBLOCK|O_ASYNC) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [FPE PIPE ALRM TERM CHLD URG IO], NULL, 8) = 0
getpeername(9, {sa_family=AF_INET, sin_port=htons(54675),
sin_addr=inet_addr("10.0.1.198")}, [16]) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
select(1024, [7], NULL, NULL, {0, 0})   = 0 (Timeout)
gettimeofday({1143238253, 380208}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [FPE PIPE ALRM TERM CHLD URG IO], NULL, 8) = 0
read(9, "GET /seaside/go/mywebapp/css/screen.css HTTP/1.0\r\nHost:
10.0.1.198:8008\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0;
en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7\r\nAccept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language:
en-us,en;q=0.5\r\nAccept-Charset:
ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAuthorization: Basic
c2Vhc2lkZTphZG1pbg==\r\nCookie:
VW-WTK-sessionkey=6366233203123413320341141380\r\nConnection:
close\r\n\r\n", 20480) = 484
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [FPE PIPE ALRM TERM CHLD URG IO], NULL, 8) = 0
getpeername(9, {sa_family=AF_INET, sin_port=htons(54675),
sin_addr=inet_addr("10.0.1.198")}, [16]) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
gettimeofday({1143238253, 385688}, NULL) = 0
gettimeofday({1143238253, 386958}, NULL) = 0
gettimeofday({1143238253, 392559}, NULL) = 0
gettimeofday({1143238253, 392992}, NULL) = 0
gettimeofday({1143238253, 393343}, NULL) = 0
gettimeofday({1143238253, 398669}, NULL) = 0
gettimeofday({1143238253, 403968}, NULL) = 0
gettimeofday({1143238253, 409631}, NULL) = 0
rt_sigprocmask(SIG_SETMASK, [FPE PIPE ALRM TERM CHLD URG IO], NULL, 8) = 0
write(9, "HTTP/1.0 200
\r\ncache-control:No-cache\r\ncontent-type:text/html;
charset=utf-8\r\ncache-control:no-cache\r\nexpires:-1\r\npragma:no-cache\r\ndate:Fri,
24 Mar 2006 22:10:53 GMT\r\nserver:Cincom Smalltalk VisualWorks
7.4\r\nmime-version:1.0\r\n\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML
1.0
Transitional//EN\"\r\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html
xml:lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\"
lang=\"en\"><head><title>Seaside</title><meta content=\"text/html;
charset=utf-8\" http-equiv=\"Content-Type\"></meta><link
rel=\"stylesheet\" type=\"text/css\"
href=\"/mywebapp/css/screen.css\"></link><link rel=\"stylesheet\"
type=\"text/css\" href=\"/seaside/go/mywebapp?_s=tTvpKbsoujWNqKWn\"
/><link rel=\"stylesheet\" type=\"text/css\"
href=\"/seaside/go/mywebapp?_s=VfuOOOWjuNvihnmh\" /><link
rel=\"stylesheet\" type=\"text/css\"
href=\"/seaside/go/mywebapp?_s=SxebOoDlIuTtalJi\" /><link
rel=\"stylesheet\" type=\"text/css\"
href=\"/seaside/go/mywebapp?_s=uunxmzFkVAIpxmAc\" /><link
rel=\"stylesheet\" type=\"text/css\"
href=\"/seaside/go/mywebapp?_s=tgJovPuAlGfOZtZC\" /><script
type=\"text/javascript\"
src=\"/seaside/go/mywebapp?_s=EnCzDYdZvpqwfMQB\"></script><script
type=\"text/javascript\"
src=\"/seaside/go/mywebapp?_s=hypubVcsaqdhlOZX\"></script></head><body
onload=\"onLoad()\" onkeydown=\"onKeyDown(event)\"><div
id=\"frameContent\"><div id=\"container\"><div id=\"header\"></div><div
id=\"mainnav\"><ul><li><a
href=\"?_s=fRPJDoVKyziFKqIC&amp;_k=HdFZkVJf&amp;1\">Home</a></li><li><a
href=\"?_s=fRPJDoVKyziFKqIC&amp;_k=HdFZkVJf&amp;2\">About
My-WebApp</a></li><li><a
href=\"?_s=fRPJDoVKyziFKqIC&amp;_k=HdFZkVJf&amp;3\">Enroll</a></li><li><a
href=\"?_s=fRPJDoVKyziFKqIC&amp;_k=HdFZkVJf&amp;4\">Contact
Us</a></li></ul></div><div style=\"height: 300px\"><div
id=\"loginLeftBox\"><br /><form method=\"post\"><br /><br />Username:<br
/><input name=\"5\" value=\"\" type=\"text\" class=\"text\" /><br /><br
/>Password:<br /><input name=\"6\" value=\"\" type=\"password\"
class=\"password\" /><p></p><input name=\"7\" value=\"Login!\"
type=\"submit\" class=\"submit\" /><input name=\"_s\"
value=\"fRPJDoVKyziFKqIC\" type=\"hidden\" class=\"hidden\" /> <input
name=\"_k\" value=\"HdFZkVJf\" type=\"hidden\" class=\"hidden\" />
</form></div><div id=\"loginRightBox\"><p style=\"font-size: x-large;
text-align:center\">Welcome to My Web App</p><p style=\"padding-left:
6px; padding-right: 6px;\ttext-align: justify\">More to come.. Stay
tuned!</p><p style=\"padding-left: 6px; padding-right: 6px;\ttext-align:
justify;\"> If you have an account here, please login using the box just
to the left.  Specify your username/password.  Use
\\&quot;demo/demo\\&quot; as the username/password
combination</p></div></div><div style=\"padding-top: 10px\"><p
style=\"float:left\"><a href=\"http://jigsaw.w3.org/css-validator\"><img
alt=\"Valid CSS!\" style=\"border:0; width:88px;height:31px\"
src=\"/mywebapp/css/vcss.gif\" /></a></p><p style=\"float:right\"><a
href=\"http://validator.w3.org/check?uri=referer\"><img height=\"31\"
alt=\"Valid XHTML 1.0 Transitional\"
src=\"/mywebapp/css/valid-xhtml10.png\" width=\"88\"
/></a></p></div></div></div><"..., 3753) = 3753
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
gettimeofday({1143238253, 415773}, NULL) = 0
gettimeofday({1143238253, 415939}, NULL) = 0
close(9)                                = 0
rt_sigprocmask(SIG_SETMASK, [FPE PIPE ALRM TERM CHLD URG IO], NULL, 8) = 0
write(8, "10.0.1.198: seaside GET /seaside/go/mywebapp/css/screen.css ->
200 text/html Fri, 24 Mar 2006 22:10:53 GMT\n", 107) = 107
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
getitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={8, 582695}}) = 0
select(1024, [3 7], [], [3 7], {8, 592695} <unfinished ...>



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Possible OT: Strange Seaside/VW oddity -- Is there some sort of cacheing in Seaside/VW or ??

Rick Flower
Rick Flower wrote:
> I've got what I believe should be a URL that maps to a css file in my
> file system hierarchy.. However, when I try to get it using "wget" (on
> Unix) or Firefox, instead of getting the contents of the css file, I
> get the main site page for my seaside site instead.. I've even got a
> truss output showing what I'm seeing..
Nevermind... I found the following log lines in my webserve.log file :

10.0.1.198: default GET /mywebapp/css/screen.css -> 200 text/html Sat,
25 Mar 2006 00:30:55 GMT
10.0.1.198: seaside GET /seaside/go/mywebapp/css/screen.css -> 200
text/html Sat, 25 Mar 2006 00:31:26 GMT

The "default" vs. "seaside" thing caught my eye (I hadn't really looked
at that before).. I find that the top one (default) gets the correct
file, but the bottom one seems to be my web-app
page instead -- almost like seaside was discarding the "/css/screen.css"
from the above GET line and only seeing the "GET /seaside/go/mywebapp"
portion of the line.. I'll make sure I
adjust my code to make sure this doesn't happen...

-- Rick


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Possible OT: Strange Seaside/VW oddity -- Is there some sort of cacheing in Seaside/VW or ??

Michel Bany-3
In reply to this post by Rick Flower

> read(9, "GET /seaside/go/mywebapp/css/screen.css HTTP/1.0\r\nHost:
> 10.0.1.198:8008\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT
> 5.0; en-US; rv:1.7.12)


Hi Rick,

URLs that start with "/seaside/go" will always take you to a Seaside page.
URLs that start with "/seaside/go/mywebapp" will always take you to a
page of Seaside application "mywebapp".

With WebToolkit, the first token in the URL, a.k.a. "seaside" is known
as the WebSite name. A WebSite is able to
serve static files, Smalltalk Server pages (i.e. templating) and
servlets. In VW, Seaside runs as a WebToolkit servlet
and when the URL starts with "/seaside/go" the Seaside servlet is used.
The Seaside servlet uses the rest of the URL,
a.k.a. "mywebapp" for dispatching to the right Seaside component.

With WebToolkit, a WebSite has a reference to a directory name on the
hard disk. For instance, assuming a WebSite
named "seaside" is mapped to directory "C:\WebSites\Seaside", a URL like
"/seaside/css/screen.css" will serve file
"C:\WebSites\Seaside\css\screen.css"

A WebSite can be defined in two ways.

(1) Smalltalk code, see AAADocumentation >>createWebSite
When you install vanilla SeasideForWebToolkit, this method gets executed
and you get a standard WebSite
named "Seaside", for namespace "Seaside" pointing to
$(VISUALWORKS)\web\examples and with "go"
set for the Seaside servlet.

(2) ini files, see the ini files in the $(VISUALWORKS)\web folder
See the documentation in $(VISUALWORKS)\doc\

HTH
Michel.



_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Possible OT: Strange Seaside/VW oddity -- Is there some sort of cacheing in Seaside/VW or ??

Rick Flower
Michel Bany wrote:

>
>> read(9, "GET /seaside/go/mywebapp/css/screen.css HTTP/1.0\r\nHost:
>> 10.0.1.198:8008\r\nUser-Agent: Mozilla/5.0 (Windows; U; Windows NT
>> 5.0; en-US; rv:1.7.12)
>
>
> Hi Rick,
>
> URLs that start with "/seaside/go" will always take you to a Seaside
> page.
> URLs that start with "/seaside/go/mywebapp" will always take you to a
> page of Seaside application "mywebapp".
>
> With WebToolkit, the first token in the URL, a.k.a. "seaside" is known
> as the WebSite name. A WebSite is able to
> serve static files, Smalltalk Server pages (i.e. templating) and
> servlets. In VW, Seaside runs as a WebToolkit servlet
> and when the URL starts with "/seaside/go" the Seaside servlet is
> used. The Seaside servlet uses the rest of the URL,
> a.k.a. "mywebapp" for dispatching to the right Seaside component.
>
> With WebToolkit, a WebSite has a reference to a directory name on the
> hard disk. For instance, assuming a WebSite
> named "seaside" is mapped to directory "C:\WebSites\Seaside", a URL
> like "/seaside/css/screen.css" will serve file
> "C:\WebSites\Seaside\css\screen.css"
>
> A WebSite can be defined in two ways.
>
> (1) Smalltalk code, see AAADocumentation >>createWebSite
> When you install vanilla SeasideForWebToolkit, this method gets
> executed and you get a standard WebSite
> named "Seaside", for namespace "Seaside" pointing to
> $(VISUALWORKS)\web\examples and with "go"
> set for the Seaside servlet.
>
> (2) ini files, see the ini files in the $(VISUALWORKS)\web folder
> See the documentation in $(VISUALWORKS)\doc\
>
Michel,

Thanks for the info -- I figured something like that was going on behind
my back.. Good to know!

-- Rick

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside