Re: wicket-event.js returning unreadable
I believe I've finally solved my problem. No doubt the original problem was double compression resulting from using a homegrown compression filter on top of wicket's default compression. After being forced to look at this issue again, which suddenly seemed to not only be a problem with just IE (FF suddenly seemed to work fine) but only with the IE on MY computer, I ended up clearing IE's temporary internet files. Problem solved. So IE cached the double compressed version of the js file and kept it in cache for several weeks until I manually deleted it. For now it's looking like the problem is solved. (Thanks, Microsoft, for introducing the world to permanent temporary internet files.) Joel -- View this message in context: http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a12478274 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event.js returning unreadable
This way you end up not using compression at all? I would be interested in a solution which would help me to use the compression without any problems. Now I'm just using wicket's default compression (which I didn't know existed before this problem arose). Maybe someone from the wicket core team would help us to understand the difference between using IHeaderContributor and adding directly JavascriptReference as a behavior? Have you taken a look at the html source of the rendered page in both cases? That might give an indication of how wicket handles these differently. Are you also using a fine Oracle product for your webserver? I think they might be right that this could be an Oracle-caused issue. Wouldn't be the first time I've had Oracle mess me up with their non-open source, blackbox implementation. Oracle interferred with my first stab at Jaas authentication, so I had to completely circumvent it; and when I was trying to include a jsp menu on a wicket page, it worked great until I upgraded to a newer version of oc4j (from 10.1.3.1.1 to 10.1.3.2 I believe * should anything past the second minor version number even be a public release??), and I ran into a conflict between Oracle and wicket writing to the output stream. I wrote that one off as unsolvable. Unfortunately, I have no say in what webserver we use, so I have to deal with it. Like I said before, we're trying to do slightly different things. You're trying to dynamically include an external js file. I just wanted to write dynamic js code which ran onload. But the wicket implementation of that includes a js file from the wicket jar. I'm curious, is the js file you're trying to call inside a jar or just in a directory on the webserver? Maybe this issue is related to including a jarred js file. I don't know, at times this problem has behaved so erratically for me, it's hard to get a grip on. That's why I'm glad I figured out a workaround. Joel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event.js returning unreadable
I'm still having trouble getting wicket-event.js to return anything but junk. Even though I thought it might have something to do with compression, I doubt that now, because I have my homegrown compression filter turned off. Does anyone know what this error means: DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (init:92) - cannot convert url: code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js to file (URI scheme is not file), falling back to the inputstream for polling I'm hoping it will give me some clue as to what is going on, but maybe it's just another by-product of the problem. Any suggestions were be great. Thanks. Joel -- View this message in context: http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event.js returning unreadable
Well, oracle app server doesn't have a good reputation exactly for messing the output. Try disabling the compression of wicket resources completely, Application.getResourceSettings.setDisableGZipCompression(true). -Matej On 8/3/07, Martijn Dashorst [EMAIL PROTECTED] wrote: Seems like Oracle application server, version 10.1, 32 bits? Apparently the classloader for the app server converts the getClass().getResourceAsStream(wicket-event.js) to use a code-source: protocol. I'm not sure, but it sounds like a security constraint in your setup. Martijn On 8/3/07, Matej Knopp [EMAIL PROTECTED] wrote: I doubt this is related. What app server are you using? What exactly does it mean junk? Wha headers are set on ouput? What browser are you using? -Matej On 8/3/07, hillj2 [EMAIL PROTECTED] wrote: I'm still having trouble getting wicket-event.js to return anything but junk. Even though I thought it might have something to do with compression, I doubt that now, because I have my homegrown compression filter turned off. Does anyone know what this error means: DEBUG 2007-08-03 15:42:34,452 resource.UrlResourceStream (init:92) - cannot convert url: code-source:/C:/oc4j10132/j2ee/home/applications/mcir/wicket-1.3.0-beta2.jar!/org/apache/wicket/markup/html/wicket-event.js to file (URI scheme is not file), falling back to the inputstream for polling I'm hoping it will give me some clue as to what is going on, but maybe it's just another by-product of the problem. Any suggestions were be great. Thanks. Joel -- View this message in context: http://www.nabble.com/wicket-event.js-returning-unreadable-tf4158501.html#a11989377 Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Wicket joins the Apache Software Foundation as Apache Wicket Apache Wicket 1.3.0-beta2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]