i can't easily repro this at the moment, but it might be worth putting some diagnostics in Resource.respond() and/or Streams.copy() to see if the wrong number of bytes is actually being written. this might easily freak out jetty and/or a browser.


     jon

Eelco Hillenius wrote:

Ok, that doesn't fix the pub example. The problem only happens when running Jetty from maven though; I created a build for wicket-examples (maven clean war) and tested that on Jetty 4.2.23 and on Jetty 5.1.3, and it works fine. When run maven though, jetty totally freaks out on the pub example. The problem seems to come from this warning:

[java] 14:23:35.619 WARN!! Invalid length: Content-Length=23742 written=46106 for http://localhost:8080/wicket-examp
les/pub/resources/wicket.examples.pub.Home/Beer_en_US.gif


It is strange that this only happens when run from maven. Maybe this is an issue with the older Jetty version?

Eelco

Eelco Hillenius wrote:

Yeah, the whole problem was that due to a bug in RC1, in some cases resources could not be loaded properly (like .css files). That is fixed now.

I just tried

maven -o clean jetty:run-war

on the wicket-stuff-examples project (that uses wicket snapshot instead of 1.0.0rc1), and it works fine. Could you try building a snapshot of CVS HEAD of wicket (maven clean jar:install-snapshot), and change your dependency of wicket-stuff-examples/project.xml to use the snapshot?

Eelco


Juergen Donnerstag wrote:

Sorry but I was wrong on the cdapp issue. The cdapp edit page works
with jettylauncher and eclipse but it doesn't with maven
jetty:run-war. May be a css issue?

Juergen





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to