Problem solved (even with Turbine 2.1).
What was happening? The final clue was the access log. I didn't know
what this log was for until yesterday. And just for the record, it logs each
and every request sent to the webserver, so you can find there how many
times your servlet is being called and which other resources where required
in order to render the page produced by it (images, css, etc).
So, when I looked there I found entries like this:
127.0.0.1 - - [22/Jan/2003:15:47:34 -0500] "GET /servlet/css/ie5.css
HTTP/1.1" 404 633
127.0.0.1 - - [22/Jan/2003:15:47:35 -0500] "GET
/servlet/myapp/template/myapp/images/shim.gif HTTP/1.1" 200 4780
127.0.0.1 - - [22/Jan/2003:15:48:04 -0500] "GET
/servlet/myapp/template/ListBuilder.html/listname/xxx/images/shim.gif
HTTP/1.1" 200 7178
...but why? It seems that when you leave relative links (e.g.
../../ie.css) inside your HTML code, what browsers do is take the URL they
have and delete the last "directories" in it. But as you should know, the
way Turbine handles parameters using slashes could "fool" browsers into
thinking that what they are deleting are directories, even when what they
really are deleting are just parameters. So as you may see, anything could
happen. And in this cases, Tomcat (or Turbine?) thinks that a new call is
being made, and produces horrible errors.
By the way, I finally was able to move to Turbine 2.2. And I don't know
why, but found out the error was gone there, even when I hadn't fix it yet.
So there you have it. Hope this helps other people with the same
problem. Bye...
Rodrigo
----- Original Message -----
From: "Blair Martin" <[EMAIL PROTECTED]>
To: "Turbine Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 3:59 PM
Subject: Re: An action called more than once...
>
> > Also Rodrigo, I trust you've inspected your webserver log and
> > verified there's only one call to the action? Or is it many calls to
> > Apache/Tomcat?
>
> Good idea.
>
> In my case I'm using JBoss/Tomcat 4.1.x. I looked in
> <jboss>\server\default\log\localhost_access<date>.log and found entries
like:
>
> 127.0.0.1 - - [22/Jan/2003:12:44:23 -0800] "POST
> /ogs_aspect/app/template/MyMessages.vm/action/UpdateMessages HTTP/1.1" 200
1293
> 127.0.0.1 - - [22/Jan/2003:12:44:23 -0800] "POST
> /ogs_aspect/app/template/MyMessages.vm/action/UpdateMessages HTTP/1.1" 200
1293
>
>
> Uhhhhhh, maybe it's not a Turbine bug. If I'm reading this right the web
server
> is doubling the action call. Tomcat bug? Or could it be the browser that
is
> making the double call?
>
> In any case, it looks like I need to take the issue elsewhere.
>
>
> blair
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>